mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-30 16:37:39 +00:00
Code cleanup now that SDL_bool is equivalent to a C boolean expression
This commit is contained in:
parent
a76d8e39aa
commit
f3261fedcc
53 changed files with 133 additions and 138 deletions
|
@ -331,7 +331,7 @@ static void RAWINPUT_UpdateXInput()
|
|||
if (xinput_device_change) {
|
||||
for (user_index = 0; user_index < XUSER_MAX_COUNT; user_index++) {
|
||||
XINPUT_CAPABILITIES capabilities;
|
||||
xinput_state[user_index].connected = (XINPUTGETCAPABILITIES(user_index, XINPUT_FLAG_GAMEPAD, &capabilities) == ERROR_SUCCESS) ? SDL_TRUE : SDL_FALSE;
|
||||
xinput_state[user_index].connected = (XINPUTGETCAPABILITIES(user_index, XINPUT_FLAG_GAMEPAD, &capabilities) == ERROR_SUCCESS);
|
||||
}
|
||||
xinput_device_change = SDL_FALSE;
|
||||
xinput_state_dirty = SDL_TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue