Skip to content

Commit

Permalink
Libretro: Fix joystick in touch auto mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Aug 24, 2024
1 parent 2d5e284 commit 470aec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libretro_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ void retro_run() {
touchScreen |= GetButtonState(RETRO_DEVICE_ID_JOYPAD_R3);

if (moveX != 0 || moveY != 0) {
pointerX = touchX + static_cast<int>((moveX / 32767) * speedX);
pointerY = touchY + static_cast<int>((moveY / 32767) * speedY);
pointerX += static_cast<int>((moveX / 32767) * speedX);
pointerY += static_cast<int>((moveY / 32767) * speedY);
}
}

Expand Down

0 comments on commit 470aec7

Please sign in to comment.