keybrd library is an open source library for creating custom-keyboard firmware.
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.
123456789101112131415161718192021 |
- #ifndef CODE_LAYERLOCK_H
- #define CODE_LAYERLOCK_H
-
- #include <inttypes.h>
- #include "Code.h"
- #include "LayerState.h"
-
- /* Code_LayerLock calls LayerState when pressed to change activeLayer.
- */
- class Code_LayerLock : public Code
- {
- private:
- const uint8_t layerId;
- LayerState& refLayerState;
- public:
- Code_LayerLock(const uint8_t layerId, LayerState& refLayerState)
- : layerId(layerId), refLayerState(refLayerState) {}
- virtual void press();
- virtual void release();
- };
- #endif
|