2024-09-05 8:33 AM - edited 2024-09-05 8:34 AM
The Escape key was mapped to 0x00 in the USB HID code, I added it and it works fine but I'm curious to know why it was absent? Bug/oversight, another method used for Escape key detection?
#ifdef QWERTY_KEYBOARD
static const uint8_t HID_KEYBRD_Key[] =
{
'\0', '`', '1', '2', '3', '4', '5', '6',
'7', '8', '9', '0', '-', '=', '\0', '\r',
'\t', 'q', 'w', 'e', 'r', 't', 'y', 'u',
'i', 'o', 'p', '[', ']', '\\',
'\0', 'a', 's', 'd', 'f', 'g', 'h', 'j',
'k', 'l', ';', '\'', '\0', '\n',
'\0', '\0', 'z', 'x', 'c', 'v', 'b', 'n',
'm', ',', '.', '/', '\0', '\0',
'\0', '\0', '\0', ' ', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\r', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '7', '4', '1',
'\0', '/', '8', '5', '2',
'0', '*', '9', '6', '3',
'.', '-', '+', '\0', '\n', '\0', '\e', '\0', '\0', '\0', '\0', /* Modification - changed \0 to \e for Escape key detection */
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0'
};
Solved! Go to Solution.
2024-09-10 3:36 AM
Hi @Robmar
We can confirm HOST MW for HID class will be updated.
Internal ticket is submitted to MW team: 190619
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-09-10 3:36 AM
Hi @Robmar
We can confirm HOST MW for HID class will be updated.
Internal ticket is submitted to MW team: 190619
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.