summaryrefslogtreecommitdiff
path: root/hid/lib/drivers-avr/usb/keymap.h.mako
diff options
context:
space:
mode:
Diffstat (limited to 'hid/lib/drivers-avr/usb/keymap.h.mako')
-rw-r--r--hid/lib/drivers-avr/usb/keymap.h.mako6
1 files changed, 5 insertions, 1 deletions
diff --git a/hid/lib/drivers-avr/usb/keymap.h.mako b/hid/lib/drivers-avr/usb/keymap.h.mako
index fe295bea..8cc8cd42 100644
--- a/hid/lib/drivers-avr/usb/keymap.h.mako
+++ b/hid/lib/drivers-avr/usb/keymap.h.mako
@@ -28,7 +28,11 @@
KeyboardKeycode keymapUsb(uint8_t code) {
switch (code) {
% for km in sorted(keymap, key=operator.attrgetter("mcu_code")):
- case ${km.mcu_code}: return ${km.arduino_name};
+ % if km.usb_key.is_modifier:
+ case ${km.mcu_code}: return ${km.usb_key.arduino_modifier_code}; // ${km.web_name}
+ % else:
+ case ${km.mcu_code}: return ${km.usb_key.code}; // ${km.web_name}
+ % endif
% endfor
default: return KEY_ERROR_UNDEFINED;
}