input

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReportJog      = 3
	ReportKeyPress = 4
	ReportBattery  = 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatteryReport

type BatteryReport struct {
	Id       uint8
	Charging bool
	Battery  float32
}

func NewBatteryReport

func NewBatteryReport(id byte, payload []byte) (BatteryReport, error)

type JogReport

type JogReport struct {
	Id      uint8
	Mode    jogModes.Mode
	Value   int32
	Unknown uint8
}

func NewJogReport

func NewJogReport(id byte, payload []byte) JogReport

type KeyPressReport

type KeyPressReport struct {
	Id   uint8
	Keys []keys.Key
}

func NewKeyPressReport

func NewKeyPressReport(id byte, payload []byte) (KeyPressReport, error)

type ReportBytes

type ReportBytes []byte

func (ReportBytes) ToReport

func (byt ReportBytes) ToReport() (any, error)

type ReportInt

type ReportInt interface {
	Handle()
}

Jump to

Keyboard shortcuts

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