Include stdbool.h when using Visual Studio 2017+
Also cleaned up some incorrect return values from bool functions.
This commit is contained in:
parent
522321b7c9
commit
4fa92d233d
9 changed files with 17 additions and 16 deletions
|
@ -1505,7 +1505,7 @@ bool SDL_GetJoystickBall(SDL_Joystick *joystick, int ball, int *dx, int *dy)
|
|||
|
||||
SDL_LockJoysticks();
|
||||
{
|
||||
CHECK_JOYSTICK_MAGIC(joystick, -1);
|
||||
CHECK_JOYSTICK_MAGIC(joystick, false);
|
||||
|
||||
if (ball < joystick->nballs) {
|
||||
if (dx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue