device

package
v0.0.0-...-5e6f51a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultVID = 0x1915
	DefaultPID = 0x520F
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger *slog.Logger
	VID    uint16
	PID    uint16
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(config Config) *Manager

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) SendConsumer

func (m *Manager) SendConsumer(ctx context.Context, usage uint16, release bool) error

func (*Manager) SendKeyboard

func (m *Manager) SendKeyboard(ctx context.Context, keyCode uint16, modifier byte, flags byte, release bool) error

Jump to

Keyboard shortcuts

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