From 5c91a74c007f2efef71d0af376aed3cd439fc7d7 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 29 Mar 2026 09:19:16 -0700
Subject: [PATCH] Allow using gamepad buttons to continue past the gameover
screen
---
game/gameover.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/game/gameover.cpp b/game/gameover.cpp
index 85456443..78038ff3 100644
--- a/game/gameover.cpp
+++ b/game/gameover.cpp
@@ -216,6 +216,13 @@ bool GameOverPanelDelegate::HandleEvent(const SDL_Event &event)
}
m_handleLabel->SetText(m_handle);
return true;
+ case SDL_EVENT_GAMEPAD_BUTTON_DOWN:
+ return true;
+ case SDL_EVENT_GAMEPAD_BUTTON_UP:
+ FinishEnterName();
+ return true;
+ default:
+ break;
}
return false;
}