Message type for TTY_INPUT_EVENT

Change-Id: I2bae0a2c8326b36c438f9b340c394ec66189c1c8
This commit is contained in:
2014-05-26 16:34:34 +02:00
parent 5277fbe9f6
commit 310904bf12
4 changed files with 26 additions and 8 deletions

View File

@@ -152,16 +152,16 @@ void do_input(message *msg)
}
/* Only handle keyboard keys. */
if (msg->INPUT_PAGE != INPUT_PAGE_KEY)
if (msg->m_input_tty_event.page != INPUT_PAGE_KEY)
return;
/* Only handle known USB HID keyboard codes (the 00h-E7h range). */
scode = msg->INPUT_CODE;
scode = msg->m_input_tty_event.code;
if (scode >= NR_SCAN_CODES)
return;
/* Is it a KEY RELEASE? */
if (msg->INPUT_VALUE == INPUT_RELEASE)
if (msg->m_input_tty_event.value == INPUT_RELEASE)
scode |= RELEASE_BIT;
if (incount < KB_IN_BYTES) {