mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed an issue where using the trigger buttons did not reset any currently held buttons.
This commit is contained in:
parent
825d220be0
commit
4b03c90bf3
|
@ -222,6 +222,8 @@ protected:
|
||||||
{
|
{
|
||||||
mLastCursor = mCursor;
|
mLastCursor = mCursor;
|
||||||
mCursor = 0;
|
mCursor = 0;
|
||||||
|
mScrollVelocity = 0;
|
||||||
|
mScrollTier = 0;
|
||||||
onCursorChanged(CursorState::CURSOR_STOPPED);
|
onCursorChanged(CursorState::CURSOR_STOPPED);
|
||||||
onScroll();
|
onScroll();
|
||||||
return true;
|
return true;
|
||||||
|
@ -231,6 +233,8 @@ protected:
|
||||||
{
|
{
|
||||||
mLastCursor = mCursor;
|
mLastCursor = mCursor;
|
||||||
mCursor = static_cast<int>(mEntries.size()) - 1;
|
mCursor = static_cast<int>(mEntries.size()) - 1;
|
||||||
|
mScrollVelocity = 0;
|
||||||
|
mScrollTier = 0;
|
||||||
onCursorChanged(CursorState::CURSOR_STOPPED);
|
onCursorChanged(CursorState::CURSOR_STOPPED);
|
||||||
onScroll();
|
onScroll();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue