From f02e5cc761a7dff602d41754a018376e19227fa1 Mon Sep 17 00:00:00 2001 From: rcoh Date: Sun, 28 Aug 2011 23:48:21 -0400 Subject: Adding "Space" functionality to ddrinput, adding untested support for Leds in the renderer. --- ddrinput.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ddrinput.py') 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 -- cgit v1.2.3