Lines Matching +full:key +full:- +full:up
1 /* SPDX-License-Identifier: GPL-2.0+ */
24 const u8 *plain_keycode; /* key code for each row / column */
26 int fn_pos; /* position of Fn key in key (or -1) */
27 int ghost_filter; /* non-zero to enable ghost filter */
30 /* Information about a particular key (row, column pair) in the matrix */
38 * Decode a set of pressed keys into key codes
41 * a list of key codes. Each of the keys has a valid flag, which can be
42 * used to mark a particular key as invalid (so that it is ignored).
44 * The plain keymap is used, unless the Fn key is detected along the way,
45 * at which point we switch to the Fn key map.
47 * If key ghosting is detected, we simply ignore the keys and return 0.
52 * @param keycode Returns a list of key codes, decoded from input
53 * @param max_keycodes Size of key codes array (suggest 8)
63 * empty, or "fn-". Then set up the plain key map (and the FN keymap if
69 * @return 0 if ok, -1 on error
74 * Set up a new key matrix.
77 * @param rows Number of rows in key matrix
78 * @param cols Number of columns in key matrix
79 * @param ghost_filter Non-zero to enable ghost filtering
80 * @return 0 if ok, -1 on error