sdlSendJoystickEffect function
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 true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC bool SDLCALL SDL_SendJoystickEffect(SDL_Joystick *joystick, const void *data, int size)
Implementation
bool sdlSendJoystickEffect(
Pointer<SdlJoystick> joystick, Pointer<NativeType> data, int size) {
final sdlSendJoystickEffectLookupFunction = libSdl3.lookupFunction<
Uint8 Function(
Pointer<SdlJoystick> joystick, Pointer<NativeType> data, Int32 size),
int Function(Pointer<SdlJoystick> joystick, Pointer<NativeType> data,
int size)>('SDL_SendJoystickEffect');
return sdlSendJoystickEffectLookupFunction(joystick, data, size) == 1;
}