Mousex() and MouseY() not tracking

BlitzMax Forums/BlitzMax Beginners Area/Mousex() and MouseY() not tracking

Mousex() and MouseY() are not tracking unless i press a mouse button, then it tracks where i mouse clicked and then i have to press the mouse buton again to make it track further.

so to recap, one click = one position tracked
mouse button pressed down = one position tracked

the code below is soo simple.

Strict
Graphics 800, 600, 32,75
Local testImage:TImage = LoadImage("Image1.bmp", MASKEDIMAGE)

While Not KeyDown(KEY_ESCAPE)
Cls
DrawImage testImage,MouseX(),MouseY()
Flip
FlushMem
WaitKey
Wend
End