Fix an include path and release the input lock between stages.

This commit is contained in:
Henrik Rydgard committed 2012-11-08 00:35:31 +01:00
1 parent 4d0a5110b3
commit febf89bbc8
3 files changed
+13 -5

No files matched your search

+8
View File
@@ -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();