diff options
Diffstat (limited to 'src/pygame/gp2x/constants.py')
-rw-r--r-- | src/pygame/gp2x/constants.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/pygame/gp2x/constants.py b/src/pygame/gp2x/constants.py new file mode 100644 index 0000000..6dd4508 --- /dev/null +++ b/src/pygame/gp2x/constants.py @@ -0,0 +1,21 @@ + +# GP2X joystick button mappings +BUTTON_UP = (0) +BUTTON_DOWN = (4) +BUTTON_LEFT = (2) +BUTTON_RIGHT = (6) +BUTTON_UPLEFT = (1) +BUTTON_UPRIGHT = (7) +BUTTON_DOWNLEFT = (3) +BUTTON_DOWNRIGHT = (5) +BUTTON_CLICK = (18) +BUTTON_A = (12) +BUTTON_B = (13) +BUTTON_X = (14) +BUTTON_Y = (15) +BUTTON_L = (10) +BUTTON_R = (11) +BUTTON_START = (8) +BUTTON_SELECT = (9) +BUTTON_VOLUP = (16) +BUTTON_VOLDOWN = (17) |