sdlGetTouchFingers function

Pointer<Pointer<SdlFinger>> sdlGetTouchFingers(
  1. int touchId,
  2. Pointer<Int32> count
)

Get a list of active fingers for a given touch device.

\param touchID the ID of a touch device. \param count a pointer filled in with the number of fingers returned, can be NULL. \returns a NULL terminated array of SDL_Finger pointers or NULL on failure; call SDL_GetError() for more information. This is a single allocation that should be freed with SDL_free() when it is no longer needed.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC SDL_Finger ** SDLCALL SDL_GetTouchFingers(SDL_TouchID touchID, int *count)

Implementation

Pointer<Pointer<SdlFinger>> sdlGetTouchFingers(
    int touchId, Pointer<Int32> count) {
  final sdlGetTouchFingersLookupFunction = libSdl3.lookupFunction<
      Pointer<Pointer<SdlFinger>> Function(
          Uint64 touchId, Pointer<Int32> count),
      Pointer<Pointer<SdlFinger>> Function(
          int touchId, Pointer<Int32> count)>('SDL_GetTouchFingers');
  return sdlGetTouchFingersLookupFunction(touchId, count);
}