diff options
| author | Ray <[email protected]> | 2023-10-14 10:56:09 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-10-14 10:56:09 +0200 |
| commit | 005ba155c0b4d8e065e6e3ffe2cdd82bb41bf200 (patch) | |
| tree | 0aeb8dc2e3e8a752123619cc025294db60bb4722 /src/rcore.c | |
| parent | 2f08f435b91a08c57bf7e381a46381770a00791e (diff) | |
| download | raylib-005ba155c0b4d8e065e6e3ffe2cdd82bb41bf200.tar.gz raylib-005ba155c0b4d8e065e6e3ffe2cdd82bb41bf200.zip | |
Minor tweaks
Diffstat (limited to 'src/rcore.c')
| -rw-r--r-- | src/rcore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c index 3efa67b2..b3e07f95 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -2812,7 +2812,7 @@ static void RecordAutomationEvent(unsigned int frame) // INPUT_GAMEPAD_CONNECT /* if ((CORE.Input.Gamepad.currentState[gamepad] != CORE.Input.Gamepad.previousState[gamepad]) && - (CORE.Input.Gamepad.currentState[gamepad] == true)) // Check if changed to ready + (CORE.Input.Gamepad.currentState[gamepad])) // Check if changed to ready { // TODO: Save gamepad connect event } @@ -2821,7 +2821,7 @@ static void RecordAutomationEvent(unsigned int frame) // INPUT_GAMEPAD_DISCONNECT /* if ((CORE.Input.Gamepad.currentState[gamepad] != CORE.Input.Gamepad.previousState[gamepad]) && - (CORE.Input.Gamepad.currentState[gamepad] == false)) // Check if changed to not-ready + (!CORE.Input.Gamepad.currentState[gamepad])) // Check if changed to not-ready { // TODO: Save gamepad disconnect event } |
