Correctly transmit the number of controllers attached to the client

This commit is contained in:
Cameron Gutman
2017-02-04 20:09:34 -08:00
parent f1adbc1e6b
commit 8d2dccf4ca
3 changed files with 14 additions and 9 deletions

View File

@@ -55,7 +55,6 @@ typedef struct _NV_CONTROLLER_PACKET {
#define PACKET_TYPE_MULTI_CONTROLLER 0x1E
#define MC_HEADER_A 0x0000000D
#define MC_HEADER_B 0x001A
#define MC_ACTIVE_CONTROLLER_FLAGS 0x000F
#define MC_MID_B 0x0014
#define MC_TAIL_A 0x0000009C
#define MC_TAIL_B 0x0055
@@ -64,7 +63,7 @@ typedef struct _NV_MULTI_CONTROLLER_PACKET {
int headerA;
short headerB;
short controllerNumber;
short midA;
short activeGamepadMask;
short midB;
short buttonFlags;
unsigned char leftTrigger;