Mouse Buttons and Mouse Wheel input
Blitz3D Forums/Blitz3D Programming/Mouse Buttons and Mouse Wheel input
| ||
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 |
| ||
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 |
| ||
MouseZ() and MouseZSpeed()... mwheel = MouseZSpeed() If mwheel<0 Then currentitem=currentitem-1 If mwheel>0 Then currentitem=currentitem+1 |
| ||
Make sure you build in an alternative, though. I don't have, and have never had, a mouse with a wheel. |
| ||
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. |
| ||
Hi Folks, And scroll wheels are RSI giving. Really. Later, Jes |
| ||
RSI ? Really Stupid Idiotic Ranchy Story Inside Rolling Stones Issue Rabbits Sense It |