From ba32d5b9ab47690e3f316d7c1849e6e334f93d81 Mon Sep 17 00:00:00 2001 From: Arian Baishya Date: Sat, 3 Dec 2022 19:58:30 -0600 Subject: [PATCH] Add num-lock support --- .../main/java/me/arianb/usb_hid_client/KeyCodeTranslation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/me/arianb/usb_hid_client/KeyCodeTranslation.java b/app/src/main/java/me/arianb/usb_hid_client/KeyCodeTranslation.java index 4227102..149150d 100644 --- a/app/src/main/java/me/arianb/usb_hid_client/KeyCodeTranslation.java +++ b/app/src/main/java/me/arianb/usb_hid_client/KeyCodeTranslation.java @@ -285,6 +285,8 @@ public static byte[] convertKeyToScanCodes(String key) { hidKeyCodes.put("left", (byte) 0x50); hidKeyCodes.put("down", (byte) 0x51); hidKeyCodes.put("up", (byte) 0x52); + hidKeyCodes.put("num-lock", (byte) 0x53); + hidKeyCodes.put("volume-up", (byte) 0x80); hidKeyCodes.put("volume-down", (byte) 0x81);