diff options
| author | Hung-Te Lin <[email protected]> | 2012-10-11 15:15:53 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2012-10-19 15:25:44 -0700 |
| commit | 44abe47debc783396ec48d929844dcf1106b72f3 (patch) | |
| tree | 65d1c568313c22e62b9805e5d0cac26e2dc92855 /include/input.h | |
| parent | 59a1b72ced4f3eff6e7e26e566e6090a5e25d384 (diff) | |
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 [email protected] 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 <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include/input.h')
| -rw-r--r-- | include/input.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h index 0f4acb27f83..e90bb0ba9c6 100644 --- a/include/input.h +++ b/include/input.h @@ -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); |
