Skip to main content
This page provides a complete reference of input mapping IDs used in the config.json file for Wii controllers. Each button and joystick direction has a unique numeric ID that can be assigned to game actions.

How to Use Input IDs

In your config.json file, each action accepts an array of input IDs. You can assign multiple inputs to the same action:
{
  "input": {
    "player_jump": [5, 210]
  }
}
This example maps the jump action to both Wiimote B button (ID 5) and Classic Controller L button (ID 210).

Wiimote

Standard Wiimote buttons and directional pad.
ButtonConfig ID
D-Pad Up0
D-Pad Down1
D-Pad Left2
D-Pad Right3
A4
B5
16
27
Plus (+)8
Minus (-)9
Home10

Nunchuk

Nunchuk attachment buttons and analog stick directions.
Button/DirectionConfig ID
Z100
C101
Joystick Up900
Joystick Down901
Joystick Left902
Joystick Right903

Classic Controller

Classic Controller buttons, triggers, and dual analog sticks.
Button/DirectionConfig ID
D-Pad Up200
D-Pad Down201
D-Pad Left202
D-Pad Right203
A204
B205
X206
Y207
ZL (Left Trigger)208
ZR (Right Trigger)209
L (Full Press)210
R (Full Press)211
Plus (+)212
Minus (-)213
Home214
L Joystick Up910
L Joystick Down911
L Joystick Left912
L Joystick Right913
R Joystick Up920
R Joystick Down921
R Joystick Left922
R Joystick Right923

Guitar Hero 3 Controller

Guitar Hero 3 guitar controller support.
ButtonConfig ID
Yellow300
Green301
Blue302
Red303
Orange304
Plus (+)305
Minus (-)306
Strum Up307
Strum Down308

PC Input IDs

For PC controls, the following special IDs are used:
InputConfig ID
Left Mouse Button1000
Right Mouse Button1001
Keyboard KeysASCII/GLFW key codes
Common keyboard key codes:
  • W: 87
  • A: 65
  • S: 83
  • D: 68
  • Space: 32
  • E: 69
  • Enter/Escape: 257
  • Left Shift: 340
  • Arrow Up: 265
  • Arrow Down: 264
  • Arrow Left: 263
  • Arrow Right: 262
  • F2: 291
  • 1: 49
  • 2: 50

Example Configuration

Here’s an example showing how to configure controls for Wii with Classic Controller:
{
  "input": {
    "player_forward": [0, 200, 910],
    "player_backward": [1, 201, 911],
    "player_left": [2, 202, 912],
    "player_right": [3, 203, 913],
    "player_jump": [5, 210],
    "player_sneak": [211],
    "item_action_left": [100, 204],
    "item_action_right": [101, 205],
    "scroll_left": [9, 208, 213],
    "scroll_right": [8, 209, 212],
    "inventory": [6, 206],
    "open_menu": [10, 214],
    "screenshot": [7]
  }
}
This configuration allows movement using:
  • Wiimote D-Pad (IDs 0-3)
  • Classic Controller D-Pad (IDs 200-203)
  • Classic Controller left analog stick (IDs 910-913)

Build docs developers (and LLMs) love