forked from teamnwah/openmw-tes3coop
Fix mouse wheel triggering a click event in mygui
This commit is contained in:
parent
918a1655bb
commit
cc077eaba6
1 changed files with 3 additions and 0 deletions
|
@ -463,6 +463,9 @@ namespace MWInput
|
||||||
{
|
{
|
||||||
mInputBinder->mousePressed (arg, id);
|
mInputBinder->mousePressed (arg, id);
|
||||||
|
|
||||||
|
if (id != SDL_BUTTON_LEFT && id != SDL_BUTTON_RIGHT)
|
||||||
|
return true; // MyGUI has no use for these events
|
||||||
|
|
||||||
MyGUI::InputManager::getInstance().injectMousePress(mMouseX, mMouseY, sdlButtonToMyGUI(id));
|
MyGUI::InputManager::getInstance().injectMousePress(mMouseX, mMouseY, sdlButtonToMyGUI(id));
|
||||||
|
|
||||||
if (MyGUI::InputManager::getInstance ().getMouseFocusWidget () != 0)
|
if (MyGUI::InputManager::getInstance ().getMouseFocusWidget () != 0)
|
||||||
|
|
Loading…
Reference in a new issue