(solved) Mousewheel over GUI

Started by Radiant, Thu 03/10/2013 22:17:04

Previous topic - Next topic

Radiant

How do I detect the mousewheel being used over a GUI? The normal method (on_mouse_click) doesn't register on GUIs, and the variant (on_event eEventGUIMouseDown) doesn't seem to offer a way to detect which way the mousewheel is turned.

Khris

I tested this and I was able to use on_mouse_click, the GUI has to be clickable though.

It looks like since mouse.IsButtonDown only works with eMouseLeft, Middle and Right, turning the mouse wheel does trigger on_mouse_click and not on_event over GUIs; I'm guessing because otherwise there actually wouldn't be a way to catch scrolling over a GUI.

Radiant

And that fixed it, thanks.

SMF spam blocked by CleanTalk