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