Updated Xcode project for SDL_main as a header-only library

This commit is contained in:
Sam Lantinga
2022-12-15 10:53:44 -08:00
parent ab554c8392
commit 5a45d2e58b
5 changed files with 32 additions and 127 deletions

View File

@@ -187,8 +187,6 @@ main(int argc, char *argv[])
SDL_JoystickNumAxes(accelerometer));
printf("joystick number of hats = %d\n",
SDL_JoystickNumHats(accelerometer));
printf("joystick number of balls = %d\n",
SDL_JoystickNumBalls(accelerometer));
printf("joystick number of buttons = %d\n",
SDL_JoystickNumButtons(accelerometer));

View File

@@ -9,6 +9,7 @@
#include <SDL3/SDL_opengles.h>
#include "common.h"
#include <math.h>
#include <stdlib.h>
#include <time.h>
#define ACCEL 0.0001f /* acceleration due to gravity, units in pixels per millesecond squared */

View File

@@ -6,6 +6,7 @@
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include <stdlib.h>
#include <time.h>
#include "common.h"