Skip to content

Commit

Permalink
internal/ui: update gamepads for PS5
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Oct 19, 2024
1 parent c3ea539 commit 0af6497
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion internal/ui/input_playstation5.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,23 @@

package ui

import (
"github.com/hajimehoshi/ebiten/v2/internal/gamepad"
)

func (u *UserInterface) updateInputState() error {
// TODO: Implement this
var err error
u.mainThread.Call(func() {
err = u.updateInputStateImpl()
})
return err
}

// updateInputStateImpl must be called from the main thread.
func (u *UserInterface) updateInputStateImpl() error {
if err := gamepad.Update(); err != nil {
return err
}
return nil
}

Expand Down

0 comments on commit 0af6497

Please sign in to comment.