# create my own mapping for a bindaxis?

**URL:** <https://forums.unrealengine.com/t/create-my-own-mapping-for-a-bindaxis/6089>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 15, 2014, 7:30pm UTC](https://forums.unrealengine.com/t/create-my-own-mapping-for-a-bindaxis/6089 "2014-06-15T19:30:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZkarmaKun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zkarmakun/32/1194545_2.png) [@ZkarmaKun](https://forums.unrealengine.com/u/ZkarmaKun)\
**Post date:** [June 15, 2014, 7:30pm UTC](https://forums.unrealengine.com/t/create-my-own-mapping-for-a-bindaxis/6089/1 "2014-06-15T19:30:11Z")

</div>

hello people i reseach a while, but i dont found nothing, its possible create my own mapping then later, use a regular bindaxis?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a81037d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a81037d4](https://forums.unrealengine.com/u/anonymous_user_a81037d4)\
**Post date:** [June 17, 2014, 1:34am UTC](https://forums.unrealengine.com/t/create-my-own-mapping-for-a-bindaxis/6089/2 "2014-06-17T01:34:02Z")

</div>

**Hey ZkarmaKun!**

Can you define what you mean by your own mapping?

I only know of two input mapping methods:

1. Using the BindAxis/Action with the Project Input Settings
2. Directly checking if a button is pressed/held, or if an axis is greater than or less than 0

If you plan on changing binding methods, I would normally just advise sticking to the binding methods.  
This is pretty simple in itself.

You set up the names of action and axis input, and which buttons/inputs are assigned to them,  
and then in your character, or even player controller, you can do this:

```auto

void AYourCharacter::SetupPlayerInputComponent(class UInputComponent* InputComponent)
{
	// set up gameplay key bindings
	InputComponent->BindAction("HERE IS THE NAME OF THE ACTION", HERE IS HOW IT IS PRESSED, this, &AYourCharacter::YOURFUNCTION);
        InputComponent->BindAxis("HERE IS THE NAME OF THE AXIS", this, &AYourCharacter::YOURFUNCTION);
}

```

For action bindings, your functions shouldn’t take any paramaeters.  
For axis bindings, your function should take a float, normally called “Value”.

Hope this helps!

**-**
