mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-14 15:07:26 +01:00
internal/ui: update gamepads for PS5
This commit is contained in:
parent
c3ea539cdb
commit
0af6497017
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user