dump

package
v0.0.0-...-45f48e6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package dump provides device state collector

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenSimulation

func OpenSimulation(s *State) (*nuga.Device, error)

OpenSimulation opens simulated keyboard

func Restore

func Restore(h hid.Handler, s *State) error

Restore device state

Types

type State

type State struct {
	Name     device.Model `json:"name"`
	Firmware string       `json:"firmware"`
	Lights   light.State  `json:"lights"`
	Keys     keys.State   `json:"keys"`
}

State represents device state. It contains data of all supported features

func Collect

func Collect(h hid.Handler) (State, error)

Collect device state

func GetDefaults

func GetDefaults(model device.Model) (*State, error)

GetDefaults returns default state for given model

Jump to

Keyboard shortcuts

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