This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
2016-09-17 18:31:14 +00:00
|
|
|
#include "Key_LayeredCodeScBase.h"
|
2016-05-09 14:05:08 +00:00
|
|
|
|
2016-09-17 18:31:14 +00:00
|
|
|
void Key_LayeredCodeScBase::pressCode()
|
2016-05-09 14:05:08 +00:00
|
|
|
{
|
2016-09-20 01:46:03 +00:00
|
|
|
if (layerId)
|
2016-05-09 14:05:08 +00:00
|
|
|
{
|
|
|
|
Keyboard.press(scancode1);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
refCode0.press();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-17 18:31:14 +00:00
|
|
|
void Key_LayeredCodeScBase::release()
|
2016-05-09 14:05:08 +00:00
|
|
|
{
|
2016-09-20 01:46:03 +00:00
|
|
|
if (layerId)
|
2016-05-09 14:05:08 +00:00
|
|
|
{
|
|
|
|
Keyboard.release(scancode1);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
refCode0.release();
|
|
|
|
}
|
|
|
|
}
|