From 79a4e534d61dcc89eb64a5fb64fc385f19ea7ffe Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 23 Feb 2019 14:09:29 +1100 Subject: [PATCH] relay: add more keys --- relay.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/relay.py b/relay.py index 792ac93..e930cd9 100755 --- a/relay.py +++ b/relay.py @@ -59,14 +59,14 @@ scan_to_hid = { evdev.ecodes.KEY_EQUAL: 0x2e, evdev.ecodes.KEY_LEFTBRACE: 0x2f, evdev.ecodes.KEY_RIGHTBRACE: 0x30, - evdev.ecodes.KEY_SLASH: 0x31, + evdev.ecodes.KEY_BACKSLASH: 0x31, # Non-US # and ~: 0x32, evdev.ecodes.KEY_SEMICOLON: 0x33, - # Quote + evdev.ecodes.KEY_APOSTROPHE: 0x34, evdev.ecodes.KEY_GRAVE: 0x35, evdev.ecodes.KEY_COMMA: 0x36, - evdev.ecodes.KEY_STOP: 0x37, - evdev.ecodes.KEY_QUESTION: 0x38, + evdev.ecodes.KEY_DOT: 0x37, + evdev.ecodes.KEY_SLASH: 0x38, evdev.ecodes.KEY_CAPSLOCK: 0x39, @@ -89,7 +89,7 @@ scan_to_hid = { evdev.ecodes.KEY_INSERT: 0x49, evdev.ecodes.KEY_HOME: 0x4a, evdev.ecodes.KEY_PAGEUP: 0x4b, - # delete forward: 0x4c, + evdev.ecodes.KEY_DELETE: 0x4c, evdev.ecodes.KEY_END: 0x4d, evdev.ecodes.KEY_PAGEDOWN: 0x4e,