View Single Post
Old Jun 23rd, 2005, 8:02 AM   #5
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
I believe the purpose of DirectInput is to bypass the Hardware Abstraction Layer entirely, apart from some kernel mode hooks (multimedia keyboard buttons, Ctrl+Alt+Delete etc), for the sake of performance, as DirectX manipulates drivers directly as opposed to through the OS. Hence the odd results using GetKeyboardState which is probably part of the application layer (user32.dll or something).
Rory is offline   Reply With Quote