From a6d2ad59579d519ead81e30afaef67bd07e56930 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 17 Jan 2006 09:03:33 +0000 Subject: [PATCH] cleanup joystick with keyboard hack --- .../src/arch/InputHandler/InputHandler_DirectInput.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp b/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp index 151f6a213c..3a8052e84e 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp @@ -384,9 +384,10 @@ void InputHandler_DInput::UpdateBuffered( DIDevice &device, const RageTimer &tm switch( in.type ) { case in.KEY: - /* // "Joystick with keyboard" hack + /* switch( in.num ) { + // "Joystick with Keyboard" hack case 115: //s ButtonPressed( DeviceInput(DEVICE_JOY1, JOY_UP, -1, tm), !!(evtbuf[i].dwData & 0x80) ); break; @@ -399,10 +400,13 @@ void InputHandler_DInput::UpdateBuffered( DIDevice &device, const RageTimer &tm case 99: //c ButtonPressed( DeviceInput(DEVICE_JOY1, JOY_RIGHT, -1, tm), !!(evtbuf[i].dwData & 0x80) ); break; + case 100: //d + ButtonPressed( DeviceInput(DEVICE_JOY1, JOY_BUTTON_1, -1, tm), !!(evtbuf[i].dwData & 0x80) ); + break; default: - */ + */ ButtonPressed( DeviceInput(dev, (DeviceButton) in.num, -1, tm), !!(evtbuf[i].dwData & 0x80)) ; - /* + /* break; } */