MouseWait, KeyWait not working on iPhone

Previous topic - Next topic

kaotiklabs

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
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Kitty Hello


MrTAToad

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....

kaotiklabs

Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

kaotiklabs

Still not working on the last release. Hope this will be solved because is a bit anoying.
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

matchy

My test shows this is working fine on the iPod touch.

MrTAToad


kaotiklabs

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.

Code (glbasic) Select

IF leveldone = TRUE
PRINT "LOADING NEXT LEVEL...", 140, 140
SHOWSCREEN
MOUSEWAIT
ENDIF

IF Player.Health <= 0
DRAWSPRITE END_GAME, 0, 0
SHOWSCREEN
MOUSEWAIT
ENDIF

Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

MrTAToad

The most obvious thing to ask is : Does leveldone = TRUE and does Player.Health reach a value less than or equal to 0 ?

kaotiklabs

#9
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.
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!