Skip to content

Commit

Permalink
Use touchpad resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
igor725 committed Jun 12, 2024
1 parent b433479 commit 6155d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/external/libScePad/interfaces/isdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ bool SDLController::readPadData(ScePadData& data) {
SDL_GameControllerGetTouchpadFinger(m_padPtr, 0, f, NULL, &x, &y, &p);
if (p > 0) {
auto& touch = data.touchData.touch[data.touchData.touchNum++];
touch.x = x * 1920, touch.y = y * 950, touch.id = f;
touch.x = x * m_touchInfo.resolution.x, touch.y = y * m_touchInfo.resolution.y, touch.id = f;
}
}

Expand Down

0 comments on commit 6155d7e

Please sign in to comment.