Posted: 19th Nov 2011 17:52
How?
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.
Posted: 19th Nov 2011 19:55
Thanks a lot Paul.

Very simple & informative setup.
Posted: 19th Nov 2011 20:14
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?
Posted: 20th Nov 2011 3: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.
Posted: 20th Nov 2011 8:50
I changed those 2 values and I will test the apk on a vanilla phone later on! Thanks