From 14ac7e16208c006a730747fd23b0bc07ac3a6ece Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 20 Aug 2002 23:25:27 +0000 Subject: [PATCH] Readd support for secondary Pump pads (which vanished somehow). Make PiU button order more logical: UL, UR, MID, DL, DR. --- stepmania/src/RageInput.cpp | 63 ++++++++++++++++++++++--------------- stepmania/src/RageInput.h | 3 +- 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/stepmania/src/RageInput.cpp b/stepmania/src/RageInput.cpp index 8e2067a49e..33d526296d 100644 --- a/stepmania/src/RageInput.cpp +++ b/stepmania/src/RageInput.cpp @@ -37,7 +37,8 @@ RageInput* INPUTMAN = NULL; // globally accessable input device const char *PumpButtonNames[] = { - "DL", "DR", "MID", "UL", "UR", "Esc" + "UL", "UR", "MID", "DL", "DR", "Esc", + "P2 UL", "P2 UR", "P2 MID", "P2 DL", "P2 DR" }; int DeviceInput::NumButtons(InputDevice device) @@ -552,6 +553,8 @@ HRESULT RageInput::UpdateMouse() HRESULT RageInput::UpdateKeyboard() { + ZeroMemory( &m_keys, sizeof(m_keys) ); + if( NULL == m_pKeyboard ) return E_FAIL; @@ -574,6 +577,38 @@ HRESULT RageInput::UpdateKeyboard() return S_OK; } +HRESULT RageInput::UpdatePump() +{ + for( int i=0; i