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
\return 0 or -1 if an error occurred.