Changes keyboard/mouse or gamepad event of a specific input action (i.e. rebinds an input).

Properties

  • default/current - String : Must be an input keyword.
  • action - String : The name of the target action in the input map.
  • type - int (enum) : The type of input this setting is for.

Input Keywords

Input keywords are strings that correspond to a certain input. GGS converts this string into an actual InputEvent using the ggsInputHelper class. All keywords must be lowercase.

Keyboard

Keyboard keywords are pretty self-explanatory. For example, d corresponds to the D key on the keyboard (KEY_D in Godot). escape corresponds to the Esc key on the keyboard (KEY_ESCAPE in Godot).

Mouse

ButtonKeywordWheelKeyword
Left ClicklmbWheel Upmw_up
Right ClickrmbWheel Downmw_down
Middle ClickmmbWheel Leftmw_left
Misc 1mb1Wheel Rightmw_right
Misc 2mb2

Modifiers

Keyboard and mouse inputs can accept modifiers. To add a modifier, write a modifier keyword before the main keyword followed by a comma. Do not add a space after the comma.

Examples: shift,d, ctrl,alt,rmb, alt,f4

ModifierKeyword
Shiftshift
Controlctrl
Altalt

Gamepad

ButtonKeywordButtonKeywordButtonKeywordButtonKeywordButtonKeywordButtonKeyword
Bottom ButtonbbotDPad RightdrightLeft Stickleft_stickBackbackPaddle 1pad1Touchtouch
Right ButtonbrightDPad LeftdleftRight Stickright_stickGuideguidePaddle 2pad2
Top ButtonbtopDPad UpdupLeft Shoulderleft_shoulderStartstartPaddle 3pad3
Left ButtonbleftDPad DownddownRight Shoulderright_shoulderMiscmiscPaddle 4pad4
Left StickKeywordRight StickKeywordTriggersKeyword
Leftls_leftLeftrs_leftLeftleft_trigger
Rightls_rightRightrs_rightRightright_trigger
Upls_upUprs_up
Downls_downDownrs_down