Unwrapping on gilrs::new() #18
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
The gilrs: Gilrs::new().unwrap(); could panic if the gamepad interface cannot be initialized (e.g., missing drivers or unsupported hardware).
Replace .unwrap() with a more graceful fallback, like logging the error and continuing without gamepad support.
The text was updated successfully, but these errors were encountered: