Lines Matching refs:fn_pressed
130 u8 fn_pressed; member
1086 static unsigned int applespi_translate_fn_key(unsigned int key, int fn_pressed) in applespi_translate_fn_key() argument
1094 do_translate = (fnmode == 2 && fn_pressed) || in applespi_translate_fn_key()
1095 (fnmode == 1 && !fn_pressed); in applespi_translate_fn_key()
1097 do_translate = fn_pressed; in applespi_translate_fn_key()
1117 static unsigned int applespi_code_to_key(u8 code, int fn_pressed) in applespi_code_to_key() argument
1122 key = applespi_translate_fn_key(key, fn_pressed); in applespi_code_to_key()
1138 tmp = keyboard_protocol->fn_pressed; in applespi_remap_fn_key()
1139 keyboard_protocol->fn_pressed = !!(keyboard_protocol->modifiers & bit); in applespi_remap_fn_key()
1183 keyboard_protocol->fn_pressed); in applespi_handle_keyboard_event()
1186 keyboard_protocol->fn_pressed; in applespi_handle_keyboard_event()
1201 if (keyboard_protocol->fn_pressed && !applespi->last_fn_pressed) in applespi_handle_keyboard_event()
1203 else if (!keyboard_protocol->fn_pressed && applespi->last_fn_pressed) in applespi_handle_keyboard_event()
1205 applespi->last_fn_pressed = keyboard_protocol->fn_pressed; in applespi_handle_keyboard_event()