nexus 7 ??

Previous topic - Next topic

fivesprites

I've already spoken with Gernot about this issue and I believe he's looking into it.  Will post in bugs section so it doesn't get lost :)

Min's Q*Boyd uses createscreen/usescreen so suffers this issue.  Shame really as I'd love to play it on my N7 :(

bigsofty

For the xy swap issue, this fixes it for me...

Code (glbasic) Select
SETORIENTATION 0

As part of the game initialisation.

and my "AndroidManifest.xml" looks like this...

Code (glbasic) Select
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.zzkjsoft.vector"
      android:installLocation="preferExternal"
      android:versionCode="1"
      android:versionName="0.001">
    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<supports-screens android:resizeable="false"
  android:smallScreens="true"
  android:normalScreens="true"
  android:largeScreens="true"
  android:anyDensity="true" />
    <application android:label="@string/app_name" android:icon="@drawable/icon" android:debuggable="false">
        <activity android:name="org.libsdl.app.SDLActivity"
android:label="@string/app_name"
android:screenOrientation="sensor"
>
<!-- android:configChanges="orientation|keyboardHidden" -->
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>


Notice the: android:screenOrientation="sensor"

I have little tweeks elsewhere but I think this was the one that fixed the XY swap issue(Really just it thinking it was using portrait coordinates on landscape).

I can take none of the credit for these tips as they were all sourced on the bug forum threads.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

spacefractal

#17
They diddent fix all issues (as I througt). SETORIENTATION display.getOrientation() (a Java command) fix that. XY Swap is still on HP Touchpad with "Sensor" (which also should fixed in next beta now).

Also dont use CREATESCREEN and GRABSPRITE for now, if you want to been safe to been works on most devices as possible. I thinks CREATESCREEN is possible to fix, but GRABSPRITE might not been possible. So for me priotity fixing the CREATESCREEN issue first.

If you use CREATESCREEN for scaling, its also about twice as first doing that on backbuffer directly with scaling. In my next game I might also need CREATESCREEN for other reasons.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

Quote from: fivesprites on 2012-Nov-06
I've already spoken with Gernot about this issue and I believe he's looking into it.  Will post in bugs section so it doesn't get lost :)

Min's Q*Boyd uses createscreen/usescreen so suffers this issue.  Shame really as I'd love to play it on my N7 :(

I hope its ok for you, I have posted the CREATESCREEN issue here, so its dont got drown here:
http://www.glbasic.com/forum/index.php?topic=8682.0

Its annoying its not working on so such a nice device.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/