comma: fix touch inverse
This commit is contained in:
parent
66030a7de6
commit
fb06da3384
|
|
@ -653,9 +653,9 @@ void PollInputEvents(void) {
|
||||||
if (event.code == ABS_MT_TRACKING_ID) {
|
if (event.code == ABS_MT_TRACKING_ID) {
|
||||||
platform.touch.fingers[slot].action = event.value == -1 ? TOUCH_ACTION_UP : TOUCH_ACTION_DOWN;
|
platform.touch.fingers[slot].action = event.value == -1 ? TOUCH_ACTION_UP : TOUCH_ACTION_DOWN;
|
||||||
} else if (event.code == ABS_MT_POSITION_X) {
|
} 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) {
|
} 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user