src/joystick/linux/SDL_sysjoystick.c
changeset 12359 691c32a30fb9
parent 12333 898f03b00670
child 12410 a7ee81795c75
equal deleted inserted replaced
12358:7a7612d67fa7 12359:691c32a30fb9
   578 /* Function to get the device-dependent name of a joystick */
   578 /* Function to get the device-dependent name of a joystick */
   579 static const char *
   579 static const char *
   580 LINUX_JoystickGetDeviceName(int device_index)
   580 LINUX_JoystickGetDeviceName(int device_index)
   581 {
   581 {
   582     return JoystickByDevIndex(device_index)->name;
   582     return JoystickByDevIndex(device_index)->name;
       
   583 }
       
   584 
       
   585 static int
       
   586 LINUX_JoystickGetDevicePlayerIndex(int device_index)
       
   587 {
       
   588     return -1;
   583 }
   589 }
   584 
   590 
   585 static SDL_JoystickGUID
   591 static SDL_JoystickGUID
   586 LINUX_JoystickGetDeviceGUID( int device_index )
   592 LINUX_JoystickGetDeviceGUID( int device_index )
   587 {
   593 {
  1098 {
  1104 {
  1099     LINUX_JoystickInit,
  1105     LINUX_JoystickInit,
  1100     LINUX_JoystickGetCount,
  1106     LINUX_JoystickGetCount,
  1101     LINUX_JoystickDetect,
  1107     LINUX_JoystickDetect,
  1102     LINUX_JoystickGetDeviceName,
  1108     LINUX_JoystickGetDeviceName,
       
  1109     LINUX_JoystickGetDevicePlayerIndex,
  1103     LINUX_JoystickGetDeviceGUID,
  1110     LINUX_JoystickGetDeviceGUID,
  1104     LINUX_JoystickGetDeviceInstanceID,
  1111     LINUX_JoystickGetDeviceInstanceID,
  1105     LINUX_JoystickOpen,
  1112     LINUX_JoystickOpen,
  1106     LINUX_JoystickRumble,
  1113     LINUX_JoystickRumble,
  1107     LINUX_JoystickUpdate,
  1114     LINUX_JoystickUpdate,