Function SDL_GamepadSensorEnabled

pub unsafe extern "C" fn SDL_GamepadSensorEnabled(
    gamepad: *mut SDL_Gamepad,
    type: SDL_SensorType,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Query whether sensor data reporting is enabled for a gamepad.

§Parameters

  • gamepad: the gamepad to query.
  • type: the type of sensor to query.

§Return value

Returns true if the sensor is enabled, false otherwise.

§Availability

This function is available since SDL 3.2.0.

§See also