mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-19 15:19:17 +08:00
Update to FreeBSD stable/12 2019-01-21
Git mirror commit 3a48f3689d65c5304cf706bbf2c5576daeb60a96. Update #3472.
This commit is contained in:
@@ -252,12 +252,15 @@ evdev_scancode2key(int *state, int scancode)
|
||||
*/
|
||||
*state = 0;
|
||||
if ((scancode & 0x7f) == 0x1D)
|
||||
*state = 0x1D;
|
||||
*state = scancode;
|
||||
return (NONE);
|
||||
/* NOT REACHED */
|
||||
case 0x1D: /* pause / break */
|
||||
case 0x9D:
|
||||
if ((*state ^ scancode) & 0x80)
|
||||
return (NONE);
|
||||
*state = 0;
|
||||
if (scancode != 0x45)
|
||||
if ((scancode & 0x7f) != 0x45)
|
||||
return (NONE);
|
||||
keycode = KEY_PAUSE;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user