From 05fd7b18b9a4d79561c1e75db25994650630e5ff Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 22 Jul 2023 17:23:09 -0500 Subject: [PATCH] Update touch API --- app/streaming/input/abstouch.cpp | 3 ++- moonlight-common-c/moonlight-common-c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/streaming/input/abstouch.cpp b/app/streaming/input/abstouch.cpp index 9143c4a6..56b35f9b 100644 --- a/app/streaming/input/abstouch.cpp +++ b/app/streaming/input/abstouch.cpp @@ -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); } } diff --git a/moonlight-common-c/moonlight-common-c b/moonlight-common-c/moonlight-common-c index 27428e65..70a2e305 160000 --- a/moonlight-common-c/moonlight-common-c +++ b/moonlight-common-c/moonlight-common-c @@ -1 +1 @@ -Subproject commit 27428e655ba7f7b2367c512cbc72c40e04e5e751 +Subproject commit 70a2e305bc7170eccbd48d8c49b64a814e64ecb7