mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
ui: Add comments on Touches
This commit is contained in:
parent
71117073d0
commit
bb6dfeefd4
2
input.go
2
input.go
@ -107,6 +107,8 @@ type Touch interface {
|
||||
}
|
||||
|
||||
// Touches returns the current touch states.
|
||||
//
|
||||
// Touches always returns nil on desktops.
|
||||
func Touches() []Touch {
|
||||
t := ui.CurrentInput().Touches()
|
||||
tt := make([]Touch, len(t))
|
||||
|
@ -32,7 +32,7 @@ type Input struct {
|
||||
cursorX int
|
||||
cursorY int
|
||||
gamepads [16]gamePad
|
||||
touches []touch
|
||||
touches []touch // This is not updated until GLFW 3.3 is available (#417)
|
||||
runeBuffer []rune
|
||||
m sync.RWMutex
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user