|
4 | 4 | android:versionName="1.0" |
5 | 5 | android:installLocation="auto" |
6 | 6 | package="com.zig.sdl2"> |
7 | | - <!-- |
8 | | - Based on: |
9 | | - https://github.com/libsdl-org/SDL/blob/release-2.30.7/android-project/app/src/main/AndroidManifest.xml |
10 | | - --> |
11 | | - |
12 | 7 | <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="35" /> |
13 | | - |
14 | | - <!-- OpenGL ES 2.0 --> |
15 | 8 | <uses-feature android:glEsVersion="0x00020000" /> |
16 | | - |
17 | | - <!-- Touchscreen support --> |
18 | 9 | <uses-feature |
19 | 10 | android:name="android.hardware.touchscreen" |
20 | 11 | android:required="false" /> |
21 | | - |
22 | | - <!-- Game controller support --> |
23 | 12 | <uses-feature |
24 | 13 | android:name="android.hardware.bluetooth" |
25 | 14 | android:required="false" /> |
|
29 | 18 | <uses-feature |
30 | 19 | android:name="android.hardware.usb.host" |
31 | 20 | android:required="false" /> |
32 | | - |
33 | | - <!-- External mouse input events --> |
34 | 21 | <uses-feature |
35 | 22 | android:name="android.hardware.type.pc" |
36 | 23 | android:required="false" /> |
37 | | - |
38 | | - <!-- Audio recording support --> |
39 | | - <!-- if you want to capture audio, uncomment this. --> |
40 | | - <!-- <uses-feature |
41 | | - android:name="android.hardware.microphone" |
42 | | - android:required="false" /> --> |
43 | | - |
44 | | - <!-- Allow downloading to the external storage on Android 5.1 and older --> |
45 | | - <!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="22" /> --> |
46 | | - |
47 | | - <!-- Allow access to Bluetooth devices --> |
48 | | - <!-- Currently this is just for Steam Controller support and requires setting SDL_HINT_JOYSTICK_HIDAPI_STEAM --> |
49 | | - <!-- <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" /> --> |
50 | | - <!-- <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> --> |
51 | | - |
52 | | - <!-- Allow access to the vibrator --> |
| 24 | + <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" /> |
| 25 | + <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> |
53 | 26 | <uses-permission android:name="android.permission.VIBRATE" /> |
54 | | - |
55 | | - <!-- if you want to capture audio, uncomment this. --> |
56 | | - <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> --> |
57 | | - |
58 | | - <!-- Create a Java class extending SDLActivity and place it in a |
59 | | - directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java |
60 | | - |
61 | | - then replace "SDLActivity" with the name of your class (e.g. "MyGame") |
62 | | - in the XML below. |
63 | | -
|
64 | | - An example Java class can be found in README-android.md |
65 | | - --> |
66 | 27 | <application android:label="@string/app_name" |
67 | 28 | android:icon="@mipmap/ic_launcher" |
68 | 29 | android:allowBackup="true" |
69 | 30 | android:theme="@android:style/Theme.NoTitleBar.Fullscreen" |
70 | 31 | android:hardwareAccelerated="true" > |
71 | 32 |
|
72 | | - <!-- Example of setting SDL hints from AndroidManifest.xml: |
73 | 33 | <meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/> |
74 | | - --> |
75 | | - |
76 | 34 | <activity android:name="ZigSDLActivity" |
77 | 35 | android:label="@string/app_name" |
78 | 36 | android:alwaysRetainTaskState="true" |
|
85 | 43 | <action android:name="android.intent.action.MAIN" /> |
86 | 44 | <category android:name="android.intent.category.LAUNCHER" /> |
87 | 45 | </intent-filter> |
88 | | - <!-- Let Android know that we can handle some USB devices and should receive this event --> |
89 | | - <!-- <intent-filter> |
90 | | - <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> |
91 | | - </intent-filter> --> |
92 | | - <!-- Drop file event --> |
93 | | - <!-- |
94 | | - <intent-filter> |
95 | | - <action android:name="android.intent.action.VIEW" /> |
96 | | - <category android:name="android.intent.category.DEFAULT" /> |
97 | | - <data android:mimeType="*/*" /> |
98 | | - </intent-filter> |
99 | | - --> |
100 | 46 | </activity> |
101 | 47 | </application> |
102 | 48 |
|
|
0 commit comments