Module: RcadeControls

Included in:
Gosu::Window
Defined in:
lib/rcade_controls.rb

Constant Summary collapse

Coin1 =

Coin Insert Buttons

Gosu::Kb5
Coin2 =
Gosu::Kb6
Coin3 =
Gosu::Kb7
Coin4 =
Gosu::Kb8
P1Start =

Start Buttons

Gosu::Kb1
P2Start =
Gosu::Kb2
P3Start =
Gosu::Kb3
P4Start =
Gosu::Kb4
Escape =

Miscellaneous Buttons

Gosu::KbEscape
Quit =
Gosu::KbEscape
Enter =
Gosu::KbReturn
Return =
Gosu::KbReturn
Pause =
Gosu::KbP
Tab =
Gosu::KbTab
Options =
Gosu::KbTab
P1Up =

Player 1 Joystick

Gosu::KbUp
P1Down =
Gosu::KbDown
P1Left =
Gosu::KbLeft
P1Right =
Gosu::KbRight
P1Button1 =

Player 1 Buttons

Gosu::KbLeftControl
P1Button2 =
Gosu::KbLeftAlt
P1Button3 =
Gosu::KbSpace
P1Button4 =
Gosu::KbLeftShift
P1Button5 =
Gosu::KbZ
P1Button6 =
Gosu::KbX
P1Button7 =
Gosu::KbC
P1Button8 =

Also used by P4 when in 4 player mode

Gosu::KbV
P2Up =

Player 2 Joystick

Gosu::KbR
P2Down =
Gosu::KbF
P2Left =
Gosu::KbD
P2Right =
Gosu::KbG
P2Button1 =

Player 2 Buttons

Gosu::KbA
P2Button2 =
Gosu::KbS
P2Button3 =
Gosu::KbQ
P2Button4 =
Gosu::KbW
P2Button5 =

Also used by P3 when in 4 player mode

Gosu::KbI
P2Button6 =

Also used by P3 when in 4 player mode

Gosu::KbK
P2Button7 =

Also used by P3 when in 4 player mode

Gosu::KbJ
P2Button8 =

Also used by P3 when in 4 player mode

Gosu::KbL
P3Up =

Player 3 Joystick

Gosu::KbI
P3Down =
Gosu::KbK
P3Left =
Gosu::KbJ
P3Right =
Gosu::KbL
P3Button1 =

Player 3 Buttons

Gosu::KbRightControl
P3Button2 =
Gosu::KbRightShift
P3Button3 =
Gosu::KbReturn
P3Button4 =
Gosu::KbO
P4Up =

Player 4 Joystick

Gosu::KbY
P4Down =
Gosu::KbN
P4Left =
Gosu::KbV
P4Right =
Gosu::KbU
P4Button1 =

Player 4 Buttons

Gosu::KbB
P4Button2 =
Gosu::KbE
P4Button3 =
Gosu::KbH
P4Button4 =
Gosu::KbM