Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How do I switch off the Calibration setup in Android T2?

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 19th Nov 2011 17:52
How?
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 19th Nov 2011 19:29
Replace jni/Core.cpp with the attached version and follow the instructions on line 24.

When doing this it is highly recommended that you use SetOrientationAllowed(1,0,0,0) so AppGameKit doesn't try to rotate in any way.

If you want to use this with a landscape orientation then open AndroidManifest.xml and change

android:screenOrientation="portrait"
to
android:screenOrientation="landscape"

This will make any keyboard or status bar also appear landscape, SetOrientationAllowed(1,0,0,0) must still be used even though it looks landscape.

Attachments

Login to view attachments
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 19th Nov 2011 19:55
Thanks a lot Paul.

Very simple & informative setup.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 19th Nov 2011 20:14 Edited at: 19th Nov 2011 20:22
Didn't work for me, got the following errors...

jni/Core.cpp:13:25: error: interpreter.h: No such file or directory
jni/Core.cpp: In function 'void init(void*)':
jni/Core.cpp:129: error: 'class app' has no member named 'g_dwDeviceWidth'
jni/Core.cpp:131: error: 'class app' has no member named 'g_dwDeviceWidth'
jni/Core.cpp:132: error: 'class app' has no member named 'g_dwDeviceHeight'
make: *** [obj/local/armeabi/objs/template/Core.o] Error 1


I am using the T2 template not the Interpreter project.

If I just change g_bCalibrated to true and g_iCalibrationSetup to 2 will that be enough?
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 20th Nov 2011 03:33
ah, Lee might have changed interpreter.h to template.h for the build, it needs to be whatever header file holds the "class app" definition.

Just changing those two values will be enough to skip calibration.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 20th Nov 2011 08:50
I changed those 2 values and I will test the apk on a vanilla phone later on! Thanks

Login to post a reply

Server time is: 2024-11-22 16:01:39
Your offset time is: 2024-11-22 16:01:39