mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Some work towards better control handling, includes stickyfix from native
This commit is contained in:
1 parent
33abcdafd6
commit
afa21588d7
15 files changed
+49
-31
No files matched your search
+5
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user