diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index fe860c3..e09c92d 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -74,19 +74,42 @@ void processMouseAction(key_action_t action) wasPreviousMouseActionWheelAction = isWheelAction; } -uint8_t getActiveLayer(void) +static bool pressedLayers[LAYER_COUNT]; + +void updatePressedLayers(void) { - uint8_t activeLayer = LayerId_Base; + memset(pressedLayers, false, LAYER_COUNT); + for (uint8_t slotId=0; slotIdmodifiers |= previousModifiers; } - previousLayer = activeLayer; previousModifiers = ActiveUsbBasicKeyboardReport->modifiers; }