# How can I get SteamVR Input to Generate Axis/Action Input Correctly?

**URL:** <https://forums.unrealengine.com/t/how-can-i-get-steamvr-input-to-generate-axis-action-input-correctly/500360>\
**Category:** XR Development\
**Tags:** Input, unreal-engine, question, UE4-27, CPP, steamvr-development\
**Created:** [February 20, 2022, 10:12pm UTC](https://forums.unrealengine.com/t/how-can-i-get-steamvr-input-to-generate-axis-action-input-correctly/500360 "2022-02-20T22:12:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_888b9c60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_888b9c60](https://forums.unrealengine.com/u/anonymous_user_888b9c60)\
**Post date:** [February 20, 2022, 10:12pm UTC](https://forums.unrealengine.com/t/how-can-i-get-steamvr-input-to-generate-axis-action-input-correctly/500360/1 "2022-02-20T22:12:35Z")

</div>

Hello again,

After getting my issue with Having the SteamVR Input Toolbar Option show up (thanks to), resolved, I have come across this issue now.

The Input for the project is setup as so (with bindings shown for the actions):

 ![Action and Axis Mappings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/c/24cf2e39c989aeaad66fa044fee393e181a0ed4e.png)

(Know that there is a binding for the Vive controllers, for each of the Axis Mappings too).

Even after pressing the options available from the SteamVR Toolbar (shown below, in order, from 1-4),  
it would not generate the additional Axis-Mapping for MoveForward/Moveright etc. (As per this bullet point from the Major Notes section, of the article available at: [Quickstart · ValveSoftware/steamvr\_unreal\_plugin Wiki · GitHub](https://github.com/ValveSoftware/steamvr_unreal_plugin/wiki/Quickstart#use) ’ **Vector2 Actions** - As Unreal doesn’t have a concept of a Vector2 action we auto group two vector1 actions with names that end with \_X and \_Y. For example, to create a mapping for MoveLeft you will need a MoveLeft\_X and a MoveLeft\_Y that you bind to their corresponding controller axis. See the sample inputs for an example. (SteamVR Input Menu - Add Sample Inputs)').

The controller bindings are as follows:

 ![SteamVR Vive Controller Bindings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/2/cc2ce8cd353a9b48c1967e63f7dbacaff3eeb0d7.png)

As additional Axis Mapping have not been generated by the SteamVR Plugin, testing the game at the moment, leads to the Player only being able to move forwards, while being able to yaw to the left (the Action Mappings work just fine though).

Could anyone let me know what my issue with SteamVR not working correctly could be?

I will provide further information, as required.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Rectus\_SA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rectus\_SA](https://forums.unrealengine.com/u/Rectus_SA)\
**Post date:** [February 21, 2022, 11:20am UTC](https://forums.unrealengine.com/t/how-can-i-get-steamvr-input-to-generate-axis-action-input-correctly/500360/2 "2022-02-21T11:20:28Z")

</div>

The documentation explains it kind of poorly, but the idea is that you add an axis mapping for each axis in the UE4 Input menu, using identical names and the \_X and \_Y suffixes. This makes the SteamVR plugin combine them into a single SteamVR action.

As an example, this is a setup for two 2-dimensional movement actions, one for each thumbstick. The MovementLeft\_X and MovementLeft\_Y combine into a single MovementLeft action for the left controller, and the same with MovementRight for the right one.

![bild](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/7/da73c2e5aac83fc96caef56b21144139dfe4544b.png)

 ![bild](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/8/52871fd69dd8efd39a10beb8ada74b3e58772e92.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_888b9c60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_888b9c60](https://forums.unrealengine.com/u/anonymous_user_888b9c60)\
**Post date:** [February 21, 2022, 1:40pm UTC](https://forums.unrealengine.com/t/how-can-i-get-steamvr-input-to-generate-axis-action-input-correctly/500360/3 "2022-02-21T13:40:20Z")

</div>

Hi,

Ah, so one has to have the Axis Mappings setup themselves, then when these are setup appropriately, the SteamVR Toolbar methods should generate the correct bindings for the controllers.

I will have to try this later and I will let you know how I get on.

To clarify, VR-Development is new to me, specifically, using the HTC Vive headset and controllers.

Hence why I am posing, what should be quite simple issues to resolve, to those in the know.

Thanks again for your input though, 🙂.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_888b9c60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_888b9c60](https://forums.unrealengine.com/u/anonymous_user_888b9c60)\
**Post date:** [February 21, 2022, 9:53pm UTC](https://forums.unrealengine.com/t/how-can-i-get-steamvr-input-to-generate-axis-action-input-correctly/500360/4 "2022-02-21T21:53:02Z")

</div>

Alright, after trying this out (and tinkering around with it a bit), it works as intended.

I will have to work with the LookUpRate and TurnRate axes (MoveForward now allows for moving forwards, backwards, leftwards, rightwards and any combination of those four directions\*, to any degree 🙂).

Thanks again for your help 🙂.
