Is it possible to reset MouseZ() position?

BlitzMax Forums/BlitzMax Beginners Area/Is it possible to reset MouseZ() position?

Digital Anime(Posted 2006) [#1]
When compiling and running an application MouseZ() starts with the the value 0 and it increases/decreases the number with 1 when using the scroll wheel.

What I need is the a calculation of some sort to calculate the speed on which I scroll. I noticed a command MouseZSpeed() which probably only works in Blitz3D what also could have been a sollution if it worked in BlitzMax.

If someone has an answer, please tell me :-)


Who was John Galt?(Posted 2006) [#2]
Use a variable to keep track of mousez
each loop, incremement or decrement it by the same amount as mousez
you can then reset your variable when u want


Perturbatio(Posted 2006) [#3]
or use flushmouse


Digital Anime(Posted 2006) [#4]
Thanks a lot, the FlushMouse command solved it and is very usfull in this case