Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
keybrd/src/Key_LayeredScSc.h

23 lines
697 B
C
Raw Normal View History

#ifndef KEY_LAYEREDSCSC_H
#define KEY_LAYEREDSCSC_H
2016-05-09 14:05:08 +00:00
#include <Arduino.h>
#include <inttypes.h>
2016-05-28 21:16:32 +00:00
#include <LayerStateInterface.h>
#include <Key_LayeredScScBase.h>
2016-05-09 14:05:08 +00:00
/* Class Key_LayeredScSc is composed of two scancodes; "S" stands for Scancode.
2016-09-20 01:46:03 +00:00
layerId is retreived from refLayerState.
when layerId=0, press sends scancode0
when layerId=1, press sends scancode1
2016-05-09 14:05:08 +00:00
*/
class Key_LayeredScSc : public Key_LayeredScScBase
2016-05-09 14:05:08 +00:00
{
private:
2016-05-28 21:16:32 +00:00
static LayerStateInterface& refLayerState;
2016-05-09 14:05:08 +00:00
public:
Key_LayeredScSc(const uint16_t scancode0, const uint16_t scancode1)
: Key_LayeredScScBase(scancode0, scancode1) { }
2016-05-09 14:05:08 +00:00
virtual void press();
};
#endif