From 99e4ad409f3c94a3e7760bdc06f57fb20c23c8da Mon Sep 17 00:00:00 2001 From: StapleButter Date: Wed, 29 Mar 2017 22:56:30 +0200 Subject: maybe this shit will finally work. also update the README. --- src/wx/scancode_wx2sdl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3