###### (This is the legacy documentation for SDL2, the previous stable version; [SDL3](https://wiki.libsdl.org/SDL3/) is the current stable version.) # SDL_GetTouchFinger Get the finger object for specified touch device ID and finger index. ## Header File Defined in [SDL_touch.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_touch.h) ## Syntax ```c SDL_Finger * SDL_GetTouchFinger(SDL_TouchID touchID, int index); ``` ## Function Parameters | | | | | -------------------------- | ----------- | ------------------------------------- | | [SDL_TouchID](SDL_TouchID) | **touchID** | the ID of the requested touch device. | | int | **index** | the index of the requested finger. | ## Return Value ([SDL_Finger](SDL_Finger) *) Returns a pointer to the [SDL_Finger](SDL_Finger) object or NULL if no object at the given ID and index could be found. ## Remarks The returned resource is owned by SDL and should not be deallocated. ## Version This function is available since SDL 2.0.0. ## See Also - [SDL_RecordGesture](SDL_RecordGesture) ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryTouch](CategoryTouch)