touchscreen

package
v0.0.0-...-46214c3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TSEVENT_NULL    = 0
	TSEVENT_PUSH    = 1
	TSEVENT_RELEASE = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InputEvent

type InputEvent struct {
	Time  syscall.Timeval
	Type  uint16
	Code  uint16
	Value int32
}

type Touchscreen

type Touchscreen struct {
	Event chan TouchscreenEvent
	// contains filtered or unexported fields
}

func (*Touchscreen) Close

func (f *Touchscreen) Close()

func (*Touchscreen) Open

func (f *Touchscreen) Open(device string)

func (*Touchscreen) Run

func (f *Touchscreen) Run()

type TouchscreenEvent

type TouchscreenEvent struct {
	Type uint16
	X, Y int32
}

Jump to

Keyboard shortcuts

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