Merge commit '7fe86cec59c1143275ffb7fc07b6716ae0116033'

This commit is contained in:
Lior Halphon 2018-05-11 12:50:53 +03:00
commit feaa0d0654

View File

@ -216,9 +216,9 @@ static void handle_events(GB_gameboy_t *gb)
default:
/* Save states */
if (event.key.keysym.scancode >= SDL_SCANCODE_0 && event.key.keysym.scancode <= SDL_SCANCODE_9) {
if (event.key.keysym.scancode >= SDL_SCANCODE_1 && event.key.keysym.scancode <= SDL_SCANCODE_0) {
if (event.key.keysym.mod & MODIFIER) {
command_parameter = event.key.keysym.scancode - SDL_SCANCODE_0;
command_parameter = event.key.keysym.scancode - SDL_SCANCODE_1;
if (event.key.keysym.mod & KMOD_SHIFT) {
pending_command = GB_SDL_LOAD_STATE_COMMAND;