triggerwatch

package
v0.0.0-...-bc60ea4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 10 Imported by: 13

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