diff options
author | Rodrigo Perez Fulloni <rodripf@gmail.com> | 2012-12-17 22:24:44 (GMT) |
---|---|---|
committer | Rodrigo Perez Fulloni <rodripf@gmail.com> | 2012-12-17 22:24:44 (GMT) |
commit | f891b3a18c952b88967f7408bb942ef3c0cd111f (patch) | |
tree | 2a746cb54bdc837a892f908c85599fed7e103300 /src/pygame/gp2x/constants.py |
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) |