Versions in this module Expand all Collapse all v1 v1.1.0 Dec 26, 2023 Changes in this version type Analog + ChannelOffset byte + ChannelOffsetNeg byte type Config + func ParseData(data []byte) (Config, error) + type Key struct + ChannelOffset byte + Note byte v1.0.0 May 31, 2023 Changes in this version + const AnalogActionSim + const AnalogCC + const AnalogKeySim + const AnalogPitchBend + const Channel + const ChannelDown + const ChannelUp + const CollisionInterrupt + const CollisionNoRepeat + const CollisionOff + const CollisionRetrigger + const Exit + const GyroHold + const GyroToggle + const GyroX + const GyroY + const GyroZ + const Learning + const Mapping + const MappingDown + const MappingUp + const Multinote + const OctaveDown + const OctaveUp + const Panic + const SemitoneDown + const SemitoneUp + var SupportedActions = map[Action]bool + var SupportedCollisionModes = map[CollisionMode]bool + var SupportedGyroActivationTypes = map[GyroMode]bool + var SupportedGyroMappingTypes = map[MappingType]bool + var SupportedMappingTypes = map[MappingType]bool + var UnsupportedDeviceType = errors.New("unsupported device type") + func DetectDeviceConfigChanges(ctx context.Context) <-chan bool + func NoteToOctave(note byte) int + func NoteToPitch(note byte) string + func StringToNote(note string) (byte, error) + func StringToNoteUnsafe(note string) byte + type Action string + type Analog struct + Action Action + ActionNeg Action + Bidirectional bool + CC byte + CCNeg byte + FlipAxis bool + MappingType MappingType + Note byte + NoteNeg byte + type AnalogMappingAction struct + Action Action + ActionNeg Action + Bidirectional bool + FlipAxis bool + type AnalogMappingCC struct + Bidirectional bool + CC byte + CCNeg byte + FlipAxis bool + type AnalogMappingNote struct + Bidirectional bool + FlipAxis bool + Note byte + NoteNeg byte + type CollisionMode string + type Colors struct + Active openrgb.Color + ActiveExternal openrgb.Color + Black openrgb.Color + C openrgb.Color + Other openrgb.Color + Unavailable openrgb.Color + White openrgb.Color + type Config struct + ActionMapping map[evdev.EvCode]Action + CollisionMode CollisionMode + Deadzone Deadzone + Defaults Defaults + ExitSequence []evdev.EvCode + Gyro map[evdev.EvCode][]GyroDesc + ID input.InputID + KeyMappings []KeyMapping + OpenRGB OpenRGB + Uniq string + type ConfigMap map[input.InputID]DeviceConfig + type Deadzone struct + Deadzones map[evdev.EvCode]float64 + Default float64 + type Defaults struct + Channel int + Mapping int + Octave int + Semitone int + type DeviceConfig struct + Config Config + ConfigFile string + ConfigType string + type DeviceConfigs struct + Factory struct{ ... } + User struct{ ... } + func LoadDeviceConfigs(ctx context.Context, wg *sync.WaitGroup) (DeviceConfigs, error) + func (c *DeviceConfigs) FindConfig(id input.InputID, devType input.DeviceType) (DeviceConfig, error) + type GyroDesc struct + ActivationMode GyroMode + Axis int + CC int + FlipAxis bool + ResetOnDeactivation bool + Type MappingType + ValueMultiplier float64 + func (g GyroDesc) String() string + type GyroDescToml struct + ActivationKey string + ActivationMode string + Axis string + CC int + FlipAxis bool + ResetOnDeactivation bool + Type string + ValueMultiplier float64 + type GyroMode string + type KeyMapping struct + Analog map[evdev.EvCode]Analog + Midi map[evdev.EvCode]byte + Name string + type MappingType string + type OpenRGB struct + Colors Colors + type TOMLDeviceConfig struct + ActionMapping map[string]string + CollisionMode string + Deadzone struct{ ... } + Defaults struct{ ... } + ExitSequence []string + Gyro []GyroDescToml + Identifier struct{ ... } + KeyMappings []struct{ ... } + OpenRGB struct{ ... } + type YamlCustomMapping struct + Action string + ActionNegative string + CC string + CCNegative string + FlipAxis bool + MappingType string + Note string + NoteNegative string + type YamlDeviceConfig struct + ActionMapping map[string]string + CollisionMode string + Deadzones map[string]float64 + DefaultDeadzone float64 + Defaults struct{ ... } + ExitSequence []string + Identifier struct{ ... } + KeyMappings []map[string]map[string]string + OpenRGB struct{ ... }