forked from Ports/perfect_dark
port: only use SDL_CONTROLLER_TYPE_VIRTUAL when available
This commit is contained in:
1 parent
6f206345a1
commit
d1be171939
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user