GLBasic forum

Main forum => Bug Reports => Topic started by: kaotiklabs on 2009-Oct-28

Title: MouseWait, KeyWait not working on iPhone
Post by: kaotiklabs on 2009-Oct-28
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
Title: Re: MouseWait, KeyWait not working on iPhone
Post by: Kitty Hello on 2009-Oct-29
Huh!?
Title: Re: MouseWait, KeyWait not working on iPhone
Post by: MrTAToad on 2009-Oct-29
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....
Title: Re: MouseWait, KeyWait not working on iPhone
Post by: kaotiklabs on 2009-Oct-29
Exactly.

Thanks MrTAToad.
Title: Re: MouseWait, KeyWait not working on iPhone
Post by: kaotiklabs on 2009-Oct-31
Still not working on the last release. Hope this will be solved because is a bit anoying.
Title: Re: MouseWait, KeyWait not working on iPhone
Post by: matchy on 2009-Nov-01
My test shows this is working fine on the iPod touch.
Title: Re: MouseWait, KeyWait not working on iPhone
Post by: MrTAToad on 2009-Nov-03
Yes, works for my iPod too...
Title: Re: MouseWait, KeyWait not working on iPhone
Post by: kaotiklabs on 2009-Nov-03
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

Title: Re: MouseWait, KeyWait not working on iPhone
Post by: MrTAToad on 2009-Nov-03
The most obvious thing to ask is : Does leveldone = TRUE and does Player.Health reach a value less than or equal to 0 ?
Title: Re: MouseWait, KeyWait not working on iPhone
Post by: kaotiklabs on 2009-Nov-03
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.