Skip to content

Commit

Permalink
input: use wheelScroll on non-PC platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
vgmoose committed Dec 1, 2023
1 parent c603892 commit d99a95d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/InputEvents.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ class InputEvents

std::function<void()> quitaction = NULL; //Called for an SDL_Quit event, usually caused by a SIGINT

#ifdef PC
float wheelScroll = 0;
#endif

int yPos = 0;
int xPos = 0;
Expand Down
2 changes: 0 additions & 2 deletions src/ListElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ bool ListElement::handleInertiaScroll(InputEvents* event)

if (ret) event->isScrolling = true;

#ifdef PC
if (event->wheelScroll != 0)
{
// apply wheel scroll directly to y position, and then reset
Expand All @@ -120,7 +119,6 @@ bool ListElement::handleInertiaScroll(InputEvents* event)

ret |= true;
}
#endif

return ret;
}

0 comments on commit d99a95d

Please sign in to comment.