SETORIENTATION - orientation for iPads and stuff

Previous topic - Next topic

spicypixel

#15
Quote from: ampos on 2011-Jun-06
I am at beta 10.040, and I think I am not updated to the latest-latest version...

Errrr so where can I download the BETA ??? I did install the glbasic_beta.exe from the Android SDK Beta post and installed that to GLBasic_beta but there's nothing in that thread to indicate a new download to update???? Like I say when I try to Internet Update I get upto date when clearly I am not.

Does the Beta still come up with Invalid Binary when uploaded to iTunes Connect??
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

MrTAToad

I did the update from the last beta...

Slydog

Well, a quick forum search for 'beta' came up with this:
http://www.glbasic.com/forum/index.php?topic=234.msg705#msg705
They are talking about GLBasic version 3, a tad out of date!

It gives this link: http://www.glbasic.com/beta/glbasic_sdk.exe

The link still works and doesn't specify a version number so it may still be valid.
(remove this topic entry if you don't want links to the beta posted for some reason)
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]


spicypixel

Quote from: MrTAToad on 2011-Jun-06
And dont forget the proper beta here : http://www.glbasic.com/forum/index.php?topic=6163.0

It redirects to the same link as SlyDog gave and is the one I'm using. I just re-downloaded and it is indeed updated and after patching does allow Internet Update but it's not very clear. I can see Gernot's keen need to post Android BETA SDK in the topic title but it would be best if it had its own thread as GLBasic Beta and then the first post updated accordingly with version number at least.

I just feel like I've been going in circles hehe :)
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Kitty Hello

OK, the beta can live-update (Web update), but the english version is broken.
So please grab this tiny update first: http://www.glbasic.com/beta/Update_e.exe

The orientation is inverted for the gravity axes. Sorry. I'll put an update online, soon.
If it's online, this code is working:
Code (glbasic) Select


FUNCTION MobileAutoOrient%: bAllowRotate90%
LOCAL cur% = GETORIENTATION()
LOCAL rot% = cur%

// allow tilting to left/right
IF bAllowRotate90%
LOCAL vx = GETJOYX(0)
IF vx < -0.9 // tilt left
rot% = MOD(cur+1, 4)
ELSEIF vx > 0.9 // tilt right
rot% = MOD(cur+3, 4)
ENDIF
ENDIF

// upside down (always possible)
IF GETJOYY(0) > 0.9
rot% = MOD(cur+2, 4)
ENDIF

// need to change?
IF rot% <> cur
SETORIENTATION rot%
RETURN TRUE
ENDIF
RETURN FALSE
ENDFUNCTION


Should that be in a separate post?