Function fermium::gamecontroller::SDL_GameControllerSetSensorEnabled [−][src]
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
gamecontroller
The controller to updatetype
The type of sensor to enable/disableenabled
Whether data reporting should be enabled
Returns: 0 or -1 if an error occurred.