1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-07 22:00:56 +00:00

Remove unused argument from lambda to fix compiler warning

This commit is contained in:
Andrew Lanzone 2025-07-04 12:49:54 -07:00
parent 04d73cf195
commit 28f3b4a530

View file

@ -240,7 +240,7 @@ namespace MWLua
api["isMouseButtonPressed"]
= [](int button) -> bool { return SDL_GetMouseState(nullptr, nullptr) & SDL_BUTTON(button); };
api["_isGamepadCursorActive"] = [input]() -> bool { return input->isGamepadGuiCursorEnabled(); };
api["_isControllerMenusEnabled"] = [input]() -> bool { return Settings::gui().mControllerMenus; };
api["_isControllerMenusEnabled"] = []() -> bool { return Settings::gui().mControllerMenus; };
api["_setGamepadCursorActive"] = [input](bool v) {
input->setGamepadGuiCursorEnabled(v);
MWBase::Environment::get().getWindowManager()->setCursorActive(v);