Update touch API

This commit is contained in:
Cameron Gutman 2023-07-22 17:23:09 -05:00
parent 9764174070
commit 05fd7b18b9
2 changed files with 3 additions and 2 deletions

View file

@ -77,7 +77,8 @@ void SdlInputHandler::handleAbsoluteFingerEvent(SDL_TouchFingerEvent* event)
}
// Try to send it as a native touch event, otherwise fall back to our touch emulation
if (LiSendTouchEvent(eventType, pointerId, vidrelx / dst.w, vidrely / dst.h, event->pressure) == LI_ERR_UNSUPPORTED) {
if (LiSendTouchEvent(eventType, pointerId, vidrelx / dst.w, vidrely / dst.h, event->pressure,
0.0f, 0.0f, LI_ROT_UNKNOWN) == LI_ERR_UNSUPPORTED) {
emulateAbsoluteFingerEvent(event);
}
}

@ -1 +1 @@
Subproject commit 27428e655ba7f7b2367c512cbc72c40e04e5e751
Subproject commit 70a2e305bc7170eccbd48d8c49b64a814e64ecb7