src/joystick/haiku/SDL_haikujoystick.cc
changeset 12359 691c32a30fb9
parent 12201 8bdc4d340419
child 12503 806492103856
equal deleted inserted replaced
12358:7a7612d67fa7 12359:691c32a30fb9
    97     static const char *HAIKU_JoystickGetDeviceName(int device_index)
    97     static const char *HAIKU_JoystickGetDeviceName(int device_index)
    98     {
    98     {
    99         return SDL_joyname[device_index];
    99         return SDL_joyname[device_index];
   100     }
   100     }
   101 
   101 
       
   102     static int HAIKU_JoystickGetDevicePlayerIndex(int device_index)
       
   103     {
       
   104         return -1;
       
   105     }
       
   106 
   102 /* Function to perform the mapping from device index to the instance id for this index */
   107 /* Function to perform the mapping from device index to the instance id for this index */
   103     static SDL_JoystickID HAIKU_JoystickGetDeviceInstanceID(int device_index)
   108     static SDL_JoystickID HAIKU_JoystickGetDeviceInstanceID(int device_index)
   104     {
   109     {
   105         return device_index;
   110         return device_index;
   106     }
   111     }
   254     {
   259     {
   255         HAIKU_JoystickInit,
   260         HAIKU_JoystickInit,
   256         HAIKU_JoystickGetCount,
   261         HAIKU_JoystickGetCount,
   257         HAIKU_JoystickDetect,
   262         HAIKU_JoystickDetect,
   258         HAIKU_JoystickGetDeviceName,
   263         HAIKU_JoystickGetDeviceName,
       
   264         HAIKU_JoystickGetDevicePlayerIndex,
   259         HAIKU_JoystickGetDeviceGUID,
   265         HAIKU_JoystickGetDeviceGUID,
   260         HAIKU_JoystickGetDeviceInstanceID,
   266         HAIKU_JoystickGetDeviceInstanceID,
   261         HAIKU_JoystickOpen,
   267         HAIKU_JoystickOpen,
   262         HAIKU_JoystickRumble,
   268         HAIKU_JoystickRumble,
   263         HAIKU_JoystickUpdate,
   269         HAIKU_JoystickUpdate,