mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
3624486f8b
commit
9c80367f2f
@ -54,6 +54,10 @@ func (g *nativeGamepadsImpl) init(gamepads *gamepads) error {
|
|||||||
if err == unix.ENOENT {
|
if err == unix.ENOENT {
|
||||||
return nil
|
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)
|
return fmt.Errorf("gamepad: Stat failed: %w", err)
|
||||||
}
|
}
|
||||||
if stat.Mode&unix.S_IFDIR == 0 {
|
if stat.Mode&unix.S_IFDIR == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user