mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 23:48:29 +00:00
Use C99 bool internally in SDL
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user