sdlGameControllerSendEffect function
int
sdlGameControllerSendEffect(
- Pointer<
SdlGameController> gamecontroller, - Pointer<
NativeType> data, - int size
Send a controller specific effect packet
\param gamecontroller The controller to affect \param data The data to send to the controller \param size The size of the data to send to the controller \returns 0, or -1 if this controller or driver doesn't support effect packets
\since This function is available since SDL 2.0.16.
extern DECLSPEC int SDLCALL SDL_GameControllerSendEffect(SDL_GameController *gamecontroller, const void *data, int size)
Implementation
int sdlGameControllerSendEffect(Pointer<SdlGameController> gamecontroller,
Pointer<NativeType> data, int size) {
final sdlGameControllerSendEffectLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlGameController> gamecontroller,
Pointer<NativeType> data, Int32 size),
int Function(Pointer<SdlGameController> gamecontroller,
Pointer<NativeType> data, int size)>('SDL_GameControllerSendEffect');
return sdlGameControllerSendEffectLookupFunction(gamecontroller, data, size);
}