keybrd library is an open source library for creating custom-keyboard firmware.
Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Это архивный репозиторий. Вы можете его клонировать или просматривать файлы, но не вносить изменения или открывать задачи/запросы на слияние.
123456789101112131415161718192021 |
- #ifndef CODE_LAYERHOLD_H
- #define CODE_LAYERHOLD_H
-
- #include <inttypes.h>
- #include <Code.h>
- #include "LayerState.h"
-
- /* Code_LayerHold calls LayerState when pressed to change activeLayer.
- */
- class Code_LayerHold : public Code
- {
- private:
- const uint8_t layerId;
- LayerState& refLayerState;
- public:
- Code_LayerHold(const uint8_t layerId, LayerState& refLayerState)
- : layerId(layerId), refLayerState(refLayerState) {}
- virtual void press();
- virtual void release();
- };
- #endif
|