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

This commit is contained in:
Patrick Hogan authored and Sam Lantinga committed 2021-11-07 10:58:37 -08:00
1 parent cdb4d8f22f
commit 149e5c656a
2 files changed
+277

No files matched your search

+20
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
}