Lines Matching +full:key +full:- +full:press
1 // SPDX-License-Identifier: GPL-2.0-or-later
16 #include "hid-ids.h"
48 * < copy of hid_keyboard[] from hid-input.c >
53 * int press;
86 * usage_for_key (int key)
90 * if (hid_keyboard[i] == key)
101 * for (trans = icade_keys; trans->from; trans++) {
102 * int usage = usage_for_key (trans->from);
109 * printf ("\tu8 press:1;\n");
113 * for (trans = icade_keys; trans->from; trans++) {
115 * usage_for_key (trans->from), trans->to, trans->press);
127 u8 press:1; member
169 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in icade_event()
170 !usage->type) in icade_event()
173 /* We ignore the fake key up, and act only on key down */ in icade_event()
177 trans = icade_find_translation(usage->hid & HID_USAGE); in icade_event()
182 input_event(field->hidinput->input, usage->type, in icade_event()
183 trans->to, trans->press); in icade_event()
194 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_KEYBOARD) { in icade_input_mapping()
195 trans = icade_find_translation(usage->hid & HID_USAGE); in icade_input_mapping()
198 return -1; in icade_input_mapping()
200 hid_map_usage(hi, usage, bit, max, EV_KEY, trans->to); in icade_input_mapping()
201 set_bit(trans->to, hi->input->keybit); in icade_input_mapping()
207 return -1; in icade_input_mapping()
215 if (usage->type == EV_KEY) in icade_input_mapped()
216 set_bit(usage->type, hi->input->evbit); in icade_input_mapped()
218 return -1; in icade_input_mapped()