Keyboard Input

Oct 21, 2010 at 9:23am
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?
Oct 22, 2010 at 8:17am
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.
Oct 26, 2010 at 4:52pm
Can't you just use GetAsyncKeyState(int vKey)
Oct 27, 2010 at 4:39pm
If you want to capture keyboard events just use SetWindowsHookEx with the WH_KEYBOARD_LL hook type.
Topic archived. No new replies allowed.