Skip to content

Commit 2593cb7

Browse files
author
Mikaël Fourrier
committed
typo
1 parent 5473564 commit 2593cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sensors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
use std::ffi::CStr;
22
use std::time::{Duration, Instant};
33

4-
use sdl2::sys::SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED;
4+
use sdl2::sys::SDL_HINT_JOYSTICK_HIDAPI_SWITCH;
55
use sdl2::{event::Event, sensor::SensorType};
66

77
extern crate sdl2;
88

99
fn main() -> Result<(), String> {
1010
sdl2::hint::set(
11-
CStr::from_bytes_with_nul(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED)
11+
CStr::from_bytes_with_nul(SDL_HINT_JOYSTICK_HIDAPI_SWITCH)
1212
.unwrap()
1313
.to_str()
1414
.unwrap(),

0 commit comments

Comments
 (0)