diff --git a/firmware/target/hosted/sdl/key_to_touch-sdl.c b/firmware/target/hosted/sdl/key_to_touch-sdl.c index d56d06ba74..b7052e043f 100644 --- a/firmware/target/hosted/sdl/key_to_touch-sdl.c +++ b/firmware/target/hosted/sdl/key_to_touch-sdl.c @@ -52,12 +52,12 @@ int key_to_touch(int keyboard_button, unsigned int mouse_coords) } break; #ifndef APPLICATION - case SDLK_KP7: + case SDLK_KP_7: case SDLK_7: case SDLK_HOME: new_btn = BUTTON_TOPLEFT; break; - case SDLK_KP8: + case SDLK_KP_8: case SDLK_8: case SDLK_UP: #ifdef HAVE_SCROLLWHEEL @@ -65,32 +65,32 @@ int key_to_touch(int keyboard_button, unsigned int mouse_coords) #endif new_btn = BUTTON_TOPMIDDLE; break; - case SDLK_KP9: + case SDLK_KP_9: case SDLK_9: case SDLK_PAGEUP: new_btn = BUTTON_TOPRIGHT; break; - case SDLK_KP4: + case SDLK_KP_4: case SDLK_u: case SDLK_LEFT: new_btn = BUTTON_MIDLEFT; break; - case SDLK_KP5: + case SDLK_KP_5: case SDLK_i: case SDL_BUTTON_MIDDLE: new_btn = BUTTON_CENTER; break; - case SDLK_KP6: + case SDLK_KP_6: case SDLK_o: case SDLK_RIGHT: new_btn = BUTTON_MIDRIGHT; break; - case SDLK_KP1: + case SDLK_KP_1: case SDLK_j: case SDLK_END: new_btn = BUTTON_BOTTOMLEFT; break; - case SDLK_KP2: + case SDLK_KP_2: case SDLK_k: #ifdef HAVE_SCROLLWHEEL case SDL_BUTTON_WHEELDOWN: @@ -98,7 +98,7 @@ int key_to_touch(int keyboard_button, unsigned int mouse_coords) case SDLK_DOWN: new_btn = BUTTON_BOTTOMMIDDLE; break; - case SDLK_KP3: + case SDLK_KP_3: case SDLK_l: case SDLK_PAGEDOWN: new_btn = BUTTON_BOTTOMRIGHT; @@ -106,4 +106,5 @@ int key_to_touch(int keyboard_button, unsigned int mouse_coords) #endif } return new_btn; + }