Documentation ¶ Index ¶ type Input func NewInput() *Input func (in *Input) Update() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Input ¶ type Input struct { Pinch *pinch Pan *pan Taps []tap // contains filtered or unexported fields } Input is a "manager" for touch input and provides logical encapsulations of touch interactions like panning, pinching, and tapping. func NewInput ¶ func NewInput() *Input func (*Input) Update ¶ func (in *Input) Update() error Update the touch input manager. After a call to Update, if we have two touches, then we have a pinch, if we have one touch, held longer than (N)ms, then we have a pan. If we have quickly released presses, then they are represented in taps. Source Files ¶ View all Source files touch.go Click to show internal directories. Click to hide internal directories.