Fixed bug #2032: add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!)

This commit is contained in:
Sylvain
2022-02-08 11:32:20 +01:00
parent 8ce003a42c
commit 34d4f5b14e
3 changed files with 18 additions and 0 deletions

View File

@@ -95,6 +95,11 @@ extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void);
*/
extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index);
/**
* \brief Get the touch device name as reported from the driver or NULL if the index is invalid.
*/
extern DECLSPEC const char* SDLCALL SDL_GetTouchName(int index);
/**
* Get the type of the given touch device.
*