Use di.bDown. This is normally filled in via di.level.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user