touch

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: BSD-3-Clause Imports: 0 Imported by: 54

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	X int
	Y int
	Z int
}

Point represents the result of reading a single touch point from a screen. X and Y are the horizontal and vertical coordinates of the touch, while Z represents the touch pressure. In general, client code will want to inspect the value of Z to see if it is above some threshold to determine if a touch is detected at all.

type Pointer

type Pointer interface {
	ReadTouchPoint() Point
}

Pointer is a device that is capable of reading a single touch point

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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