We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5473564 commit 2593cb7Copy full SHA for 2593cb7
examples/sensors.rs
@@ -1,14 +1,14 @@
1
use std::ffi::CStr;
2
use std::time::{Duration, Instant};
3
4
-use sdl2::sys::SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED;
+use sdl2::sys::SDL_HINT_JOYSTICK_HIDAPI_SWITCH;
5
use sdl2::{event::Event, sensor::SensorType};
6
7
extern crate sdl2;
8
9
fn main() -> Result<(), String> {
10
sdl2::hint::set(
11
- CStr::from_bytes_with_nul(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED)
+ CStr::from_bytes_with_nul(SDL_HINT_JOYSTICK_HIDAPI_SWITCH)
12
.unwrap()
13
.to_str()
14
.unwrap(),
0 commit comments