MouseXSpeed() and MouseYSpeed()
BlitzMax Forums/BlitzMax Programming/MouseXSpeed() and MouseYSpeed()
| ||
Unlike BlitzPlus, these commands arent built into BlitzMax. How do I find the out the speed of the mouse? |
| ||
Mousexspeed+ movemouse example |
| ||
http://www.blitzbasic.com/Community/posts.php?topic=47133 *EDIT* damn, beat me to it :) |
| ||
*EDIT* damn, beat me to it :) If you write 'em, I'll link to 'em. :) |
| ||
alright, thank you very much. |
| ||
The mouse speed is just the position in the current frame minus the position in the previous frame. |
| ||
The "problem" with the Perturbatios code is that if moving the mouse really fast, MouseX and MouseY may change values between reads, which might give erratic mouse movements. Instead you chould just add your newly found speed to your "old" accumlation position. |
| ||
What's wrong with the MouseXSpeed and MouseYSpeed example in the MouseX/MouseY BRL docs? ;] |
| ||
What's wrong with the MouseXSpeed and MouseYSpeed example in the MouseX/MouseY BRL docs? ;] There isn't one. The only thing I can find is an example under movemouse which locks the mouse to the centre of the screen and determines the offset from there. |
| ||
Oh yeh. Wrong command I was thinking of. Still, same thing. =] |