triggerwatch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTriggerNotDetected     = errors.New("trigger not detected")
	ErrNoMatchingInputDevices = errors.New("no matching input devices")
)

Functions

func Wait

func Wait(timeout time.Duration, deviceTimeout time.Duration) error

Wait waits for a trigger on the available trigger devices for a given amount of time. Returns nil if one was detected, ErrTriggerNotDetected if timeout was hit, or other non-nil error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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