touch

package
v0.0.0-...-017cec5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL