Versions in this module Expand all Collapse all v0 v0.1.0 Aug 31, 2026 Changes in this version + const DefaultDistance + const DefaultFingers + const DefaultWithin + var ErrUnsupported = errors.New("multitouch: only macOS has this") + type Contact struct + ID int + Size float32 + VX float32 + VY float32 + X float32 + Y float32 + type Frame struct + At time.Duration + Contacts []Contact + Device int + type Swipe struct + Dx float32 + Dy float32 + Fingers int + func (s Swipe) Horizontal() bool + func (s Swipe) Right() bool + type Swiper struct + Distance float32 + Fingers int + Within time.Duration + func (s *Swiper) Feed(f Frame) (Swipe, bool) + type Watcher struct + func Watch(fn func(Frame)) (*Watcher, error) + func Watch(func(Frame)) (*Watcher, error) + func (w *Watcher) Close() error