mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-11-01 20:22:37 +08:00
@@ -244,6 +244,9 @@ func (i *Input) setMouseCursor(x, y int) {
|
||||
|
||||
func (i *Input) UpdateGamepads() {
|
||||
nav := js.Global().Get("navigator")
|
||||
if !nav.Truthy() {
|
||||
return
|
||||
}
|
||||
if !nav.Get("getGamepads").Truthy() {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user