View unanswered posts | View active topics It is currently Sat Apr 27, 2024 12:20 pm



Reply to topic  [ 5 posts ] 
 Keybinding for mousewheelup+down? 
Author Message

Joined: Thu Apr 12, 2007 2:53 am
Posts: 83
Reply with quote
Post 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?


Wed May 20, 2009 1:33 am
Profile WWW
User avatar

Joined: Mon Feb 11, 2008 3:42 pm
Posts: 259
Reply with quote
Post 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.


Wed May 20, 2009 2:01 am
Profile
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1359
Location: USA
Reply with quote
Post 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


Wed May 20, 2009 3:49 am
Profile

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post Re: Keybinding for mousewheelup+down?
Code:
UInputMan:MouseButtonHeld(0)


That's how you do left click.

Figure the rest out for yourself.


Wed May 20, 2009 6:08 am
Profile WWW
User avatar

Joined: Fri Jan 26, 2007 3:22 am
Posts: 1451
Reply with quote
Post Re: Keybinding for mousewheelup+down?
spoilers: the wiki has all your answers


Wed May 20, 2009 5:16 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.069s | 15 Queries | GZIP : Off ]