Hi,
I´m using glbasic last version and compiling on iPhone 3.1 SDK.
MouseWait and KeyWait commands are not working properlly altought both should work as was said on the glbasic version logfile.
// 7.089
// iPhone:
// KEYWAIT does MOUSEWAIT
// DRAWLINE works
Huh!?
What he's saying is that KEYWAIT and MOUSEWAIT dont work as expected on the iPhone - both should do a MOUSEWAIT, but apparently its not working....
Exactly.
Thanks MrTAToad.
Still not working on the last release. Hope this will be solved because is a bit anoying.
My test shows this is working fine on the iPod touch.
Yes, works for my iPod too...
Its curious.
A simple sample works for me, but don´t work with my app.
This is the part of my app where I use it. I can´t see anything strange.
IF leveldone = TRUE
PRINT "LOADING NEXT LEVEL...", 140, 140
SHOWSCREEN
MOUSEWAIT
ENDIF
IF Player.Health <= 0
DRAWSPRITE END_GAME, 0, 0
SHOWSCREEN
MOUSEWAIT
ENDIF
The most obvious thing to ask is : Does leveldone = TRUE and does Player.Health reach a value less than or equal to 0 ?
Yes, yes.
The print and the drawsprite are done. But it gets blocked waiting for the touch that is not recognized.
At the end of this IFs I have a END, that is never reached.
I use mousestate and some other mouse control stuff in the main loop, so I believe it must be interfering in some way.
Eitherway is not important because I can code this command myself, but just to let you know that in some cases seems not to work.