keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Key_LayeredKeys.cpp 227B

12345678910111213
  1. #include "Key_LayeredKeys.h"
  2. void Key_LayeredKeys::press()
  3. {
  4. layerId = refLayerState.getActiveLayer();
  5. ptrsKeys[layerId]->press();
  6. }
  7. void Key_LayeredKeys::release()
  8. {
  9. ptrsKeys[layerId]->release();
  10. }