keybrd library is an open source library for creating custom-keyboard firmware.
Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Você pode visualizar os arquivos e realizar clone, mas não poderá realizar push nem abrir issues e pull requests.
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
|