InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

[Windows] [Keyboard] When numlock is released, pressing arrow key triggers Print Screen key.

Open JiaUnity opened this issue 8 years ago • 4 comments

When the Numlock is not in effect and the number pad does not work as number input, pressing the arrow keys also triggers Print Screen key. printscreen

JiaUnity avatar Jun 15 '18 18:06 JiaUnity

I can reproduce 100% of time. Taking a look at fix.

douglas-piconi avatar Jul 17 '18 15:07 douglas-piconi

bits

doesnt matter id NumLock was on or off when started, if it is hit, then anytime you press any of arrow, or INS. HOME, etc... you get a state buffer with two bits set, and one of them is PrtScn. This happens in both Editor and Standalone player mode.

douglas-piconi avatar Jul 17 '18 19:07 douglas-piconi

ok tracked this down to the native windows scan codes. This appears to be what microsoft is sending. If the num lock is off it will send 2 scan codes and prtscn could be one of them 0xE02A

Insert, Delete, Home, End, Page Up, Page Down, Up, Down, Left, Right: when Num Lock is on or one or both shift keys are pressed, 0xE02A, 0xE0AA, 0xE036, 0xE0B6 can be as postfix or prefix

Looks like not a bug and this is by design from microsoft.

douglas-piconi avatar Jul 17 '18 21:07 douglas-piconi

This is by design on the MS part.

JiaUnity avatar Feb 23 '19 02:02 JiaUnity