Skip to content

Commit

Permalink
ignore debounce for mousewheel input
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 15, 2017
1 parent 6d0df33 commit c5a97e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InputFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void InputFilter::CheckButtonChange( ButtonState &bs, DeviceInput di, const std:
* If the input was coin, possibly apply distinct coin debounce in the else below. */
std::chrono::duration<float> timeDelta = now - bs.m_LastReportTime;
float delta = timeDelta.count();
if (! INPUTMAPPER->DeviceToGame(di, gi) || gi.button != GAME_BUTTON_COIN )
if (! INPUTMAPPER->DeviceToGame(di, gi) && di.button != MOUSE_WHEELDOWN && di.button != MOUSE_WHEELUP)
{
/* If the last IET_FIRST_PRESS or IET_RELEASE event was sent too recently,
* wait a while before sending it. */
Expand Down

0 comments on commit c5a97e3

Please sign in to comment.