Created
May 21, 2014 22:41
-
-
Save adamphillips/33c83c56a2e06c25eed1 to your computer and use it in GitHub Desktop.
PS3 controller Gosu button constants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After pairing a PS3 Controller on OSX to use with Gosu, this is how Gosu | |
# recognises the different controller actions | |
# Left Stick | |
GpUp, GpDown, GpLeft, GpRight | |
# Right Stick (doesn't recognise up and down) | |
GpLeft, GpRight | |
GpButton1 # Left Stick press | |
GpButton2 # Right Stick press | |
GpButton3 # Start | |
GpButton4 # Pad up | |
GpButton5 # Pad right | |
GpButton6 # Pad down | |
GpButton7 # Pad left | |
GpButton8 # Left trigger 2 | |
GpButton9 # Right trigger 2 | |
GpButton10 # Left trigger 1 | |
GpButton11 # Right trigger 1 | |
GpButton12 # Triangle | |
GpButton13 # Circle | |
GpButton14 # Cross | |
GpButton15 # Square | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment