From 915e52157208af9b41dd52892e7138c8c440e85b Mon Sep 17 00:00:00 2001 From: untodesu Date: Mon, 5 Jan 2026 02:20:01 +0500 Subject: Progress --- src/game/client/gui/play_menu.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game/client/gui/play_menu.cc') 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().connect<&on_glfw_key>(); + globals::dispatcher.sink().connect<&on_key>(); globals::dispatcher.sink().connect<&on_language_set>(); globals::dispatcher.sink().connect<&on_bother_response>(); } -- cgit