mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Updated Keyboard (markdown)
parent
18a1fbeac9
commit
dd9c9c9c33
37
Keyboard.md
37
Keyboard.md
@ -12,41 +12,4 @@ print("Current keyboard: ".. Keyboard.Name);
|
||||
#### Result:
|
||||
```
|
||||
Current keyboard: K95 RGB
|
||||
```
|
||||
|
||||
## Functions
|
||||
### GetLayers
|
||||
Returns all layers within the profile
|
||||
#### Syntax:
|
||||
```lua
|
||||
table GetLayers( );
|
||||
```
|
||||
#### Example:
|
||||
```lua
|
||||
local layers = Profile.GetLayers();
|
||||
for layerKey, layerValue in pairs(layers) do
|
||||
print(layerValue.Name)
|
||||
end
|
||||
```
|
||||
#### Result:
|
||||
```
|
||||
Test layer 1
|
||||
Test layer 2
|
||||
```
|
||||
|
||||
### GetLayerByName
|
||||
If found, returns the first layer with the given name
|
||||
#### Syntax:
|
||||
```lua
|
||||
layer GetLayerByName(string layerName);
|
||||
```
|
||||
#### Example:
|
||||
```lua
|
||||
local layer = Profile.GetLayerByName("Test layer 1");
|
||||
print(layer.Name)
|
||||
end
|
||||
```
|
||||
#### Result:
|
||||
```
|
||||
Test layer 1
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user