From afdfb4ef20b97bc72fd93300ac992e43ac2d0a43 Mon Sep 17 00:00:00 2001 From: Gordon Weeks <627684+gcweeks@users.noreply.github.com> Date: Sat, 31 Jan 2026 17:33:15 -0800 Subject: [PATCH] Allow any player to start game --- src/samples/title_screen.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/samples/title_screen.h b/src/samples/title_screen.h index e69dd8e..8c9a9f0 100644 --- a/src/samples/title_screen.h +++ b/src/samples/title_screen.h @@ -15,11 +15,14 @@ public: void update(float delta_time) override { - // Trigger scene change on Enter key or gamepad start button. - if (IsKeyPressed(KEY_ENTER) || IsGamepadButtonPressed(0, GAMEPAD_BUTTON_MIDDLE_RIGHT)) + bool start = IsKeyPressed(KEY_ENTER); + for (int gp = 0; gp < 4; gp++) { - game->go_to_scene("song_select"); + if (IsGamepadAvailable(gp) && IsGamepadButtonPressed(gp, GAMEPAD_BUTTON_MIDDLE_RIGHT)) + start = true; } + if (start) + game->go_to_scene("song_select"); } void draw() override