src/joystick/darwin/SDL_sysjoystick.c
changeset 12359 691c32a30fb9
parent 12115 0d9277d27e2d
child 12503 806492103856
equal deleted inserted replaced
12358:7a7612d67fa7 12359:691c32a30fb9
   696 const char *
   696 const char *
   697 DARWIN_JoystickGetDeviceName(int device_index)
   697 DARWIN_JoystickGetDeviceName(int device_index)
   698 {
   698 {
   699     recDevice *device = GetDeviceForIndex(device_index);
   699     recDevice *device = GetDeviceForIndex(device_index);
   700     return device ? device->product : "UNKNOWN";
   700     return device ? device->product : "UNKNOWN";
       
   701 }
       
   702 
       
   703 static int
       
   704 DARWIN_JoystickGetDevicePlayerIndex(int device_index)
       
   705 {
       
   706     return -1;
   701 }
   707 }
   702 
   708 
   703 static SDL_JoystickGUID
   709 static SDL_JoystickGUID
   704 DARWIN_JoystickGetDeviceGUID( int device_index )
   710 DARWIN_JoystickGetDeviceGUID( int device_index )
   705 {
   711 {
   996 {
  1002 {
   997     DARWIN_JoystickInit,
  1003     DARWIN_JoystickInit,
   998     DARWIN_JoystickGetCount,
  1004     DARWIN_JoystickGetCount,
   999     DARWIN_JoystickDetect,
  1005     DARWIN_JoystickDetect,
  1000     DARWIN_JoystickGetDeviceName,
  1006     DARWIN_JoystickGetDeviceName,
       
  1007     DARWIN_JoystickGetDevicePlayerIndex,
  1001     DARWIN_JoystickGetDeviceGUID,
  1008     DARWIN_JoystickGetDeviceGUID,
  1002     DARWIN_JoystickGetDeviceInstanceID,
  1009     DARWIN_JoystickGetDeviceInstanceID,
  1003     DARWIN_JoystickOpen,
  1010     DARWIN_JoystickOpen,
  1004     DARWIN_JoystickRumble,
  1011     DARWIN_JoystickRumble,
  1005     DARWIN_JoystickUpdate,
  1012     DARWIN_JoystickUpdate,