summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/play_menu.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2026-01-05 02:20:01 +0500
committeruntodesu <kirill@untode.su>2026-01-05 02:20:01 +0500
commit915e52157208af9b41dd52892e7138c8c440e85b (patch)
tree718224dbf69a1fdf557131a648c34e60dbdca25d /src/game/client/gui/play_menu.cc
parenta1c83d56f41e6f2e0ad86dcd76d1446bfc60a37c (diff)
downloadvoxelius-915e52157208af9b41dd52892e7138c8c440e85b.tar.bz2
voxelius-915e52157208af9b41dd52892e7138c8c440e85b.zip
Progress
Diffstat (limited to 'src/game/client/gui/play_menu.cc')
-rw-r--r--src/game/client/gui/play_menu.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/client/gui/play_menu.cc b/src/game/client/gui/play_menu.cc
index 61a99a4..62b5fce 100644
--- a/src/game/client/gui/play_menu.cc
+++ b/src/game/client/gui/play_menu.cc
@@ -23,7 +23,7 @@
#include "client/gui/gui_screen.hh"
#include "client/gui/language.hh"
-#include "client/io/glfw.hh"
+#include "client/io/keyboard.hh"
#include "client/game.hh"
#include "client/globals.hh"
@@ -170,9 +170,9 @@ static void join_selected_server(void)
}
}
-static void on_glfw_key(const GlfwKeyEvent& event)
+static void on_key(const KeyEvent& event)
{
- if((event.key == GLFW_KEY_ESCAPE) && (event.action == GLFW_PRESS)) {
+ if(event.is_keycode(GLFW_KEY_ESCAPE) && event.is_action(GLFW_PRESS)) {
if(globals::gui_screen == GUI_PLAY_MENU) {
if(editing_server) {
if(adding_server) {
@@ -517,7 +517,7 @@ void play_menu::init(void)
}
}
- globals::dispatcher.sink<GlfwKeyEvent>().connect<&on_glfw_key>();
+ globals::dispatcher.sink<KeyEvent>().connect<&on_key>();
globals::dispatcher.sink<LanguageSetEvent>().connect<&on_language_set>();
globals::dispatcher.sink<BotherResponseEvent>().connect<&on_bother_response>();
}