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/splash.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/game/client/gui/splash.cc') diff --git a/src/game/client/gui/splash.cc b/src/game/client/gui/splash.cc index 7d7b86c..8e4c505 100644 --- a/src/game/client/gui/splash.cc +++ b/src/game/client/gui/splash.cc @@ -18,7 +18,8 @@ #include "client/gui/gui_screen.hh" #include "client/gui/language.hh" -#include "client/io/glfw.hh" +#include "client/io/keyboard.hh" +#include "client/io/mouse.hh" #include "client/resource/texture_gui.hh" @@ -37,17 +38,17 @@ static float texture_alpha; static std::uint64_t end_time; static std::string current_text; -static void on_glfw_key(const GlfwKeyEvent& event) +static void on_key(const KeyEvent& event) { end_time = UINT64_C(0); } -static void on_glfw_mouse_button(const GlfwMouseButtonEvent& event) +static void on_mouse_button(const MouseButtonEvent& event) { end_time = UINT64_C(0); } -static void on_glfw_scroll(const GlfwScrollEvent& event) +static void on_scroll(const ScrollEvent& event) { end_time = UINT64_C(0); } @@ -89,9 +90,9 @@ void client_splash::init_late(void) end_time = utils::unix_microseconds() + DELAY_MICROSECONDS; - globals::dispatcher.sink().connect<&on_glfw_key>(); - globals::dispatcher.sink().connect<&on_glfw_mouse_button>(); - globals::dispatcher.sink().connect<&on_glfw_scroll>(); + globals::dispatcher.sink().connect<&on_key>(); + globals::dispatcher.sink().connect<&on_mouse_button>(); + globals::dispatcher.sink().connect<&on_scroll>(); current_text = language::resolve("splash.skip_prompt"); @@ -108,9 +109,9 @@ void client_splash::init_late(void) client_splash::render(); } - globals::dispatcher.sink().disconnect<&on_glfw_key>(); - globals::dispatcher.sink().disconnect<&on_glfw_mouse_button>(); - globals::dispatcher.sink().disconnect<&on_glfw_scroll>(); + globals::dispatcher.sink().disconnect<&on_key>(); + globals::dispatcher.sink().disconnect<&on_mouse_button>(); + globals::dispatcher.sink().disconnect<&on_scroll>(); texture = nullptr; texture_aspect = 0.0f; -- cgit