From febf89bbc8c5473f0158d1023704165d3f0bc889 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 8 Nov 2012 00:35:31 +0100 Subject: [PATCH] Fix an include path and release the input lock between stages. --- android/app-android.cpp | 8 ++++++++ android/project.properties | 2 +- native.vcxproj | 8 ++++---- 3 files changed, 13 insertions(+), 5 deletions(-) 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