Skip to content

Commit

Permalink
Eliminated numpad key repeat issue for sdl2 and gl on Windows. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyle-Tafoya committed Oct 11, 2023
1 parent e6a5ede commit 7c26ec9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions gl/pdckbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,8 @@ static int _process_key_event(void)
(key_table[i].numkeypad && (event.key.keysym.mod & KMOD_NUM)))
{
key = key_table[i].shifted;
#ifdef __linux
if( (key >= '0' && key <= '9') || strchr( ".+-*/", key))
key = -1;
#endif
}
else if (event.key.keysym.mod & KMOD_CTRL)
{
Expand Down
2 changes: 0 additions & 2 deletions sdl2/pdckbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,8 @@ static int _process_key_event(void)
(key_table[i].numkeypad && (event.key.keysym.mod & KMOD_NUM)))
{
key = key_table[i].shifted;
#ifdef __linux
if( (key >= '0' && key <= '9') || strchr( ".+-*/", key))
key = -1;
#endif
}
else if (event.key.keysym.mod & KMOD_CTRL)
{
Expand Down

0 comments on commit 7c26ec9

Please sign in to comment.