Move the gameView input handler to CGameView

`game_view_handler` isn't global anymore. That makes the interface
simpler and might make the compilation and the runtime faster.
This commit is contained in:
phosit
2025-04-18 11:03:34 +02:00
parent 3bf8e92ed4
commit 364d50e184
3 changed files with 12 additions and 15 deletions
-1
View File
@@ -258,7 +258,6 @@ static void InitPs(bool setup_gui, const CStrW& gui_page, ScriptInterface* srcSc
g_Joystick.Initialise();
std::unique_ptr<InputHandlers> handlers{std::make_unique<InputHandlers>()};
handlers->emplace(g_VideoMode.m_InputManager, Input::Slot::GAME_VIEW, game_view_handler);
handlers->emplace(g_VideoMode.m_InputManager, Input::Slot::HOTKEY_INPUT, HotkeyInputActualHandler);