- if (HandleKeysDebug(key, key_status))
- return; // do not handle already processed keys again
+ for (pnr = 0; pnr < MAX_PLAYERS; pnr++)
+ {
+ ski = setup.input[pnr].key;
+
+ for (i = 0; i < NUM_PLAYER_ACTIONS; i++)
+ if (key == *key_info[i].key_custom)
+ game_key_pressed = TRUE;
+ }
+
+ ssi = setup.shortcut;
+
+ for (i = 0; i < NUM_DIRECTIONS; i++)
+ if (key == *key_info[i].key_snap)
+ game_key_pressed = TRUE;
+ }
+
+ // only handle speed or debug keys if no game key is pressed
+ if (!game_key_pressed)
+ {
+ if (HandleKeysSpeed(key, key_status))
+ return; // do not handle already processed keys again
+
+ if (HandleKeysDebug(key, key_status))
+ return; // do not handle already processed keys again
+ }