mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-05-19 08:00:12 +00:00
Expand button flags to support additional buttons with Sunshine
This commit is contained in:
+3
-2
@@ -88,7 +88,7 @@ typedef struct _NV_CONTROLLER_PACKET {
|
||||
#define MULTI_CONTROLLER_MAGIC_GEN5 0x0000000C
|
||||
#define MC_HEADER_B 0x001A
|
||||
#define MC_MID_B 0x0014
|
||||
#define MC_TAIL_A 0x0000009C
|
||||
#define MC_TAIL_A 0x009C
|
||||
#define MC_TAIL_B 0x0055
|
||||
typedef struct _NV_MULTI_CONTROLLER_PACKET {
|
||||
NV_INPUT_HEADER header;
|
||||
@@ -103,7 +103,8 @@ typedef struct _NV_MULTI_CONTROLLER_PACKET {
|
||||
short leftStickY;
|
||||
short rightStickX;
|
||||
short rightStickY;
|
||||
int tailA;
|
||||
short tailA;
|
||||
short buttonFlags2; // Sunshine protocol extension (always 0 for GFE)
|
||||
short tailB;
|
||||
} NV_MULTI_CONTROLLER_PACKET, *PNV_MULTI_CONTROLLER_PACKET;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user