ui: Add comments on Touches

This commit is contained in:
Hajime Hoshi 2017-08-22 00:58:38 +09:00
parent 71117073d0
commit bb6dfeefd4
2 changed files with 3 additions and 1 deletions

View File

@ -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))

View File

@ -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
}