Data Realms Fan Forums
http://45.55.195.193/

Keybinding for mousewheelup+down?
http://45.55.195.193/viewtopic.php?f=73&t=14800
Page 1 of 1

Author:  Erahgon [ Wed May 20, 2009 1:33 am ]
Post subject:  Keybinding for mousewheelup+down?

How would I make something happen if the mousewheel was scrolled instead of a keypress?

Code:
(UInputMan:KeyHeld(25))


Instead of the 25 (which corresponds to the y button), how would I make it so that something happens when I scrolled the mousewheel up?

Author:  Thoughtprocess [ Wed May 20, 2009 2:01 am ]
Post subject:  Re: Keybinding for mousewheelup+down?

The function you're looking for is
Code:
UInputMan:MouseWheelMoved()

The documentation for UInputMan is missing for some reason missing, but fiddling with it in the console may get it to output something if it's not applied per update. If it is, you could still probably get the same result by making a test device that prints every update.

Author:  Mind [ Wed May 20, 2009 3:49 am ]
Post subject:  Re: Keybinding for mousewheelup+down?

So what do you press if you want something to happen with the right click of the mouse?

Even though this isnt my topic, id still like to know. :)

Thanks

Author:  zalo [ Wed May 20, 2009 6:08 am ]
Post subject:  Re: Keybinding for mousewheelup+down?

Code:
UInputMan:MouseButtonHeld(0)


That's how you do left click.

Figure the rest out for yourself.

Author:  Daman [ Wed May 20, 2009 5:16 pm ]
Post subject:  Re: Keybinding for mousewheelup+down?

spoilers: the wiki has all your answers

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/