1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 20:19:57 +00:00

Fix mouse wheel triggering a click event in mygui

This commit is contained in:
scrawl 2013-06-12 15:10:04 +02:00
parent 918a1655bb
commit cc077eaba6

View file

@ -463,6 +463,9 @@ namespace MWInput
{
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));
if (MyGUI::InputManager::getInstance ().getMouseFocusWidget () != 0)