Fix bugged mouse support on some platforms

This commit is contained in:
Lior Halphon 2019-06-21 17:20:18 +03:00
parent 72d1d9b154
commit b478b5b568

View File

@ -883,6 +883,7 @@ void run_gui(bool is_running)
} }
} }
break;
case SDL_JOYBUTTONDOWN: case SDL_JOYBUTTONDOWN:
event.type = SDL_KEYDOWN; event.type = SDL_KEYDOWN;
joypad_button_t button = get_joypad_button(event.jbutton.button); joypad_button_t button = get_joypad_button(event.jbutton.button);