src/joystick/emscripten/SDL_sysjoystick.c
changeset 12359 691c32a30fb9
parent 12356 53d99bfefe85
child 12475 0ae268b6ddf0
     1.1 --- a/src/joystick/emscripten/SDL_sysjoystick.c	Thu Oct 25 13:22:34 2018 -0700
     1.2 +++ b/src/joystick/emscripten/SDL_sysjoystick.c	Thu Oct 25 16:53:14 2018 -0700
     1.3 @@ -279,6 +279,12 @@
     1.4      return JoystickByDeviceIndex(device_index)->name;
     1.5  }
     1.6  
     1.7 +static int
     1.8 +EMSCRIPTEN_JoystickGetDevicePlayerIndex(int device_index)
     1.9 +{
    1.10 +    return -1;
    1.11 +}
    1.12 +
    1.13  static SDL_JoystickID
    1.14  EMSCRIPTEN_JoystickGetDeviceInstanceID(int device_index)
    1.15  {
    1.16 @@ -394,6 +400,7 @@
    1.17      EMSCRIPTEN_JoystickGetCount,
    1.18      EMSCRIPTEN_JoystickDetect,
    1.19      EMSCRIPTEN_JoystickGetDeviceName,
    1.20 +    EMSCRIPTEN_JoystickGetDevicePlayerIndex,
    1.21      EMSCRIPTEN_JoystickGetDeviceGUID,
    1.22      EMSCRIPTEN_JoystickGetDeviceInstanceID,
    1.23      EMSCRIPTEN_JoystickOpen,