Add P button to pause
This commit is contained in:
@@ -255,7 +255,9 @@ void updatePlayerInput() {
|
||||
if (IsKeyDown(KEY_Q)) game->camera.rotation--;
|
||||
if (IsKeyDown(KEY_E)) game->camera.rotation++;
|
||||
|
||||
if (IsKeyReleased(input->mapping.backBtn)) {
|
||||
if (IsKeyReleased(input->mapping.pauseBtn)) {
|
||||
setScreen(game, SCREEN_PAUSE_MENU);
|
||||
} else if (IsKeyReleased(input->mapping.backBtn)) {
|
||||
if (input->state == INPUT_NONE) {
|
||||
setScreen(game, SCREEN_PAUSE_MENU);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user