View Full Version : Using Dxinput effectively

16-04-2005, 05:49 PM
Hi everyone. What I really need is very specific control of the dxinput component. I need to register only a single keypress when I push a key, regardless of how long I hold the key down. I also cannot use the form.keypress event since it causes the dxdraw screen to skip whenever it detects keypress. Any suggestions?

17-04-2005, 01:30 AM
Why not have a boolean that is set to true when the key goes down and set back to false when it is let go?

18-04-2005, 06:39 PM
Yeah, I figured I wold to have to do something of that sort. I was just wondering if there was anything built into dxinput specifically for that purpose. I ended up using the boolean idea anyways though.

Thanks everyone.