Fix virtual analog stick getting stuck. Fixes #2653.
This commit is contained in:
parent
37c5aa9869
commit
989f791f79
1 changed files with 4 additions and 0 deletions
|
@ -272,6 +272,10 @@ void EmuScreen::update(InputState &input) {
|
|||
memcpy(fakeInputState.pointer_down, input.pointer_down, sizeof(input.pointer_down));
|
||||
memcpy(fakeInputState.pointer_x, input.pointer_x, sizeof(input.pointer_x));
|
||||
memcpy(fakeInputState.pointer_y, input.pointer_y, sizeof(input.pointer_y));
|
||||
fakeInputState.pad_lstick_x = 0.0f;
|
||||
fakeInputState.pad_lstick_y = 0.0f;
|
||||
fakeInputState.pad_rstick_x = 0.0f;
|
||||
fakeInputState.pad_rstick_y = 0.0f;
|
||||
UpdateGamepad(fakeInputState);
|
||||
UpdateInputState(&fakeInputState);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue