Adding GetGamepadMapping to Vita Joystick driver

This commit is contained in:
Francisco Javier Trujillo Mata 2022-06-22 00:54:03 +02:00 committed by Ozkan Sezer
parent 7adb08a79a
commit c3a5e4aa7b
1 changed files with 7 additions and 0 deletions

View File

@ -398,6 +398,12 @@ VITA_JoystickSetSensorsEnabled(SDL_Joystick *joystick, SDL_bool enabled)
return SDL_Unsupported(); return SDL_Unsupported();
} }
static SDL_bool
VITA_JoystickGetGamepadMapping(int device_index, SDL_GamepadMapping *out)
{
return SDL_FALSE;
}
SDL_JoystickDriver SDL_VITA_JoystickDriver = SDL_JoystickDriver SDL_VITA_JoystickDriver =
{ {
VITA_JoystickInit, VITA_JoystickInit,
@ -423,6 +429,7 @@ SDL_JoystickDriver SDL_VITA_JoystickDriver =
VITA_JoystickUpdate, VITA_JoystickUpdate,
VITA_JoystickClose, VITA_JoystickClose,
VITA_JoystickQuit, VITA_JoystickQuit,
VITA_JoystickGetGamepadMapping,
}; };
#endif /* SDL_JOYSTICK_VITA */ #endif /* SDL_JOYSTICK_VITA */