Lines Matching refs:scancode
318 int mac_hid_kbd_translate(unsigned char scancode, unsigned char *keycode, in mac_hid_kbd_translate() argument
327 switch (scancode) { in mac_hid_kbd_translate()
328 case 0x7b: scancode = 0x38; break; /* R-shift */ in mac_hid_kbd_translate()
329 case 0x7c: scancode = 0x3a; break; /* R-option */ in mac_hid_kbd_translate()
330 case 0x7d: scancode = 0x36; break; /* R-control */ in mac_hid_kbd_translate()
333 *keycode = scancode; in mac_hid_kbd_translate()
346 if (scancode == 0xe0 || scancode == 0xe1) { in mac_hid_kbd_translate()
347 prev_scancode = scancode; in mac_hid_kbd_translate()
351 scancode &= 0x7f; in mac_hid_kbd_translate()
355 if (prev_scancode == 0xe1 && scancode == 0x1d) { in mac_hid_kbd_translate()
358 } else if (prev_scancode == 0x100 && scancode == 0x45) { in mac_hid_kbd_translate()
369 if (scancode == 0x2a || scancode == 0x36) in mac_hid_kbd_translate()
372 if (e0_keys[scancode]) in mac_hid_kbd_translate()
373 *keycode = e0_keys[scancode]; in mac_hid_kbd_translate()
377 scancode); in mac_hid_kbd_translate()
381 switch (scancode) { in mac_hid_kbd_translate()
382 case 91: scancode = KEY_LINEFEED; break; in mac_hid_kbd_translate()
383 case 92: scancode = KEY_KPEQUAL; break; in mac_hid_kbd_translate()
384 case 125: scancode = KEY_INTL1; break; in mac_hid_kbd_translate()
386 *keycode = scancode; in mac_hid_kbd_translate()