Function sdl2_sys::SDL_GameControllerSetSensorEnabled
source ยท pub unsafe extern "C" fn SDL_GameControllerSetSensorEnabled(
gamecontroller: *mut SDL_GameController,
type_: SDL_SensorType,
enabled: SDL_bool,
) -> c_int
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.