{ &ski.drop, NULL, DEFAULT_KEY_DROP, JOY_BUTTON_DROP }
};
boolean game_key_pressed = FALSE;
+ boolean game_button_key_pressed = FALSE;
int joy = 0;
int i;
// for any keyboard event, enable playfield mouse cursor
if (key_action && key_status == KEY_PRESSED)
SetPlayfieldMouseCursorEnabled(TRUE);
+
+ // check if any game button key was pressed (snap or drop key)
+ if (key_action & JOY_BUTTON)
+ game_button_key_pressed = TRUE;
}
}
else
}
if (game_status == GAME_MODE_PLAYING && game.all_players_gone &&
- (key == KSYM_Return || key == setup.shortcut.toggle_pause))
+ (key == KSYM_Return || key == setup.shortcut.toggle_pause || game_button_key_pressed))
{
GameEnd();