keybrd library is an open source library for creating custom-keyboard firmware.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。

Key_LayeredKeys1.h 742B

123456789101112131415161718192021
  1. #ifndef KEY_LAYEREDKEYS1_H
  2. #define KEY_LAYEREDKEYS1_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_LayeredKeys1 functionality is in Key_LayeredKeysBase.
  9. Key_LayeredKeys1 is just like Key_LayeredKeys, but with a distinct refLayerState.
  10. Key_LayeredKeys1 and Key_LayeredKeys can have different size ptrsKeys[].
  11. */
  12. class Key_LayeredKeys1 : public Key_LayeredKeysBase
  13. {
  14. private:
  15. static LayerStateInterface& refLayerState;
  16. public:
  17. Key_LayeredKeys1(Key* const ptrsKeys[]) : Key_LayeredKeysBase(ptrsKeys) {}
  18. virtual uint8_t getActiveLayer(); //get active layer from refLayerState
  19. };
  20. #endif