NicoHood / HID

Bring enhanced HID functions to your Arduino!
http://www.nicohood.de
MIT License
2.33k stars 401 forks source link

send wrong key for enter as "(" #377

Closed vincentgao-ca closed 1 year ago

vincentgao-ca commented 1 year ago

Keyboard.write( KEY_ENTER); BootKeyboard.write( KEY_ENTER); I use Arduino 1.8.19, HID 2.8.2

I tested many times, and saw all the issues, no way to solve this. Before I changed to nicohood hid library, everything is ok, but after I changed to NicoHood HID, the host receives "(", instead of ENTER. For the other keys, it works well. Also I used it use Surface UEFI keyboard, not working at all, the Surface UEFI not working but it works well when plugging a real keyboard.

Please give a solution for how to use ENTER key and how to support Surface UEFI. Thanks.

NicoHood commented 1 year ago

Hi, which keyboard layout do you use?

vincentgao-ca commented 1 year ago

Hi NicoHood, I use US_ENGLISH, Sparkfun Pro micro, 32u4 nano. I am trying to fix this issue now. I used Keyboard.write(KEY_ENTER) it is correct, I can't use uint8_t as input, the host will get "(". For UEFI, still not working, either Keyboard or BootKeyboard class functions. My host is Surface laptop.

Thank you for your reply so quickly. vincent

NicoHood commented 1 year ago

I have no idea what is going wrong

vincentgao-ca commented 1 year ago

I have to translate all the virtual code into Arduino code, especially for control, alt, Fn keys. About supporting the UEFI keyboard, do you have any idea for solving the issue? Thank you.

vincentgao-ca commented 1 year ago

I finally made it, translate each virtual key to the defined keys ascii map. Thank you.