mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-28 08:44:21 +00:00
Several fixes for touch and pen APIs
This commit is contained in:
1 parent
5cbb6f210d
commit
de0efa861a
3 files changed
+15
-13
No files matched your search
+3
-3
@@ -1194,7 +1194,7 @@ int LiSendTouchEvent(uint8_t eventType, uint32_t pointerId, float x, float y, fl
|
||||
|
||||
int LiSendPenEvent(uint8_t eventType, uint8_t toolType, uint8_t penButtons,
|
||||
float x, float y, float pressure,
|
||||
uint16_t rotation, int8_t tiltX, int8_t tiltY) {
|
||||
uint16_t rotation, int8_t tilt) {
|
||||
PPACKET_HOLDER holder;
|
||||
int err;
|
||||
|
||||
@@ -1222,8 +1222,8 @@ int LiSendPenEvent(uint8_t eventType, uint8_t toolType, uint8_t penButtons,
|
||||
floatToNetfloat(y, holder->packet.touch.y);
|
||||
floatToNetfloat(pressure, holder->packet.touch.pressure);
|
||||
holder->packet.pen.rotation = LE16(rotation);
|
||||
holder->packet.pen.tiltX = tiltX;
|
||||
holder->packet.pen.tiltY = tiltY;
|
||||
holder->packet.pen.tilt = tilt;
|
||||
memset(holder->packet.pen.zero2, 0, sizeof(holder->packet.pen.zero2));
|
||||
|
||||
err = LbqOfferQueueItem(&packetQueue, holder, &holder->entry);
|
||||
if (err != LBQ_SUCCESS) {
|
||||
|
||||
Reference in new issue
Block a user