Fix compilation on macOS

This commit is contained in:
Cacodemon345
2021-12-14 16:33:53 +06:00
committed by GitHub
parent 4ff78e3766
commit a4905da036

View File

@@ -12,6 +12,8 @@ plat_joystick_t plat_joystick_state[MAX_PLAT_JOYSTICKS];
static SDL_Joystick *sdl_joy[MAX_PLAT_JOYSTICKS];
}
#include <algorithm>
void joystick_init() {
if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) != 0) {
return;