# How would you get an input, and make it affect something?

**URL:** <https://forums.unrealengine.com/t/how-would-you-get-an-input-and-make-it-affect-something/452338>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 16, 2019, 2:12am UTC](https://forums.unrealengine.com/t/how-would-you-get-an-input-and-make-it-affect-something/452338 "2019-07-16T02:12:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pneuma](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pneuma/32/983845_2.png) [@pneuma](https://forums.unrealengine.com/u/pneuma)\
**Post date:** [July 16, 2019, 6:46am UTC](https://forums.unrealengine.com/t/how-would-you-get-an-input-and-make-it-affect-something/452338/2 "2019-07-16T06:46:13Z")

</div>

How do you control the speed of your constant loop right now? You can change it by clicking a button or something after adding some input actions in your project settings.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/c/ddcd52e6b7da44aaf3949f64e4efbbc4a6efd63d.png)

After that you can use virtual function `SetupPlayerInputComponent` to bind specific function in your code to specific button in your keyboard.

In the following tutorial you can see a step-by-step guide how to add `WASD` movement in a project.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

_[View the full topic](https://forums.unrealengine.com/t/how-would-you-get-an-input-and-make-it-affect-something/452338)._
