GLBasic forum

Main forum => GLBasic - en => Topic started by: ampos on 2011-Sep-30

Title: TouchPad users, need help
Post by: ampos on 2011-Sep-30
My app THE LAST ANGEL is having some troubles in HP TouchPads

First you need to click "download pages" and "download vignettes"

Here it is the latest version. I need to know:

-It is screen 180ยบ rotated?

-Are the "clickable" zones (buttons) rotated also? (so you can touch the buttons where they are seen, not opposite)

-While downloading, are there graphics glitches?

-Is the app usable if you turn off "autorotate" in options?

I will be updating the ipk based on your feedback
Title: Re: TouchPad users, need help
Post by: Ian Price on 2011-Sep-30
Hi ampos.

It starts in full screen mode with the correct orientation (all in Portrait mode, HOME at bottom).

When I click on "Download Pages" I hear a click and then it shows the screen (and three other duplicates) rotated 90 anti-clockwise - although this is brief. Same goes for when you click "Load Vign" - the screen is fecked and rotated while downloading.

Once you click "See Chapters" it all seems fine (until you turn the TP then it buggers up the orientation)
Title: Re: TouchPad users, need help
Post by: ampos on 2011-Sep-30
Strange... my loading routine is basically:

Code (glbasic) Select
useasbmp  //to keep the drawn background

for files=1 to end
   print "downloading file..."
   showscreen
   n=NETWEBGET("www.diniplay.com",f$+fi$,80,dpat$+"temp.ini",5000)
next

loadbmp "back.png"


In this new version I removed the useasbmp/loadbmp.

-Is the loading routine fine? no strange things while loading?

-Once loaded the pages, and viewing a page... is the TP orientation working fine? If not, where is pointing when you turn the device?

-Does "autorotate off" in app options fixing it?

-On the main menu, on top left corner a text should display "TP:1" if a TouchPad. Is this correct?

Thank you. I really need your help; I dont know why HP approved it with so big bugs... bad reviews are killing it.
Title: Re: TouchPad users, need help
Post by: Ian Price on 2011-Oct-01
Hi ampos - I can't test until tomorrow afternoon now, due to work commitments, but I will give more feedback then.
Title: Re: TouchPad users, need help
Post by: Ian Price on 2011-Oct-01
Hi ampos

I've tested (the second beta) now and there doesn't appear to be any screen glitches while loading now. :)

The orientation is still iffy though (if screen rotate isn't locked - I'm not going to faff about turning it on and off all the time; no user should have to). It starts out OK in portrait mode, but if you tilt the TP and tilt it back to original orientation, the screen doesn't return to how it should. It's very nearly there though :)
Title: Re: TouchPad users, need help
Post by: ampos on 2011-Oct-01
Is TP:1 shown on top left?

So, if autorotate is off, there is "no problems"?
Title: Re: TouchPad users, need help
Post by: Ian Price on 2011-Oct-01
Errr... (drops everything to go and check). Yes. "TP:1" is displayed in the top left hand corner.

My TP has "Rotation Lock" on. I like it like that or apps change direction while running etc. Yours still does, even though it shouldn't.

Title: Re: TouchPad users, need help
Post by: ampos on 2011-Oct-01
Autorotate was not correctly working (damm)

This is "release candidate 1.22" :)

Try it, please.

Autorotate should be off always in TP. You can install it on your Pre if you want.
Title: Re: TouchPad users, need help
Post by: BdR on 2012-Feb-14
At the moment, I'm having similar problems with my game on the TouchPad. So I would like to know how did you solve this? I've looked in the help-file and found this command: SETROTATION 0 // default, top

I haven't tried it yet, but maybe that will help and lock the rotation, i.e. don't automatically tilt the display when the device is tilted. Btw do you have to do this for every frame?
Title: Re: TouchPad users, need help
Post by: AlienMenace on 2012-Feb-14
Orientation in TP is bugged.

In my TP game I had the same issues, upside down in portrait mode on startup. Use this:

SETORIENTATION 3

Just using this is a pain for testing purposes on the PC because the orientation will be off there so I use this:

device$=PLATFORMINFO$("")
IF device$<>"WIN32" THEN SETORIENTATION 3

You can find rotation code in the forum that will track changes to the orientation of the device and respond accordingly:

http://www.glbasic.com/forum/index.php?topic=6419.msg51502#msg51502

All of this works perfectly for me.
Title: TouchPad users, need help
Post by: Crivens on 2012-Feb-14
I have no issues on the TP. Look in the bonus board for promo codes on my game Snake Revolutions. Works fine and no orientation changes.

Do you have the latest WebOS and GLB?

Cheers