Use di.bDown. This is normally filled in via di.level.

This commit is contained in:
Glenn Maynard
2006-12-26 22:40:20 +00:00
parent 4dd2f3a301
commit 2d40b4b3d0
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -113,7 +113,7 @@ ButtonState::ButtonState():
m_fSecsHeld = 0; m_fSecsHeld = 0;
} }
void InputFilter::ButtonPressed( const DeviceInput &di, bool Down ) void InputFilter::ButtonPressed( const DeviceInput &di )
{ {
LockMut(*queuemutex); LockMut(*queuemutex);
@@ -129,6 +129,7 @@ void InputFilter::ButtonPressed( const DeviceInput &di, bool Down )
RageTimer now; RageTimer now;
CheckButtonChange( bs, di, now ); CheckButtonChange( bs, di, now );
bool Down = di.bDown;
if( bs.m_BeingHeld != Down ) if( bs.m_BeingHeld != Down )
{ {
bs.m_BeingHeld = Down; bs.m_BeingHeld = Down;
+1 -1
View File
@@ -35,7 +35,7 @@ struct ButtonState;
class InputFilter class InputFilter
{ {
public: public:
void ButtonPressed( const DeviceInput &di, bool Down ); void ButtonPressed( const DeviceInput &di );
void SetButtonComment( const DeviceInput &di, const RString &sComment = "" ); void SetButtonComment( const DeviceInput &di, const RString &sComment = "" );
void ResetDevice( InputDevice dev ); void ResetDevice( InputDevice dev );