mousefilter

package
v2.0.0-...-7f6935a Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectMove

func DetectMove(press, p image.Point) bool

func DetectMovePad

func DetectMovePad(p, press, ref image.Point) image.Point

Types

type ClickFilter

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

produce click/doubleclick/tripleclick events

func NewClickFilter

func NewClickFilter(emitEvFn func(interface{}, image.Point)) *ClickFilter

func (*ClickFilter) Filter

func (clickf *ClickFilter) Filter(ev interface{})

type DragFilter

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

Produce mousedrag* events. Keeps track of the first mouse button used.

func NewDragFilter

func NewDragFilter(emitEvFn func(interface{}, image.Point)) *DragFilter

func (*DragFilter) Filter

func (dragf *DragFilter) Filter(ev interface{})

type MClickAction

type MClickAction int
const (
	MClickActionSingle MClickAction = iota
	MClickActionDouble
	MClickActionTriple
)

type MoveFilter

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

func NewMoveFilter

func NewMoveFilter(fps int, emitFn func(interface{}), isMoveFn func(interface{}) bool) *MoveFilter

func (*MoveFilter) Filter

func (movef *MoveFilter) Filter(ev interface{})

type MultipleClick

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

Jump to

Keyboard shortcuts

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