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_LayeredScScBase.cpp

21 lines
295 B
C++
Raw Normal View History

2016-05-09 14:05:08 +00:00
#include "Code_LayeredScScBase.h"
void Code_LayeredScScBase::pressScancode()
{
if (layer)
{
scancode = scancode1;
}
else
{
scancode = scancode0;
}
Keyboard.press(scancode);
}
void Code_LayeredScScBase::release()
{
Keyboard.release(scancode);
}