sdlJoystickSendEffect function

int sdlJoystickSendEffect(
  1. Pointer<SdlJoystick> joystick,
  2. Pointer<NativeType> data,
  3. int size
)

Send a joystick specific effect packet

\param joystick The joystick to affect \param data The data to send to the joystick \param size The size of the data to send to the joystick \returns 0, or -1 if this joystick or driver doesn't support effect packets

\since This function is available since SDL 2.0.16.

extern DECLSPEC int SDLCALL SDL_JoystickSendEffect(SDL_Joystick *joystick, const void *data, int size)

Implementation

int sdlJoystickSendEffect(
    Pointer<SdlJoystick> joystick, Pointer<NativeType> data, int size) {
  final sdlJoystickSendEffectLookupFunction = libSdl2.lookupFunction<
      Int32 Function(
          Pointer<SdlJoystick> joystick, Pointer<NativeType> data, Int32 size),
      int Function(Pointer<SdlJoystick> joystick, Pointer<NativeType> data,
          int size)>('SDL_JoystickSendEffect');
  return sdlJoystickSendEffectLookupFunction(joystick, data, size);
}