Add GCPadStatus.isConnected boolean

This commit is contained in:
Michael Maltese
2017-02-09 15:03:43 -08:00
committed by Léo Lam
parent bb1c794657
commit 379e28b58c
5 changed files with 58 additions and 43 deletions

View File

@ -39,10 +39,11 @@ struct ControllerState
bool Start : 1, A : 1, B : 1, X : 1, Y : 1, Z : 1; // Binary buttons, 6 bits
bool DPadUp : 1, DPadDown : 1, // Binary D-Pad buttons, 4 bits
DPadLeft : 1, DPadRight : 1;
bool L : 1, R : 1; // Binary triggers, 2 bits
bool disc : 1; // Checks for disc being changed
bool reset : 1; // Console reset button
bool reserved : 2; // Reserved bits used for padding, 2 bits
bool L : 1, R : 1; // Binary triggers, 2 bits
bool disc : 1; // Checks for disc being changed
bool reset : 1; // Console reset button
bool is_connected : 1; // Should controller be treated as connected
bool reserved : 1; // Reserved bits used for padding, 1 bit
u8 TriggerL, TriggerR; // Triggers, 16 bits
u8 AnalogStickX, AnalogStickY; // Main Stick, 16 bits