Some work towards better control handling, includes stickyfix from native

This commit is contained in:
Henrik Rydgard committed 2013-03-30 23:55:28 +01:00
1 parent 33abcdafd6
commit afa21588d7
15 files changed
+49 -31

No files matched your search

+5 -1
View File
@@ -104,14 +104,18 @@ void Core_RunLoop()
UpdateScreenScale();
{
{
lock_guard guard(input_state.lock);
#ifdef _WIN32
lock_guard guard(input_state.lock);
input_state.pad_buttons = 0;
input_state.pad_lstick_x = 0;
input_state.pad_lstick_y = 0;
// Temporary hack.
if (GetAsyncKeyState(VK_ESCAPE)) {
input_state.pad_buttons |= PAD_BUTTON_MENU;
} else {
input_state.pad_buttons &= ~PAD_BUTTON_MENU;
}
host->PollControllers(input_state);
#endif
}
NativeUpdate(input_state);