Is there a way to emulate the arrow keys in Windows keyboard drivers?

I am currently writing a keyboard driver for Windows that provides an additional modifier and allows you to directly enter some additional characters. For example, real quotation marks (",", ", ...) and some mathematical symbols (ℕ, ℝ, ℚ, ℤ, √, ...).

Now I want to provide the arrow keys exactly that way. (alt_gr + e = up; alt_gr + s = left; alt_gr + d = down; alt_gr + f = right)

So my question is: if there are Unicode control characters for the arrow keys, which I could use in my aVkToWcharTable or possibly another. That would be very helpful.

+3
source share
1 answer

Windows, , - - , , .

NEO ( AdNW, ), , DDK, , . , , , , , , - , , .

, , . PS/2, USB-. ( USB HID, PS/2 I8042prt), " ".

DirectInput user32. , , , Keyboard.

Layout

, KBDTABLES, kbd.h. ScanCode, .

pusVSCtoVK, pVSCtoVK_E0 pVSCtoVK_E1, ( ) - . . . , VK_LEFT, S VK_S, .

pCharModifiers, , .

, pVkToWcharTable, Unicode, . . , .

, ? , key code , WM_INPUT, WM_KEYDOWN,.... Unicode, , ToUnicodeEx. .

. , . , , . , . , key code. VK_LEFT, . VK_RIGHT, ..

: , ModX + S , pVkToWcharTable , , . , , S - , . ( , ), , , .

, S key code, -, . , , .

Numpad?

, Numpad , . , Numlock . , , . KBDNUMPAD, pusVSCtoVK. , Numlock.

, , . "xxxNumpadCursor" Google. , , . KBDNUMPAD , , , , Shift Numlock. , .

?

, , ? , - , . DDK , "kbfiltr". , , , , S .

, , . , . , , . (, , .) , , , .

( , , ), . , ( ), , , . Autohotkey, , ( , ).

Update

. , . HID I8042prt . , , // . ( ), , . .

. , , 64- Vista/Win7. , , . , , ( ), , . , , . .

, , AutoHotkey. .

+3

All Articles