소스 검색

comma: fix touch inverse

pull/5008/head
Maxime Desroches 2 달 전
부모
커밋
fb06da3384
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/platforms/rcore_comma.c

+ 2
- 2
src/platforms/rcore_comma.c 파일 보기

@ -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;
}
}
}

불러오는 중...
취소
저장