input: Fix comments

This commit is contained in:
Hajime Hoshi 2018-10-11 22:36:38 +09:00
parent 6a9184dd63
commit 7e604c6890

View File

@ -52,8 +52,10 @@ func CursorPosition() (x, y int) {
return ui.AdjustedCursorPosition() return ui.AdjustedCursorPosition()
} }
// MouseWheel returns the x and y offset of the mouse wheel or touchpad scroll. // Wheel returns the x and y offset of the mouse wheel or touchpad scroll.
// It returns 0 if the wheel isn't being rolled. // It returns 0 if the wheel isn't being rolled.
//
// Wheel is concurrent-safe.
func Wheel() (xoff, yoff float64) { func Wheel() (xoff, yoff float64) {
return input.Get().Wheel() return input.Get().Wheel()
} }