Skip to content

Commit

Permalink
ui: Add comments on Touches
Browse files Browse the repository at this point in the history
hajimehoshi committed Aug 21, 2017
1 parent 7111707 commit bb6dfee
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions input.go
Original file line number Diff line number Diff line change
@@ -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))
2 changes: 1 addition & 1 deletion internal/ui/input_glfw.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit bb6dfee

Please sign in to comment.