Studio › Manual › Studio kit

Input map

Game Options > Input Map (⌥⌘J) names the game's actions ("jump", "move") and binds each to any number of inputs: keys, mouse buttons and the wheel, gamepad buttons, sticks and triggers (as buttons or as analog axes) and touch zones. In code:

if (input_pressed("jump")) …              // also input_held, input_released
var dx = input_axis("move_x");            // -1 to 1
var v = input_vector("move");             // { x, y }, round deadzone
if (input_double_tapped("dash")) …        // and input_long_pressed, input_held_time
if (input_pressed("jump", 1)) …           // player 2 only
  • Per action: Deadzone, Sensitivity, Double tap window and Long press time.
  • Axis actions are one action minus another; Vector actions combine four directions and a stick with a round deadzone.
  • Shared bindings are flagged (the UI's own ui_… actions may share with game actions).
  • Test: turn on Listen and press keys or pad buttons; the actions they fire light up. Press to bind adds the next key or button pressed.

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.