We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd4d9ad + 2848a54 commit 98d54c3Copy full SHA for 98d54c3
src/sdl2/controller.rs
@@ -642,10 +642,7 @@ impl GameController {
642
/// Get the data rate (number of events per second) of a game controller sensor.
643
#[doc(alias = "SDL_GameControllerGetSensorDataRate")]
644
pub fn sensor_get_data_rate(&self, sensor_type: SensorType) -> f32 {
645
- let result =
646
- unsafe { sys::SDL_GameControllerGetSensorDataRate(self.raw, sensor_type.into()) };
647
-
648
- Ok(result)
+ unsafe { sys::SDL_GameControllerGetSensorDataRate(self.raw, sensor_type.into()) }
649
}
650
651
/// Get data from a sensor.
0 commit comments