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_ScS.h 699B

12345678910111213141516171819202122
  1. #ifndef CODE_ScS_H
  2. #define CODE_ScS_H
  3. #include <Arduino.h>
  4. #include <inttypes.h>
  5. #include <Code_AutoShift.h>
  6. /* Class Code_ScS contains one scancode, which it sends when press() or release() is called.
  7. autoShift insures that MODIFIERKEY_LEFT_SHIFT is pressed.
  8. "SS" stands for Scancode Shifted.
  9. If scancode is a letter, CapsLck will invert the case.
  10. Normally this is not a problem because most layer schemes control letter case by shift.
  11. */
  12. class Code_ScS: public Code_AutoShift
  13. {
  14. private:
  15. const uint16_t scancode;
  16. public:
  17. Code_ScS(const uint16_t scancode): scancode(scancode) { }
  18. virtual void press();
  19. virtual void release();
  20. };
  21. #endif