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.

Code_LayerHold.h 548B

123456789101112131415161718192021
  1. #ifndef CODE_LAYERHOLD_H
  2. #define CODE_LAYERHOLD_H
  3. #include <inttypes.h>
  4. #include "Code.h"
  5. #include "LayerState.h"
  6. /* Code_LayerHold calls LayerState when pressed to change activeLayer.
  7. */
  8. class Code_LayerHold : public Code
  9. {
  10. private:
  11. const uint8_t layerId;
  12. LayerState& refLayerState;
  13. public:
  14. Code_LayerHold(const uint8_t layerId, LayerState& refLayerState)
  15. : layerId(layerId), refLayerState(refLayerState) {}
  16. virtual void press();
  17. virtual void release();
  18. };
  19. #endif