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_LayeredCodeScBase.cpp
2016-05-09 08:05:08 -06:00

26 lines
373 B
C++

#include "Code_LayeredCodeScBase.h"
void Code_LayeredCodeScBase::pressCode()
{
if (layer)
{
Keyboard.press(scancode1);
}
else
{
refCode0.press();
}
}
void Code_LayeredCodeScBase::release()
{
if (layer)
{
Keyboard.release(scancode1);
}
else
{
refCode0.release();
}
}