port: only use SDL_CONTROLLER_TYPE_VIRTUAL when available

This commit is contained in:
fgsfds committed 2023-12-04 18:22:37 +01:00
1 parent 6f206345a1
commit d1be171939
1 file changed
+5
+5
View File
@@ -12,6 +12,11 @@
#include "system.h"
#include "fs.h"
#if !SDL_VERSION_ATLEAST(2, 0, 14)
// this was added in 2.0.14
#define SDL_CONTROLLER_TYPE_VIRTUAL SDL_CONTROLLER_TYPE_UNKNOWN
#endif
#define CONTROLLERDB_FNAME "gamecontrollerdb.txt"
#define MAX_BIND_STR 256