(Emscripten) If SDL2 is defined, use it as default input driver

This commit is contained in:
twinaphex 2016-09-08 07:37:27 +02:00
parent 413d786e12
commit 2f9dbd2541

View File

@ -234,6 +234,8 @@ enum
#define INPUT_DEFAULT_DRIVER INPUT_XINPUT
#elif defined(ANDROID)
#define INPUT_DEFAULT_DRIVER INPUT_ANDROID
#elif defined(EMSCRIPTEN) && defined(HAVE_SDL2)
#define INPUT_DEFAULT_DRIVER INPUT_SDL2
#elif defined(EMSCRIPTEN)
#define INPUT_DEFAULT_DRIVER INPUT_RWEBINPUT
#elif defined(_WIN32)