keybrd library is an open source library for creating custom-keyboard firmware.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.

Key_LayeredKeys.h 580B

12345678910111213141516171819
  1. #ifndef KEY_LAYEREDKEYS_H
  2. #define KEY_LAYEREDKEYS_H
  3. #include <Arduino.h>
  4. #include <inttypes.h>
  5. #include "LayerStateInterface.h"
  6. #include "Key.h"
  7. #include "Key_LayeredKeysBase.h"
  8. /* Most of the Key_LayeredKeys functionality is in Key_LayeredKeysBase.
  9. */
  10. class Key_LayeredKeys : public Key_LayeredKeysBase
  11. {
  12. private:
  13. static LayerStateInterface& refLayerState;
  14. public:
  15. Key_LayeredKeys(Key* const ptrsKeys[]) : Key_LayeredKeysBase(ptrsKeys) {}
  16. virtual uint8_t getActiveLayer(); //get active layer from refLayerState
  17. };
  18. #endif