diff options
author | rcoh <rcoh@mit.edu> | 2011-08-28 23:48:21 -0400 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-08-28 23:48:21 -0400 |
commit | f02e5cc761a7dff602d41754a018376e19227fa1 (patch) | |
tree | f324eb9f1f7ed269161f86cfb1f27a4acb7dc78e /ddrinput.py | |
parent | cb161151aa4001a7b71a4d2610c8a9f462cf1acd (diff) |
Adding "Space" functionality to ddrinput, adding untested support for Leds in the renderer.
Diffstat (limited to 'ddrinput.py')
-rw-r--r-- | ddrinput.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ddrinput.py b/ddrinput.py index a1bf482..f374781 100644 --- a/ddrinput.py +++ b/ddrinput.py @@ -3,7 +3,7 @@ JOY_EVENT = 7 KEY_EVENT = 2 X = 0 Y = 1 -(LEFT, RIGHT, UP, DOWN) = range(4) +(LEFT, RIGHT, UP, DOWN, DROP) = range(5) KEY_LEFT = 276 KEY_UP = 273 KEY_DOWN = 274 @@ -15,7 +15,7 @@ KEY_W = 119 KEY_SPACE = 32 KEY_ESC = 27 -DIRECTIONS = {0:'LEFT', 1:'RIGHT', 2:'UP', 3:'DOWN'} +DIRECTIONS = {0:'LEFT', 1:'RIGHT', 2:'UP', 3:'DOWN', 5:'DROP'} class DdrInput(object): """ DdrInput is a class to get input from the particular DDR pads and adapters we have. It is not |