-
Notifications
You must be signed in to change notification settings - Fork 0
Layers
Viktor Pramberg edited this page Sep 15, 2021
·
1 revision
DeviceRGB supports multiple layers, and masking devices and keyboard keys. You can use these features for a tutorial, highlighting only WASD
with a special material to show the user how to move.
There are a few different functions to modify the layer stack, and they are pretty self explanatory. Generally, you can just use AddLayer
and RemoveLayer
, but there are a few more functions for special circumstances.
If you only want your layer to be applied to certain keys or devices, you can either add keys you want to select to the Keys
array, or select devices using the DeviceTypes
enum. Note that if you select Keyboard
as a device type, all keys will be added to the mask, even if the Keys
array is used.