Skip to content

3. Remapping Controls with Action Map Config

teddybear082 edited this page Apr 8, 2024 · 1 revision

Remapping controls with Action Map Config File

How the action map config file works

When you run the injector for the first time, it will create a "XRConfigs" folder in the same directory as the game .exe.

One of the files will be called [gamename]_xr_game_action_map.cfg.

The injector searches for custom actions the game developer has created and whether they already have gamepad mappings assigned by the game developer.

It then puts those actions and their mappings into the action map config file for further customization.

Any action not assigned a gamepad mapping by the game will say actionname = "needs_joypad_mapping". You do not have to actually assign a button to each of the actions, it is up to you what you find useful.

Once you remap the file, when you restart the game, it will now load your custom configuration file and the game will use the controls you assigned.

If for some reason it feels like your custom controls have not been added, you can try manually loading the config file while the game is running by placing your left hand over your head and pressing the B/Y button on your left controller and waiting a second or two.

Gamepad mapping button names

It's important you use the exact names below that correspond to a typical xbox / PS game controller when remapping. If you make a mistake your controls will not properly load.

The motion controls will then emulate these gamepad controls or in theory you should be able to use an actual game controller in VR as well.

You can assign buttons as follows:

  • "Joypad A/Cross"
  • "Joypad B/Circle"
  • "Joypad X/Square"
  • "Joypad Y/Triangle"
  • "Joypad Back/Select"
  • "Joypad Home/PS"
  • "Joypad Start"
  • "Joypad L3"
  • "Joypad R3"
  • "Joypad LB"
  • "Joypad RB"
  • "Joypad DpadUp"
  • "Joypad DpadDown"
  • "Joypad DpadLeft"
  • "Joypad DpadRight"

You can assign the trigger inputs as follows:

  • ["Joypad LeftTrigger", 1.0]
  • ["Joypad RightTrigger", 1.0]

You can assign the left and right joysticks as follows:

Left stick left:

  • ["Joypad LeftStickX", -1.0]

Left stick right:

  • ["Joypad LeftStickX", 1.0]

Left stick up:

  • ["Joypad LeftStickY", -1.0]

Left stick down:

  • ["Joypad LeftStickY", 1.0]

Right stick left:

  • ["Joypad RightStickX", -1.0]

Right stick right:

  • ["Joypad RightStickX", 1.0]

Right stick up:

  • ["Joypad RightStickY", -1.0]

Right stick down:

  • ["Joypad RightStickY", 1.0]