comma: fix touch inverse

This commit is contained in:
Maxime Desroches 2025-05-12 17:20:37 -07:00
parent 66030a7de6
commit fb06da3384

View File

@ -653,9 +653,9 @@ void PollInputEvents(void) {
if (event.code == ABS_MT_TRACKING_ID) {
platform.touch.fingers[slot].action = event.value == -1 ? TOUCH_ACTION_UP : TOUCH_ACTION_DOWN;
} else if (event.code == ABS_MT_POSITION_X) {
platform.touch.fingers[slot].y = CORE.Window.screen.height - event.value;
platform.touch.fingers[slot].y = event.value;
} else if (event.code == ABS_MT_POSITION_Y) {
platform.touch.fingers[slot].x = event.value;
platform.touch.fingers[slot].x = CORE.Window.screen.width - event.value;
}
}
}