Members
(constant) devices :Device
Type:
Properties:
Name | Type | Description |
---|---|---|
MASTERKEYS_PRO_L |
Device | |
MASTERKEYS_PRO_S |
Device | |
MASTERKEYS_PRO_L_White |
Device | |
MASTERKEYS_PRO_M_White |
Device | |
MASTERMOUSE_L |
Device | |
MASTERMOUSE_S |
Device | |
MASTERKEYS_PRO_M |
Device | |
MASTERKEYS_PRO_S_WHITE |
Device |
(constant) effects :Effect
Type:
Properties:
Name | Type | Description |
---|---|---|
FULL_ON |
Effect | |
BREATH |
Effect | |
BREATH_CYCLE |
Effect | |
SINGLE |
Effect | |
WAVE |
Effect | |
RIPPLE |
Effect | |
CROSS |
Effect | |
RAIN |
Effect | |
STAR |
Effect | |
SNAKE |
Effect | |
REC |
Effect | |
SPECTRUM |
Effect | |
RAPID_FIRE |
Effect | |
INDICATOR |
Effect | |
MULTI_1 |
Effect | |
MULTI_2 |
Effect | |
MULTI_3 |
Effect | |
MULTI_4 |
Effect | |
OFF |
Effect |
(constant) layouts :Layout
Type:
Properties:
Name | Type | Description |
---|---|---|
UNINIT |
Layout | |
US |
Layout | |
EU |
Layout |
Methods
enableLEDControl(enabled) → {boolean}
Enables/disables LED control
Parameters:
Name | Type | Description |
---|---|---|
enabled |
boolean |
Returns:
success
- Type
- boolean
getCPUUsage() → {number}
Gets the current CPU usgae
Returns:
usgae
- Type
- number
getLayout() → {Layout}
Gets the keyboard layout
Returns:
layout
- Type
- Layout
getRAMUsage() → {number}
Gets the current RAM usgae
Returns:
usgae
- Type
- number
getVolume() → {number}
Gets the current volume
Returns:
volume
- Type
- number
isDevicePluggedIn() → {boolean}
Verifies that the device is plugged in
Returns:
plugged
- Type
- boolean
setDevice(device)
Sets the device to control
Parameters:
Name | Type | Description |
---|---|---|
device |
Device |
setEffect(effect) → {boolean}
Sets the current keyboard effect
Parameters:
Name | Type | Description |
---|---|---|
effect |
Effect |
Returns:
success
- Type
- boolean
setFullLEDColor(r, g, b) → {boolean}
Changes the color of every key
Parameters:
Name | Type | Description |
---|---|---|
r |
number | |
g |
number | |
b |
number |
Returns:
success
- Type
- boolean
setLEDColor(row, column, r, g, b) → {boolean}
Changes the color of a specific key
Parameters:
Name | Type | Description |
---|---|---|
row |
number | |
column |
number | |
r |
number | |
g |
number | |
b |
number |
Returns:
success
- Type
- boolean
Type Definitions
Device
Type:
- number
Effect
Type:
- number
Layout
Type:
- number