//
pkg.gl
Category
github.com/joegruffins/termdash
internal
button
package
1.0.0
Repository:
https://github.com/joegruffins/termdash.git
Documentation:
pkg.go.dev
Overview
Versions
2
Dependencies
3
Dependents
3
Files
78 SLOC
#
Functions
NewFSM
NewFSM creates a new FSM instance that tracks the state of the specified mouse button through button events that fall within the provided area.
#
Constants
Down
Down is a state where the mouse button is pressed down and held.
Up
Up is the default idle state of the mouse button.
#
Structs
FSM
FSM implements a finite-state machine that tracks mouse clicks within an area.
#
Type aliases
State
State represents the state of the mouse button.