Keyboard Input

Well, I know you can do a getc er whatever the function is, but I actually want to stream the input like a device, I'm working on a DJ program and I want to use the keyboard as a controller, and if possible, be aware of which keyboard is being used (like plugging in multiple keyboards, ie regular keyboard and then 1 or 2 of the same type of keypad usb devices). Is this possibible? Liek, an HID handler in the windows api?
I would also look into using DirectInput API as well. I know it is a lot easier on custom devices like yours. As for the Windows API, I'm sure it is possible but very intense coding and research. I'll allow someone else to elaborate on that, since I'm of little experience in that area. Sorry if I couldn't be of help.
Can't you just use GetAsyncKeyState(int vKey)
If you want to capture keyboard events just use SetWindowsHookEx with the WH_KEYBOARD_LL hook type.
Topic archived. No new replies allowed.