Original Post
hi guys! I'm coding a small shoot'em up game just for fun (visual studio 2008, c++, direct3d 2009 sdk, vista/xp). I have a quick question about receiving input from keyboard: what shall I use or what do you use? I've used directInput for a while but I've read it's not the correct/best way to handle input with keyboard (http://www.gamedev.net/community/forums/topic.asp?topic_id=459267) and I also have had some problems with usb keyboards using DI (if I press 2 buttons everything goes well, but if I press a third button the direction of my ship won't change. Quite strange, if I switch to a PS/2 keyboard the third button is recognized and processed and the ship changes direction as I expect. The whole bug affects both XP and Vista). On the other hand I've tried WM_INPUT (rawInput) and WM_KEYDOWN too, but they both share some "latency" problem which leads to some hard smoothness issue: http://www.gamedev.net/community/forums/topic.asp?topic_id=348728 "How can I achieve smooth, realtime keyboard input? I want input that is as sensitive as a gamepad and shooters like Quake. " I'm looking for a solution (make DI run on USB keyboards, obtain smooth movement with raw input, use a totally different API, make my own keyListener...) What would you use? What would you suggest? Where am I wrong? Thanks in advance! dav