Include stdbool.h when using Visual Studio 2017+

Also cleaned up some incorrect return values from bool functions.
This commit is contained in:
Sam Lantinga 2024-10-01 09:57:05 -07:00
parent 522321b7c9
commit 4fa92d233d
9 changed files with 17 additions and 16 deletions

View file

@ -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) {