mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
input: Add ANSI 3.64 escape sequence generation.
To support Non-ASCII keys (ex, Fn, PgUp/Dn, arrow keys, ...), we need to translate key code into escape sequence. (Updated by sjg@chromium.org to move away from a function to store keycodes, so we can easily record how many were sent. We now need to return this from input_send_keycodes() so we know whether keys were generated.) Signed-off-by: Hung-Te Lin <hungte@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
@@ -84,6 +84,8 @@ struct stdio_dev;
|
||||
* @param config Input state
|
||||
* @param keycode List of key codes to examine
|
||||
* @param num_keycodes Number of key codes
|
||||
* @return number of ascii characters sent, or 0 if none, or -1 for an
|
||||
* internal error
|
||||
*/
|
||||
int input_send_keycodes(struct input_config *config, int keycode[], int count);
|
||||
|
||||
|
Reference in New Issue
Block a user