Function SDL_GameControllerSetSensorEnabled

pub unsafe extern "C" fn SDL_GameControllerSetSensorEnabled(
    gamecontroller: *mut _SDL_GameController,
    type_: SDL_SensorType,
    enabled: SDL_bool,
) -> i32
Available on crate feature dep_sdl2 only.
Expand description

Set whether data reporting for a game controller sensor is enabled.

\param gamecontroller The controller to update \param type The type of sensor to enable/disable \param enabled Whether data reporting should be enabled \returns 0 or -1 if an error occurred.

\since This function is available since SDL 2.0.14.