mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 00:29:57 +00:00
iOS: Try to fix analog stick getting stuck. Blind fix :)
This commit is contained in:
parent
7e72671292
commit
3bd5146fbf
@ -108,6 +108,8 @@ void Core_RunLoop()
|
||||
input_state.pad_buttons = 0;
|
||||
input_state.pad_lstick_x = 0;
|
||||
input_state.pad_lstick_y = 0;
|
||||
input_state.pad_rstick_x = 0;
|
||||
input_state.pad_rstick_y = 0;
|
||||
// Temporary hack.
|
||||
if (GetAsyncKeyState(VK_ESCAPE)) {
|
||||
input_state.pad_buttons |= PAD_BUTTON_MENU;
|
||||
|
@ -167,6 +167,10 @@ ViewController* sharedViewController;
|
||||
lock_guard guard(input_state.lock);
|
||||
pad_buttons_down |= pad_buttons_async_set;
|
||||
pad_buttons_down &= ~pad_buttons_async_clear;
|
||||
input_state.pad_lstick_x = 0;
|
||||
input_state.pad_lstick_y = 0;
|
||||
input_state.pad_rstick_x = 0;
|
||||
input_state.pad_rstick_y = 0;
|
||||
input_state.pad_buttons = pad_buttons_down;
|
||||
UpdateInputState(&input_state);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user