inputmacro

package
v2.17.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package inputmacro classifies control tokens shared by input transports and emitters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action uint8

Action identifies an inline input macro control operation.

const (
	ActionNone Action = iota
	ActionDelay
	ActionPress
	ActionRelease
	ActionHold
)

type Control

type Control struct {
	Value  string
	Action Action
}

Control describes a recognized inline input macro token.

func ClassifyControl

func ClassifyControl(token string) Control

ClassifyControl recognizes braced delay, press, release, and hold tokens, including their sigil forms. Non-control tokens return ActionNone.

Jump to

Keyboard shortcuts

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