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