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/Code_LayeredCodeSc.h

24 lines
776 B
C
Raw Normal View History

2016-05-09 14:05:08 +00:00
#ifndef CODE_LAYEREDCODESC_H
#define CODE_LAYEREDCODESC_H
#include <Arduino.h>
#include <inttypes.h>
#include <Code_LayeredCodeScBase.h>
2016-05-28 21:16:32 +00:00
#include <LayerStateInterface.h>
2016-05-09 14:05:08 +00:00
/* Class Code_LayeredCodeSc is a 2-layer code, one object for each layer e.g.
layer0: ms_up //mouse up
layer1: KEY_UP //up arrow
2016-05-28 21:16:32 +00:00
When the key is pressed, the active layer is retrieved from refLayerState,
2016-05-09 14:05:08 +00:00
and the object for the active layer is sent to USB.
*/
class Code_LayeredCodeSc : public Code_LayeredCodeScBase
{
private:
2016-05-28 21:16:32 +00:00
static LayerStateInterface& refLayerState;
2016-05-09 14:05:08 +00:00
public:
Code_LayeredCodeSc(Code& refCode0, const uint16_t scancode1)
: Code_LayeredCodeScBase(refCode0, scancode1, 0) { }
virtual void press();
};
#endif