mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-05 23:43:07 +00:00
Make main menu honor controller mouse clicks
This commit is contained in:
parent
be298f78cb
commit
80166cddd0
1 changed files with 3 additions and 0 deletions
|
|
@ -224,6 +224,8 @@ namespace MWGui
|
|||
key = MyGUI::KeyCode::Tab;
|
||||
break;
|
||||
case SDL_CONTROLLER_BUTTON_A:
|
||||
if (mMouseFocus != nullptr)
|
||||
return false;
|
||||
key = MyGUI::KeyCode::Space;
|
||||
break;
|
||||
case SDL_CONTROLLER_BUTTON_B:
|
||||
|
|
@ -341,6 +343,7 @@ namespace MWGui
|
|||
button->setProperty("ImagePushed", "textures\\menu_" + buttonId + "_pressed.dds");
|
||||
button->eventMouseButtonClick += MyGUI::newDelegate(this, &MainMenu::onButtonClicked);
|
||||
button->setUserData(buttonId);
|
||||
trackFocusEvents(button);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue