mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Update touch API
This commit is contained in:
@@ -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
|
// 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);
|
emulateAbsoluteFingerEvent(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule moonlight-common-c/moonlight-common-c updated: 27428e655b...70a2e305bc
Reference in New Issue
Block a user