From c3a5e4aa7b852715e826b5ac061a9dc85246f254 Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Wed, 22 Jun 2022 00:54:03 +0200 Subject: [PATCH] Adding GetGamepadMapping to Vita Joystick driver --- src/joystick/vita/SDL_sysjoystick.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/joystick/vita/SDL_sysjoystick.c b/src/joystick/vita/SDL_sysjoystick.c index b5c7a2778..7b384e7e9 100644 --- a/src/joystick/vita/SDL_sysjoystick.c +++ b/src/joystick/vita/SDL_sysjoystick.c @@ -398,6 +398,12 @@ VITA_JoystickSetSensorsEnabled(SDL_Joystick *joystick, SDL_bool enabled) return SDL_Unsupported(); } +static SDL_bool +VITA_JoystickGetGamepadMapping(int device_index, SDL_GamepadMapping *out) +{ + return SDL_FALSE; +} + SDL_JoystickDriver SDL_VITA_JoystickDriver = { VITA_JoystickInit, @@ -423,6 +429,7 @@ SDL_JoystickDriver SDL_VITA_JoystickDriver = VITA_JoystickUpdate, VITA_JoystickClose, VITA_JoystickQuit, + VITA_JoystickGetGamepadMapping, }; #endif /* SDL_JOYSTICK_VITA */