mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-23 01:59:46 +00:00
android+test: testcamera needs CAMERA permissions
This commit is contained in:
parent
79cabeef18
commit
88980aeb21
@ -69,8 +69,10 @@ static int SDLCALL SDL_ANDROID_SensorThread(void *data)
|
||||
|
||||
while (SDL_AtomicGet(&ctx->running)) {
|
||||
Uint64 timestamp = SDL_GetTicksNS();
|
||||
int poll_result;
|
||||
|
||||
if (ALooper_pollAll(-1, NULL, &events, (void **)&source) == LOOPER_ID_USER) {
|
||||
poll_result = ALooper_pollOnce(-1, NULL, &events, (void **)&source);
|
||||
if (poll_result == LOOPER_ID_USER) {
|
||||
SDL_LockSensors();
|
||||
for (i = 0; i < SDL_sensors_count; ++i) {
|
||||
if (!SDL_sensors[i].event_queue) {
|
||||
|
@ -33,6 +33,10 @@
|
||||
<!-- Allow access to the microphone -->
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
|
||||
<!-- Allow access to the camera -->
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-feature android:name="android.hardware.camera" />
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/sdl-test"
|
||||
|
Loading…
Reference in New Issue
Block a user