mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user