mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-24 05:31:13 +00:00
Fix signness of pen tilt parameters
This commit is contained in:
+2
-2
@@ -145,8 +145,8 @@ typedef struct _SS_PEN_PACKET {
|
|||||||
netfloat y;
|
netfloat y;
|
||||||
netfloat pressure;
|
netfloat pressure;
|
||||||
uint16_t rotation;
|
uint16_t rotation;
|
||||||
uint8_t tiltX;
|
int8_t tiltX;
|
||||||
uint8_t tiltY;
|
int8_t tiltY;
|
||||||
} SS_PEN_PACKET, *PSS_PEN_PACKET;
|
} SS_PEN_PACKET, *PSS_PEN_PACKET;
|
||||||
|
|
||||||
#define SS_CONTROLLER_ARRIVAL_MAGIC 0x55000004
|
#define SS_CONTROLLER_ARRIVAL_MAGIC 0x55000004
|
||||||
|
|||||||
+1
-1
@@ -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,
|
int LiSendPenEvent(uint8_t eventType, uint8_t toolType, uint8_t penButtons,
|
||||||
float x, float y, float pressure,
|
float x, float y, float pressure,
|
||||||
uint16_t rotation, uint8_t tiltX, uint8_t tiltY) {
|
uint16_t rotation, int8_t tiltX, int8_t tiltY) {
|
||||||
PPACKET_HOLDER holder;
|
PPACKET_HOLDER holder;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -599,7 +599,7 @@ int LiSendTouchEvent(uint8_t eventType, uint32_t pointerId, float x, float y, fl
|
|||||||
#define LI_ROT_UNKNOWN 0xFF
|
#define LI_ROT_UNKNOWN 0xFF
|
||||||
int LiSendPenEvent(uint8_t eventType, uint8_t toolType, uint8_t penButtons,
|
int LiSendPenEvent(uint8_t eventType, uint8_t toolType, uint8_t penButtons,
|
||||||
float x, float y, float pressure,
|
float x, float y, float pressure,
|
||||||
uint16_t rotation, uint8_t tiltX, uint8_t tiltY);
|
uint16_t rotation, int8_t tiltX, int8_t tiltY);
|
||||||
|
|
||||||
// This function queues a mouse button event to be sent to the remote server.
|
// This function queues a mouse button event to be sent to the remote server.
|
||||||
#define BUTTON_ACTION_PRESS 0x07
|
#define BUTTON_ACTION_PRESS 0x07
|
||||||
|
|||||||
Reference in New Issue
Block a user