GLBasic forum

Main forum => Bug Reports => Topic started by: michael on 2011-Dec-30

Title: mouseaxis(0) result always 0
Post by: michael on 2011-Dec-30
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
Title: Re: mouseaxis(0) result always 0
Post by: MrTAToad on 2011-Dec-30
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...
Title: Re: mouseaxis(0) result always 0
Post by: Kitty Hello on 2011-Dec-31
Its movement since last showscreen or mousestate call.