Lines Matching +full:key +full:- +full:release
1 /* SPDX-License-Identifier: GPL-2.0+ */
24 * This table translates key codes to ASCII. Most of the entries are ASCII
25 * codes, but entries after KEY_FIRST_MOD indicate that this key is a
26 * modifier key, like shift, ctrl. KEY_FIRST_MOD + MOD_SHIFT is the shift
27 * key, for example.
30 /* keycode of the modifiers which select this table, -1 if none */
61 unsigned int next_repeat_ms; /* Next time we repeat a key */
69 * Convert a list of key codes into ASCII and send them
72 * @param keycode List of key codes to examine
73 * @param num_keycodes Number of key codes
74 * @return number of ascii characters sent, or 0 if none, or -1 for an
84 * this function is called to add a new key to the list (when a 'make code' is
85 * received), or remove a key (when a 'break code' is received).
92 * @param release true if this key was released, false if depressed
93 * @return number of ascii characters sent, or 0 if none, or -1 for an
97 bool release);
100 * Add a new key translation table to the input
103 * @param left_keycode Key to hold to get into this table
104 * @param right_keycode Another key to hold to get into this table
105 * @param xlate Conversion table from key codes to ASCII
120 * Read a key
122 * TODO: U-Boot wants 0 for no key, but Ctrl-@ is a valid key...
125 * @return key, or 0 if no key, or -1 if error
133 * @return 0 if ok, -1 on error
140 * @param repeat_delay_ms Delay before key auto-repeat starts (in ms)
141 * @param repeat_rate_ms Delay between successive key repeats (in ms)
154 * inject a repeating key. This function can be called at start-up to select
171 * @return -1 if no LEDs need updating, other value if they do
176 * Set up the key map tables
182 * @return 0 if ok, -1 on error
187 * Set up the input handler with basic key maps.
191 * @return 0 if ok, -1 on error