Added the ability to set SDL hints from AndroidManifest.xml (thanks Rachel!)

This is especially useful for things like the accelerometer hint which could be needed before application main().
This commit is contained in:
Sam Lantinga
2017-10-24 00:17:07 -07:00
parent 45536710f3
commit 8fd0c22adc
5 changed files with 88 additions and 2 deletions

View File

@@ -8,6 +8,10 @@
android:versionName="1.0"
android:installLocation="auto">
<!-- Example of setting SDL hints from AndroidManifest.xml:
<meta-data android:value="0" android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK"/>
-->
<!-- Android 4.0.1 -->
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="16" />