mouseaxis(0) result always 0

Previous topic - Next topic

michael

looks like that GLBasic IDE, Version: 10.209 has a problem with the command MOUSEAXIS

I have make a new version of a programm and saw that MOUSEAXIS(0) allways return a 0. also wenn i move the mouse to the left and right....

Michael

MrTAToad

This works fine with me :

Code (glbasic) Select
WHILE TRUE
PRINT MOUSEAXIS(0),0,0
SHOWSCREEN
WEND


Note that it returns a velocity value per game loop,so wont continually show a non-zero value.  In addition using MOUSESTATE before MOUSEAXIS will, of course, render the latter command useless as there will be nothing to detect...

Kitty Hello

Its movement since last showscreen or mousestate call.