|
Post by u9 on Mar 26, 2008 5:51:41 GMT -5
If i initialize the mouse after graphics, and i initialized the graphics to full-screen, the mouse is hidden. But if i initialize the mouse before the graphics the mouse is not hidden when i initialize the graphics.
I think full-screen or windowed should not have an effect on whether the mouse is hidden at initialize-time or not.
What do you guys think?
|
|
|
Post by matthew on Mar 26, 2008 13:34:29 GMT -5
Hmm, I haven't had much of a need to turn the mouse pointer off in my programs. So I haven't noticed the graphics initialization problem that you've mentioned.
|
|
|
Post by Guilect on Mar 26, 2008 18:50:26 GMT -5
"If i initialize the mouse after graphics" "if i initialize the mouse before the graphics "
This is not a Full Screen vs. Windowed thing. This is an order of initialization thing.
From the help manual Input -> Mouse "Initialize -- initializes the mouse object (requires graphics.initialized first)"
This is required because all the mouse stuff is being done with DInput (DirectX Input). And guess what starts up DirectX; Graphics.
|
|
|
Post by u9 on Mar 27, 2008 15:12:42 GMT -5
Ah yeah of course. I have found the real bug now. It certainly took some time to localize. Here is how you generate it: - Create an application that runs in full-screen and uses the mouse - Save and then quit the IDE - Double-click on the file you saved. This will load up a fresh editor - Press F5 to run you code - Bug: Your mouse pointer is hidden - Exit your program (not the IDE) and re-run by pressing F5 - This time the mouse pointer is visible. Strange behaviour indeed. I created an exe file, and the mouse pointer is of course hidden every time i run it as it is a fresh run
|
|
|
Post by Guilect on Mar 27, 2008 16:13:50 GMT -5
Thanks for taking the time to document the behavior. Of course I will look into it. For now, perhaps users can add a 'Mouse.Show' at the beginning of their program....?
|
|
|
Post by Guilect on Apr 4, 2008 18:02:39 GMT -5
Fixed. Will be in next release.
|
|