Damot
30-03-2007, 04:27 PM
Hi all,
What would you all suggest is the best way of implementing user definable controls for my game?
Do I need to somehow read the complete keyboard state using DXinput when the user selects a key for left/right/up/down etc? Or do I use the form keydown event and convert that somehow?
Should I be querying dxinput.Keyboard.States?
Incidentally, can you just check dxinput1.Keyboard.States to see if any of the keys are pressed? The reason I ask is I had problems trying to check for the ' and / keys before. Any links to the correct scancodes?
Thanks.
What would you all suggest is the best way of implementing user definable controls for my game?
Do I need to somehow read the complete keyboard state using DXinput when the user selects a key for left/right/up/down etc? Or do I use the form keydown event and convert that somehow?
Should I be querying dxinput.Keyboard.States?
Incidentally, can you just check dxinput1.Keyboard.States to see if any of the keys are pressed? The reason I ask is I had problems trying to check for the ' and / keys before. Any links to the correct scancodes?
Thanks.