keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Code_LayeredScSc.h 703B

12345678910111213141516171819202122
  1. #ifndef CODE_LAYEREDSCSC_H
  2. #define CODE_LAYEREDSCSC_H
  3. #include <Arduino.h>
  4. #include <inttypes.h>
  5. #include <StateLayersInterface.h>
  6. #include <Code_LayeredScScBase.h>
  7. /* Class Code_LayeredScSc is composed of two scancodes; "S" stands for Scancode.
  8. layer is retreived from refStateLayers.
  9. when layer=0, press sends scancode0
  10. when layer=1, press sends scancode1
  11. */
  12. class Code_LayeredScSc : public Code_LayeredScScBase
  13. {
  14. private:
  15. static StateLayersInterface& refStateLayers;
  16. public:
  17. Code_LayeredScSc(const uint16_t scancode0, const uint16_t scancode1)
  18. : Code_LayeredScScBase(scancode0, scancode1) { }
  19. virtual void press();
  20. };
  21. #endif