Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/pygame/gp2x/constants.py
diff options
context:
space:
mode:
authorRodrigo 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)
commitf891b3a18c952b88967f7408bb942ef3c0cd111f (patch)
tree2a746cb54bdc837a892f908c85599fed7e103300 /src/pygame/gp2x/constants.py
Final version 1.0HEADmaster
Diffstat (limited to 'src/pygame/gp2x/constants.py')
-rw-r--r--src/pygame/gp2x/constants.py21
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)