keybrd library is an open source library for creating custom-keyboard firmware.
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ce dépôt est archivé. Vous pouvez voir les fichiers et le cloner, mais vous ne pouvez pas pousser ni ouvrir de ticket/demande d'ajout.
123456789101112131415161718192021 |
- #ifndef KEY_LAYEREDKEYS1_H
- #define KEY_LAYEREDKEYS1_H
- #include <Arduino.h>
- #include <inttypes.h>
- #include <LayerStateInterface.h>
- #include <Key.h>
- #include <Key_LayeredKeysBase.h>
-
- /* Most of the Key_LayeredKeys1 functionality is in Key_LayeredKeysBase.
- Key_LayeredKeys1 is just like Key_LayeredKeys, but with a distinct refLayerState.
- Key_LayeredKeys1 and Key_LayeredKeys can have different size ptrsKeys[].
- */
- class Key_LayeredKeys1 : public Key_LayeredKeysBase
- {
- private:
- static LayerStateInterface& refLayerState;
- public:
- Key_LayeredKeys1(Key* const ptrsKeys[]) : Key_LayeredKeysBase(ptrsKeys) {}
- virtual uint8_t getActiveLayer(); //get active layer from refLayerState
- };
- #endif
|