Mouse Buttons and Mouse Wheel input

Blitz3D Forums/Blitz3D Programming/Mouse Buttons and Mouse Wheel input

StOrM3(Posted 2003) [#1]
I am trying to make a complete mouse input system for my game, and want to be able to have users use the mouse wheel for changing between special items in inventory... is this possible and if so how do I set it up and make a scroll change between current active items ?

Thanks


Ross C(Posted 2003) [#2]
Hey, check out mousez() command. Keeps track of the mouse wheel position. If you scroll, it's increments the number :)

http://www.blitzbasic.com/b3ddocs/command.php?name=MouseZ&ref=2d_a-z


Rob(Posted 2003) [#3]
MouseZ() and MouseZSpeed()...

mwheel = MouseZSpeed()
If mwheel<0 Then currentitem=currentitem-1
If mwheel>0 Then currentitem=currentitem+1


John Blackledge(Posted 2003) [#4]
Make sure you build in an alternative, though. I don't have, and have never had, a mouse with a wheel.


ragtag(Posted 2003) [#5]
Same here. I use a three button mouse, and find that a wheel just gets in my way. So I don't have one and don't want one.


SoggyP(Posted 2003) [#6]
Hi Folks,

And scroll wheels are RSI giving. Really.

Later,

Jes


CyberPackRat(Posted 2003) [#7]
RSI ?
Really Stupid Idiotic
Ranchy Story Inside
Rolling Stones Issue
Rabbits Sense It