diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-03-29 22:56:30 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-03-29 22:56:30 +0200 |
commit | 99e4ad409f3c94a3e7760bdc06f57fb20c23c8da (patch) | |
tree | 816b5ca3888d4b9b1b199f85e3fd8fd5843a58ed /src/wx | |
parent | 9baeb3bd1afb26c1525939ed75ba70486ffe24bf (diff) |
maybe this shit will finally work. also update the README.
Diffstat (limited to 'src/wx')
-rw-r--r-- | src/wx/scancode_wx2sdl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/scancode_wx2sdl.h b/src/wx/scancode_wx2sdl.h index 1091a1c..a1030ee 100644 --- a/src/wx/scancode_wx2sdl.h +++ b/src/wx/scancode_wx2sdl.h @@ -299,7 +299,7 @@ SDL_Scancode scancode_wx2sdl(wxKeyEvent& event) int keysym = event.GetRawKeyCode(); - if (keysym == NoSymbol) + if (keysym == 0) { return SDL_SCANCODE_UNKNOWN; } @@ -322,7 +322,7 @@ SDL_Scancode scancode_wx2sdl(wxKeyEvent& event) return (SDL_Scancode)(SDL_SCANCODE_1 + (keysym - GDK_1)); } - for (i = 0; i < SDL_arraysize(KeySymToSDLScancode); ++i) + for (int i = 0; i < SDL_arraysize(KeySymToSDLScancode); ++i) { if (keysym == KeySymToSDLScancode[i].keysym) { |