Function SDL_SendGamepadEffect

pub unsafe extern "C" fn SDL_SendGamepadEffect(
    gamepad: *mut SDL_Gamepad,
    data: *const c_void,
    size: i32,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Send a gamepad specific effect packet.

§Parameters

  • gamepad: the gamepad to affect.
  • data: the data to send to the gamepad.
  • size: the size of the data to send to the gamepad.

§Return value

Returns true on success or false on failure; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.