From 41f8e2975e1a53ab8e3a89bc8e8b11eb878ca0b8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 26 Dec 2006 23:12:36 +0000 Subject: [PATCH] update ButtonPressed --- .../arch/InputHandler/InputHandler_MonkeyKeyboard.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/InputHandler/InputHandler_MonkeyKeyboard.cpp b/stepmania/src/arch/InputHandler/InputHandler_MonkeyKeyboard.cpp index 5b3292bfc7..23d48cf591 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_MonkeyKeyboard.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_MonkeyKeyboard.cpp @@ -62,7 +62,8 @@ void InputHandler_MonkeyKeyboard::Update() if( m_diLast.IsValid() ) { // End the previous key - ButtonPressed( m_diLast, false ); + m_diLast.level = 0; + ButtonPressed( m_diLast ); m_diLast.MakeInvalid(); } InputHandler::UpdateTimer(); @@ -76,12 +77,14 @@ void InputHandler_MonkeyKeyboard::Update() if( m_diLast.IsValid() ) { // End the previous key - ButtonPressed( m_diLast, false ); + m_diLast.level = 0; + ButtonPressed( m_diLast ); } // Choose a new key and send it. m_diLast = DeviceInput( DEVICE_KEYBOARD, GetRandomKeyboardKey() ); - ButtonPressed( m_diLast, true ); + m_diLast.level = 1; + ButtonPressed( m_diLast ); m_timerPressButton.Touch(); }