Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make arrow keys not scroll so slow you want to self-harm #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/plib/gnw/input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,13 @@ void GNW95_process_message()
if (ptr->time != -1) {
unsigned int elapsedTime = ptr->time > tick ? INT_MAX : tick - ptr->time;
unsigned int delay = ptr->count == 0 ? GNW95_repeat_delay : GNW95_repeat_rate;
switch (key) {
case SDL_SCANCODE_LEFT:
case SDL_SCANCODE_RIGHT:
case SDL_SCANCODE_UP:
case SDL_SCANCODE_DOWN:
delay = 0;
}
if (elapsedTime > delay) {
keyboardData.key = key;
keyboardData.down = 1;
Expand Down