Support returning sfSymbolsName for gamepad controls on macOS / iOS / tvOS

This commit is contained in:
Patrick Hogan
2021-10-03 12:49:36 -05:00
committed by Sam Lantinga
parent cdb4d8f22f
commit 149e5c656a
2 changed files with 277 additions and 0 deletions

View File

@@ -931,6 +931,26 @@ extern DECLSPEC int SDLCALL SDL_GameControllerSendEffect(SDL_GameController *gam
*/
extern DECLSPEC void SDLCALL SDL_GameControllerClose(SDL_GameController *gamecontroller);
/**
* Return the sfSymbolsName for a given button on a game controller on Apple platforms.
*
* \param gamecontroller the controller to query
* \param button a button on the game controller
*
*/
extern DECLSPEC const char* SDLCALL SDL_GameControllerGetAppleSFSymbolsNameForButton(SDL_GameController *gamecontroller, SDL_GameControllerButton button);
/**
* Return the sfSymbolsName for a given axis on a game controller on Apple platforms.
*
* \param gamecontroller the controller to query
* \param button an axis on the game controller
*
*/
extern DECLSPEC const char* SDLCALL SDL_GameControllerGetAppleSFSymbolsNameForAxis(SDL_GameController *gamecontroller, SDL_GameControllerAxis axis);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}