2016-09-17 18:31:14 +00:00
|
|
|
#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>
|
2016-09-17 18:31:14 +00:00
|
|
|
#include <Key_LayeredScScBase.h>
|
2016-05-09 14:05:08 +00:00
|
|
|
|
2016-09-17 18:31:14 +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
|
|
|
*/
|
2016-09-17 18:31:14 +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:
|
2016-09-17 18:31:14 +00:00
|
|
|
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
|