Lines Matching refs:code
186 if (usage->code == KEY_FN) { in hidinput_apple_event()
188 input_event(input, usage->type, usage->code, value); in hidinput_apple_event()
203 trans = apple_find_translation (table, usage->code); in hidinput_apple_event()
206 if (test_bit(usage->code, asc->pressed_fn)) in hidinput_apple_event()
216 set_bit(usage->code, asc->pressed_fn); in hidinput_apple_event()
218 clear_bit(usage->code, asc->pressed_fn); in hidinput_apple_event()
228 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
231 usage->code); in hidinput_apple_event()
235 set_bit(usage->code, in hidinput_apple_event()
238 clear_bit(usage->code, in hidinput_apple_event()
251 trans = apple_find_translation(apple_iso_keyboard, usage->code); in hidinput_apple_event()
260 trans = apple_find_translation(swapped_option_cmd_keys, usage->code); in hidinput_apple_event()
280 usage->code == REL_HWHEEL) { in apple_event()
281 input_event(field->hidinput->input, usage->type, usage->code, in apple_event()
357 else if (usage->code == BTN_1) in apple_input_mapped()
359 else if (usage->code == BTN_2) in apple_input_mapped()