models

package
v0.0.0-...-8dc0387 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

M433IA Config provides the numpad configuration for the M433IA or similar models.

UX581L Config provides the numpad configuration for the UX581L or similar models.

Functions

This section is empty.

Types

type ModelConfig

type ModelConfig struct {
	KeyMap     [][]byte
	Columns    int
	Rows       int
	TopOffset  float64
	SleepDelay time.Duration
}

ModelConfig defines the configuration parameters for a numpad model. It includes the key mappings, grid dimensions, and other behavioral settings.

func GetModelConfig

func GetModelConfig(model string) ModelConfig

GetModelConfig returns the ModelConfig for the specified laptop model. It matches the model string to a predefined configuration. If the model is not recognized, it defaults to the M433IAConfig.

Parameters: - model: A string representing the laptop model (e.g., "m433ia", "ux581l").

Returns: - ModelConfig: The configuration associated with the specified model.

Jump to

Keyboard shortcuts

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