RAWINPUT.Keyboard: NUMLOCK=ON 时如何检测方向键?

RAWINPUT.Keyboard: How to detect arrow keys when NUMLOCK=ON?

NUMLOCK=ON

按键ARROW_UP按下:

data.keyboard.MakeCode = 42;
data.keyboard.VKey = 255;
data.keyboard.Flags = 2;
data.keyboard.Message = 256 (WM_KEYDOWN)

按键ARROW_DOWN按下:

data.keyboard.MakeCode = 42;
data.keyboard.VKey = 255;
data.keyboard.Flags = 2;
data.keyboard.Message = 256 (WM_KEYDOWN)

按键ARROW_LEFT按下:

data.keyboard.MakeCode = 42;
data.keyboard.VKey = 255;
data.keyboard.Flags = 2;
data.keyboard.Message = 256 (WM_KEYDOWN)

按键ARROW_RIGHT按下:

data.keyboard.MakeCode = 42;
data.keyboard.VKey = 255;
data.keyboard.Flags = 2;
data.keyboard.Message = 256 (WM_KEYDOWN)

NUMLOCK=ON时如何检测方向键?

添加标志:RIDEV_NOLEGACY 并过滤 VKey == 255

的消息