アーカイブ
1
0
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
keybrd/src/Key_LayeredScSc.h
2016-09-19 19:46:03 -06:00

23 行
697 B
C++

#ifndef KEY_LAYEREDSCSC_H
#define KEY_LAYEREDSCSC_H
#include <Arduino.h>
#include <inttypes.h>
#include <LayerStateInterface.h>
#include <Key_LayeredScScBase.h>
/* Class Key_LayeredScSc is composed of two scancodes; "S" stands for Scancode.
layerId is retreived from refLayerState.
when layerId=0, press sends scancode0
when layerId=1, press sends scancode1
*/
class Key_LayeredScSc : public Key_LayeredScScBase
{
private:
static LayerStateInterface& refLayerState;
public:
Key_LayeredScSc(const uint16_t scancode0, const uint16_t scancode1)
: Key_LayeredScScBase(scancode0, scancode1) { }
virtual void press();
};
#endif