diff --git a/android/app-android.cpp b/android/app-android.cpp
index 2751ad69df..5a6c5b27b3 100644
--- a/android/app-android.cpp
+++ b/android/app-android.cpp
@@ -213,7 +213,15 @@ extern "C" void Java_com_henrikrydgard_libnative_NativeRenderer_displayRender(JN
input_state.pad_buttons |= pad_buttons_async_set;
input_state.pad_buttons &= ~pad_buttons_async_clear;
UpdateInputState(&input_state);
+ }
+
+ {
+ lock_guard guard(input_state.lock);
NativeUpdate(input_state);
+ }
+
+ {
+ lock_guard guard(input_state.lock);
EndInputState(&input_state);
}
NativeRender();
diff --git a/android/project.properties b/android/project.properties
index 8996991a47..8061f9c3fe 100644
--- a/android/project.properties
+++ b/android/project.properties
@@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt
# Project target.
-target=android-16
+target=android-8
android.library=true
diff --git a/native.vcxproj b/native.vcxproj
index d985f3aff0..47579227b0 100644
--- a/native.vcxproj
+++ b/native.vcxproj
@@ -93,7 +93,7 @@
Level3
Disabled
WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)
- ..\ext\zlib;..\native;..\RollerballGL;..\native\ext\glew;..\SDL\include;..\libpng;%(AdditionalIncludeDirectories);
+ ..\zlib;..\ext\zlib;..\native;..\RollerballGL;..\native\ext\glew;..\SDL\include;..\libpng;%(AdditionalIncludeDirectories);
Windows
@@ -110,7 +110,7 @@
Level3
Disabled
WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)
- ..\ext\zlib;..\native;..\RollerballGL;..\native\ext\glew;..\SDL\include;..\libpng;%(AdditionalIncludeDirectories);
+ ..\zlib;..\ext\zlib;..\native;..\RollerballGL;..\native\ext\glew;..\SDL\include;..\libpng;%(AdditionalIncludeDirectories);
Windows
@@ -129,7 +129,7 @@
true
true
WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)
- ..\ext\zlib;..\native;..\RollerballGL;..\native\ext\glew;..\SDL\include;..\libpng;%(AdditionalIncludeDirectories);
+ ..\zlib;..\ext\zlib;..\native;..\RollerballGL;..\native\ext\glew;..\SDL\include;..\libpng;%(AdditionalIncludeDirectories);
StreamingSIMDExtensions2
Fast
@@ -152,7 +152,7 @@
true
true
WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)
- ..\ext\zlib;..\native;..\RollerballGL;..\native\ext\glew;..\SDL\include;..\libpng;%(AdditionalIncludeDirectories);
+ ..\zlib;..\ext\zlib;..\native;..\RollerballGL;..\native\ext\glew;..\SDL\include;..\libpng;%(AdditionalIncludeDirectories);
StreamingSIMDExtensions2
Fast