diff --git a/Core/Core.cpp b/Core/Core.cpp index ceaaa1ece..a4e2211a8 100644 --- a/Core/Core.cpp +++ b/Core/Core.cpp @@ -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; diff --git a/ios/ViewController.mm b/ios/ViewController.mm index 8e44b7410..a41b97ebe 100644 --- a/ios/ViewController.mm +++ b/ios/ViewController.mm @@ -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); }