diff --git a/rts/Menu/LuaMenuController.cpp b/rts/Menu/LuaMenuController.cpp index 33b4e4a75b..cd305046be 100644 --- a/rts/Menu/LuaMenuController.cpp +++ b/rts/Menu/LuaMenuController.cpp @@ -130,15 +130,15 @@ bool CLuaMenuController::Draw() } -int CLuaMenuController::KeyReleased(int k) +int CLuaMenuController::KeyReleasedSC(int keyScanCode, int keySym) { - luaInputReceiver->KeyReleased(k); + luaInputReceiver->KeyReleasedSC(keyScanCode, keySym); return 0; } -int CLuaMenuController::KeyPressed(int k, bool isRepeat) +int CLuaMenuController::KeyPressedSC(int keyScanCode, int keySym, bool isRepeat) { - luaInputReceiver->KeyPressed(k, isRepeat); + luaInputReceiver->KeyPressedSC(keyScanCode, keySym, isRepeat); return 0; } diff --git a/rts/Menu/LuaMenuController.h b/rts/Menu/LuaMenuController.h index c776250295..91b634074d 100644 --- a/rts/Menu/LuaMenuController.h +++ b/rts/Menu/LuaMenuController.h @@ -18,8 +18,8 @@ class CLuaMenuController : public CGameController static bool ActivateInstance(const std::string& msg); - int KeyReleased(int k) override; - int KeyPressed(int k, bool isRepeat) override; + int KeyPressedSC(int keyScanCode, int keySym, bool isRepeat); + int KeyReleasedSC(int keyScanCode, int keySym); int TextInput(const std::string& utf8Text) override; int TextEditing(const std::string& utf8, unsigned int start, unsigned int length) override;