From 66877b0f5fc96906d70f1264b3b8102d2156360f Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 18 Oct 2015 21:17:13 -0600 Subject: input: Add the keycode translation tables separately Require the caller to add the keycode translation tables separately so that it can select which ones to use. In a later patch we will add the option to add German tables. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- include/input.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/input.h') diff --git a/include/input.h b/include/input.h index 7bccc8ec89..71f3538db5 100644 --- a/include/input.h +++ b/include/input.h @@ -122,6 +122,16 @@ int input_stdio_register(struct stdio_dev *dev); void input_set_delays(struct input_config *config, int repeat_delay_ms, int repeat_rate_ms); +/** + * Set up the key map tables + * + * This must be called after input_init() or keycode decoding will not work. + * + * @param config Input state + * @return 0 if ok, -1 on error + */ +int input_add_tables(struct input_config *config); + /** * Set up the input handler with basic key maps. * -- cgit