gesture

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SWIPE_DIRECTION_LEFT = iota
	SWIPE_DIRECTION_UP
	SWIPE_DIRECTION_RIGHT
	SWIPE_DIRECTION_DOWN
	SWIPE_DIRECTION_UNDEFINED
	SWIPE_DIRECTION_INVALID
)
View Source
const ALLOWED_DEVIATION_DEGREES = 20
View Source
const JITTER_TOLERANCE_DISTANCE = 15
View Source
const MAX_DOUBLETAP_DETECTION_DISTANCE = 300
View Source
const MAX_DOUBLETAP_DETECTION_DURATION = 400000000
View Source
const MAX_SUPPORTED_FINGERS = 2
View Source
const MAX_TAP_DETECTION_DISTANCE = 100
View Source
const MAX_TAP_DETECTION_DURATION = 200000000
View Source
const MIN_DISTANCE_DIRECTION_SET = 100
View Source
const MIN_DISTANCE_EMIT_EVENT = 350

Variables

This section is empty.

Functions

This section is empty.

Types

type GestureDetector

type GestureDetector struct {
	// contains filtered or unexported fields
}

func NewGestureDetector

func NewGestureDetector(c chan int) *GestureDetector

func (*GestureDetector) ProcessEvent

func (d *GestureDetector) ProcessEvent(evnt *evdev.InputEvent)

type SwipeDetector

type SwipeDetector struct {
	// contains filtered or unexported fields
}

type TapDetector

type TapDetector struct {
	// contains filtered or unexported fields
}

type TapEvent

type TapEvent struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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