Documentation ¶
Index ¶
- Constants
- type Device
- func (d *Device) Brightness() float64
- func (d *Device) Firmware() string
- func (d *Device) GameMode() bool
- func (d *Device) HasDedicatedMacroKeys() bool
- func (d *Device) Keys() Keys
- func (d *Device) MatrixDimensions() (int, int)
- func (d *Device) Serial() string
- func (d *Device) SetBrightness(b float64)
- func (d *Device) SetEffect(effect Effect)
- func (d *Device) SetKeys(k Keys)
- func (d *Device) String() string
- func (d *Device) Type() string
- type Effect
- type EffectType
- type Key
- type KeySet
- type Keys
Constants ¶
View Source
const ( EffectNone = iota EffectStatic EffectReactive EffectWave EffectSpectrum EffectBreath EffectBreathDual EffectBreathRandom EffectStarlight EffectStarlightDual EffectStarlightRandom EffectRipple EffectRippleRandom )
Effects known by the keyboard hardware itself
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Name string // contains filtered or unexported fields }
Device represents a single Razer device
func (*Device) Brightness ¶
Brightness returns the device's current brightness
func (*Device) HasDedicatedMacroKeys ¶
HasDedicatedMacroKeys returns whether the device has dedicated macro keys
func (*Device) MatrixDimensions ¶
MatrixDimensions returns the matrix dimensions of the device (rows & columns)
func (*Device) SetBrightness ¶
SetBrightness sets the brightness (between 0 and 100, in percent)
type Effect ¶
type Effect struct { Name string Type EffectType // contains filtered or unexported fields }
Effect represents a hardware effect
type EffectType ¶
type EffectType int
EffectType for type safety
func StringToEffectType ¶
func StringToEffectType(s string) EffectType
StringToEffectType converts a string to an Effect
type Keys ¶
type Keys struct { Letters KeySet FnKeys KeySet Numerics KeySet Symbols KeySet Commandos KeySet Actions KeySet Cursor KeySet Arrows KeySet Special KeySet // contains filtered or unexported fields }
Keys represents all keys (divided in rows) on the keyboard
Click to show internal directories.
Click to hide internal directories.