Does MyGUI support of two modifiers for hotkeys?

vvfxg

30-10-2016 20:15:34

I need to use ctrl + alt + key combinations but I can't find alt support in InputManager.
Some link to check or brief explanation will be very helpful :)

Thanks

Altren

31-10-2016 22:34:56

I think that handling complex hotkeys is not what GUI library should provide to a user. It's not a big deal to save ctrl/shift/alt states yourself. MyGUI does save this states for internal use (just a few lines of code, no complex logic at all).
Adding alt support is not a big deal, but I believe that you should handle hotkeys externally.

vvfxg

02-11-2016 21:30:52

Altren, thanks for reply. I need some direction (please) in this, still can't get how it works :(
I need to add my own InputManager?

And another question: I want to capture global mouse movement (when mouse is not over widget) event in specific widget to handle it. I can use eventMouseMove in my Control when mouse is over widget, but what to do when mouse goes out of widget? I stuck there :(

Thanks and sorry for lame questions. I just started to learn how to use your great lib, but not all ideas behind it are clear for (me) now.

Altren

03-11-2016 01:00:35

Altren, thanks for reply. I need some direction (please) in this, still can't get how it works :(
I need to add my own InputManager?
I don't know what input system do you use, but you can have few boolean variables for shift/ctrl/alt state and change them on respective keys press/release.

And another question: I want to capture global mouse movement (when mouse is not over widget) event in specific widget to handle it. I can use eventMouseMove in my Control when mouse is over widget, but what to do when mouse goes out of widget? I stuck there :(

Thanks and sorry for lame questions. I just started to learn how to use your great lib, but not all ideas behind it are clear for (me) now.
Whenever you call MyGUI::InputManager::injectMouse*** it returns boolean: true when a mouse is over a widget and false otherwise. By default, all widgets are not transparent to mouse and to make them ignore you need to call setNeedMouseFocus(false) for such widgets.