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 278eda3 + 047eb79 commit 1b68845Copy full SHA for 1b68845
examples/game-controller.rs
@@ -1,6 +1,10 @@
1
extern crate sdl2;
2
3
fn main() -> Result<(), String> {
4
+ // This is required for certain controllers to work on Windows without the
5
+ // video subsystem enabled:
6
+ sdl2::hint::set("SDL_JOYSTICK_THREAD", "1");
7
+
8
let sdl_context = sdl2::init()?;
9
let game_controller_subsystem = sdl_context.game_controller()?;
10
0 commit comments