sdlGetTouchDevice function

int sdlGetTouchDevice(
  1. int index
)

Get the touch ID with the given index.

\param index the touch device index \returns the touch ID with the given index on success or 0 if the index is invalid; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_GetNumTouchDevices

extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index)

Implementation

int sdlGetTouchDevice(int index) {
  final sdlGetTouchDeviceLookupFunction = libSdl2.lookupFunction<
      Int64 Function(Int32 index),
      int Function(int index)>('SDL_GetTouchDevice');
  return sdlGetTouchDeviceLookupFunction(index);
}