• Capturing mouse wheel events
    8 replies, posted
How would i go about capturing mouse wheel events? Using [url=http://wiki.garrysmod.com/?title=Input.IsMouseDown]Input.IsMouseDown[/url] in conjunction with MOUSE_WHEEL_UP or MOUSE_WHEEL_DOWN does not work. I tried creating a binary module to process the WM_MOUSEWHEEL windows message, but it didn't work either (I am fail at c++). What i basically want to be able to do is check if i am scrolling when the cursor is visible.
No one?
Sorry for the mindless bumping, but i really need this.
Dude, you posted this one day ago. You have to wait ... if noone knows howto do it noone can answer ... But you could either ask the OP of [url=http://www.facepunch.com/showthread.php?t=793355]this[/url] thread if he includes MOUSE_WHEEL_UP / DOWN to the gmcl_mouseclick module eg: mouse.Click(MOUSE_WHEEL_UP) and mouse.Get(MOUSE_WHEEL_UP) or report the bug at [url=http://getsatisfaction.com/facepunch/products/facepunch_garry_s_mod] the new bugreport page[/url].
[QUOTE=The-Stone;16772871]Dude, you posted this one day ago. You have to wait ... if noone knows howto do it noone can answer ... But you could either ask the OP of [url=http://www.facepunch.com/showthread.php?t=793355]this[/url] thread if he includes MOUSE_WHEEL_UP / DOWN to the gmcl_mouseclick module eg: mouse.Click(MOUSE_WHEEL_UP) and mouse.Get(MOUSE_WHEEL_UP) or report the bug at [url=http://getsatisfaction.com/facepunch/products/facepunch_garry_s_mod] the new bugreport page[/url].[/QUOTE] I have been through the module source code and sadly it does not include MOUSE_WHEEL_UP/MOUSE_WHEEL_DOWN or anything to do with checking user input.
"Note: MOUSE_WHEEL_DOWN and MOUSE_WHEEL_UP are broken with input.IsMouseDown in the current Garry's Mod version (#54)." ([url]http://wiki.garrysmod.com/?title=IN_KEYS[/url]) Looks like you're stuck. Sorry man.
[QUOTE=Entoros;16775506]"Note: MOUSE_WHEEL_DOWN and MOUSE_WHEEL_UP are broken with input.IsMouseDown in the current Garry's Mod version (#54)." ([url]http://wiki.garrysmod.com/?title=IN_KEYS[/url]) Looks like you're stuck. Sorry man.[/QUOTE] I already knew they were broken, i read the wiki before posting here. Telling me that i am stuck isn't really going to help me with the problem.
Well if you already knew they were broken then... they're broken. Talk to garry, not to us.
I was asking if there was another way.
Sorry, you need to Log In to post a reply to this thread.