mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-20 15:51:02 +00:00
Extend to 32-bit button flags for the older LiSendControllerEvent() API
This commit is contained in:
+1
-1
@@ -1072,7 +1072,7 @@ static int sendControllerEventInternal(short controllerNumber, short activeGamep
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send a controller event to the streaming machine
|
// Send a controller event to the streaming machine
|
||||||
int LiSendControllerEvent(short buttonFlags, unsigned char leftTrigger, unsigned char rightTrigger,
|
int LiSendControllerEvent(int buttonFlags, unsigned char leftTrigger, unsigned char rightTrigger,
|
||||||
short leftStickX, short leftStickY, short rightStickX, short rightStickY)
|
short leftStickX, short leftStickY, short rightStickX, short rightStickY)
|
||||||
{
|
{
|
||||||
return sendControllerEventInternal(0, 0x1, buttonFlags, leftTrigger, rightTrigger,
|
return sendControllerEventInternal(0, 0x1, buttonFlags, leftTrigger, rightTrigger,
|
||||||
|
|||||||
+1
-1
@@ -717,7 +717,7 @@ int LiSendUtf8TextEvent(const char *text, unsigned int length);
|
|||||||
|
|
||||||
// This function queues a controller event to be sent to the remote server. It will
|
// This function queues a controller event to be sent to the remote server. It will
|
||||||
// be seen by the computer as the first controller.
|
// be seen by the computer as the first controller.
|
||||||
int LiSendControllerEvent(short buttonFlags, unsigned char leftTrigger, unsigned char rightTrigger,
|
int LiSendControllerEvent(int buttonFlags, unsigned char leftTrigger, unsigned char rightTrigger,
|
||||||
short leftStickX, short leftStickY, short rightStickX, short rightStickY);
|
short leftStickX, short leftStickY, short rightStickX, short rightStickY);
|
||||||
|
|
||||||
// This function queues a controller event to be sent to the remote server. The controllerNumber
|
// This function queues a controller event to be sent to the remote server. The controllerNumber
|
||||||
|
|||||||
Reference in New Issue
Block a user