src/joystick/bsd/SDL_sysjoystick.c
changeset 12359 691c32a30fb9
parent 12106 94f9bf5b9c36
child 12378 61b267339239
equal deleted inserted replaced
12358:7a7612d67fa7 12359:691c32a30fb9
   223 {
   223 {
   224     if (joydevnames[device_index] != NULL) {
   224     if (joydevnames[device_index] != NULL) {
   225         return (joydevnames[device_index]);
   225         return (joydevnames[device_index]);
   226     }
   226     }
   227     return (joynames[device_index]);
   227     return (joynames[device_index]);
       
   228 }
       
   229 
       
   230 static int
       
   231 BSD_JoystickGetDevicePlayerIndex(int device_index)
       
   232 {
       
   233     return -1;
   228 }
   234 }
   229 
   235 
   230 /* Function to perform the mapping from device index to the instance id for this index */
   236 /* Function to perform the mapping from device index to the instance id for this index */
   231 static SDL_JoystickID
   237 static SDL_JoystickID
   232 BSD_JoystickGetDeviceInstanceID(int device_index)
   238 BSD_JoystickGetDeviceInstanceID(int device_index)
   685 {
   691 {
   686     BSD_JoystickInit,
   692     BSD_JoystickInit,
   687     BSD_JoystickGetCount,
   693     BSD_JoystickGetCount,
   688     BSD_JoystickDetect,
   694     BSD_JoystickDetect,
   689     BSD_JoystickGetDeviceName,
   695     BSD_JoystickGetDeviceName,
       
   696     BSD_JoystickGetDevicePlayerIndex,
   690     BSD_JoystickGetDeviceGUID,
   697     BSD_JoystickGetDeviceGUID,
   691     BSD_JoystickGetDeviceInstanceID,
   698     BSD_JoystickGetDeviceInstanceID,
   692     BSD_JoystickOpen,
   699     BSD_JoystickOpen,
   693     BSD_JoystickRumble,
   700     BSD_JoystickRumble,
   694     BSD_JoystickUpdate,
   701     BSD_JoystickUpdate,