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_LayeredScScBase.h"
|
2016-05-09 14:05:08 +00:00
|
|
|
|
2016-09-17 18:31:14 +00:00
|
|
|
void Key_LayeredScScBase::pressScancode()
|
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
|
|
|
{
|
|
|
|
scancode = scancode1;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
scancode = scancode0;
|
|
|
|
}
|
|
|
|
|
|
|
|
Keyboard.press(scancode);
|
|
|
|
}
|
|
|
|
|
2016-09-17 18:31:14 +00:00
|
|
|
void Key_LayeredScScBase::release()
|
2016-05-09 14:05:08 +00:00
|
|
|
{
|
|
|
|
Keyboard.release(scancode);
|
|
|
|
}
|