Use C99 bool internally in SDL

This commit is contained in:
Sam Lantinga
2024-08-22 09:21:26 -07:00
parent 6501e90018
commit 8f546bb3c9
450 changed files with 6046 additions and 6033 deletions

View File

@@ -37,7 +37,7 @@ typedef struct JoyStick_DeviceData
char *joystickname;
Uint8 send_add_event;
SDL_JoystickID nInstanceID;
SDL_bool bXInputDevice;
bool bXInputDevice;
BYTE SubType;
Uint8 XInputUserId;
DIDEVICEINSTANCE dxdevice;
@@ -75,18 +75,18 @@ struct joystick_hwdata
#ifdef SDL_JOYSTICK_DINPUT
LPDIRECTINPUTDEVICE8 InputDevice;
DIDEVCAPS Capabilities;
SDL_bool buffered;
SDL_bool first_update;
bool buffered;
bool first_update;
input_t Inputs[MAX_INPUTS];
int NumInputs;
int NumSliders;
SDL_bool ff_initialized;
bool ff_initialized;
DIEFFECT *ffeffect;
LPDIRECTINPUTEFFECT ffeffect_ref;
#endif
SDL_bool bXInputDevice; // SDL_TRUE if this device supports using the xinput API rather than DirectInput
SDL_bool bXInputHaptic; // Supports force feedback via XInput.
bool bXInputDevice; // true if this device supports using the xinput API rather than DirectInput
bool bXInputHaptic; // Supports force feedback via XInput.
Uint8 userid; // XInput userid index for this joystick
DWORD dwPacketNumber;
};