aboutsummaryrefslogtreecommitdiff
path: root/game/hud
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-10 14:47:17 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-10 14:47:17 +0100
commitbcf9bd69f173ecee0104c84e4eadc990f17569c6 (patch)
tree712d36dec5257a5524269dde85345ceaf90504d1 /game/hud
parent433c840c14782d84b4b95265b3e6f7a1f67ade3b (diff)
parent798237b661e8e49284e78ffb1a16599cf6a46a6d (diff)
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'game/hud')
-rw-r--r--game/hud/HudScript.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/hud/HudScript.cpp b/game/hud/HudScript.cpp
index 3fb7a77..e4aeae7 100644
--- a/game/hud/HudScript.cpp
+++ b/game/hud/HudScript.cpp
@@ -3,6 +3,7 @@
#include "../Config.h"
#include "../Events.h"
+#include "api/KeyCodes.h"
#include "menus/endgame/EndGameSubScript.h"
#include <climits>
@@ -37,7 +38,7 @@ void HudScript::init() {
}
bool HudScript::toggle_fps(crepe::KeyPressEvent ev) {
- if (ev.key != Keycode::END) return false;
+ if (ev.key != Keycode::D1) return false;
Text & txt_fps = this->get_components_by_name<Text>(HUD_FPS).front();
this->show_fps = !this->show_fps;
if (this->show_fps) {