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_LAYERHOLD_H
- #define CODE_LAYERHOLD_H
-
- #include <inttypes.h>
- #include <Code.h>
- #include "StateLayers.h"
-
- /* Code_LayerHold calls StateLayers when pressed to change activeLayer.
- */
- class Code_LayerHold : public Code
- {
- private:
- const uint8_t layer;
- StateLayers& refStateLayers;
- public:
- Code_LayerHold(const uint8_t layer, StateLayers& refStateLayers)
- : layer(layer), refStateLayers(refStateLayers) {}
- virtual void press();
- virtual void release();
- };
- #endif
|