mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
parent
3624486f8b
commit
9c80367f2f
@ -54,6 +54,10 @@ func (g *nativeGamepadsImpl) init(gamepads *gamepads) error {
|
||||
if err == unix.ENOENT {
|
||||
return nil
|
||||
}
|
||||
// `/dev/input` might not be accessible in some environments (#3057).
|
||||
if err == unix.EACCES {
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("gamepad: Stat failed: %w", err)
|
||||
}
|
||||
if stat.Mode&unix.S_IFDIR == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user