该仓库已被归档。您可以查看文件和克隆它,但不能推送、创建工单或合并请求。
2016-09-18 06:42:21 +00:00
|
|
|
#ifndef KEY_LAYEREDKEYS_H
|
|
|
|
#define KEY_LAYEREDKEYS_H
|
2016-05-09 14:05:08 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
#include <inttypes.h>
|
2016-11-18 10:21:50 +00:00
|
|
|
#include "LayerStateInterface.h"
|
|
|
|
#include "Key.h"
|
|
|
|
#include "Key_LayeredKeysBase.h"
|
2016-05-09 14:05:08 +00:00
|
|
|
|
2016-09-20 02:40:25 +00:00
|
|
|
/* Most of the Key_LayeredKeys functionality is in Key_LayeredKeysBase.
|
2016-05-09 14:05:08 +00:00
|
|
|
*/
|
2016-09-20 02:40:25 +00:00
|
|
|
class Key_LayeredKeys : public Key_LayeredKeysBase
|
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-20 02:40:25 +00:00
|
|
|
Key_LayeredKeys(Key* const ptrsKeys[]) : Key_LayeredKeysBase(ptrsKeys) {}
|
|
|
|
virtual uint8_t getActiveLayer(); //get active layer from refLayerState
|
2016-05-09 14:05:08 +00:00
|
|
|
};
|
|
|
|
#endif
|