MouseX() and MouseY() don't update

BlitzMax Forums/BlitzMax Bug Reports/MouseX() and MouseY() don't update

Spent ages this morning trying to figure out why my map screen automatically scrolled itself to the top left hand corner sometimes at startup. Turns out there's a problem with Blitzmax.

Graphics 800,600

While Not KeyDown(KEY_ESCAPE)
	Cls
	DrawText "MouseX:" + MouseX(),10,10
	DrawText "MouseY:" + MouseY(),10,30
	Flip
Wend


Run code, move the mouse so that when the window opens, it'll be somewhere in the 800x600 window. Then leave it still until the program starts to run.

Both MouseX() and MouseY() report 0 until you move the mouse again. It *should* start off at the actual mouse coordinates, not 0,0.