mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +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 returns the current touch states.
|
||||||
|
//
|
||||||
|
// Touches always returns nil on desktops.
|
||||||
func Touches() []Touch {
|
func Touches() []Touch {
|
||||||
t := ui.CurrentInput().Touches()
|
t := ui.CurrentInput().Touches()
|
||||||
tt := make([]Touch, len(t))
|
tt := make([]Touch, len(t))
|
||||||
|
@ -32,7 +32,7 @@ type Input struct {
|
|||||||
cursorX int
|
cursorX int
|
||||||
cursorY int
|
cursorY int
|
||||||
gamepads [16]gamePad
|
gamepads [16]gamePad
|
||||||
touches []touch
|
touches []touch // This is not updated until GLFW 3.3 is available (#417)
|
||||||
runeBuffer []rune
|
runeBuffer []rune
|
||||||
m sync.RWMutex
|
m sync.RWMutex
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user