Re: [GD-General] Key handling revisited
Brought to you by:
vexxed72
From: Erwin de V. <er...@vo...> - 2002-02-11 22:37:12
|
> The only crossover between the two is when the user is defining their keys. > Then you want to find what is printed on the top of the key that the > "gamepad" has pressed down. Fortunately you can assume that when they are > being defined, the user will be pressing exactly one key at a time, so just > watch both systems to see which WM_CHAR-like message corresponds to which > keypad keydown. You can also get the name of the button through Directinput. We used that in our game for key defining (dont use it for text input!!), but we've seen some really strange names on some systems. All caps, different naming styles for the arrow keys, and more of that nonsens. Though i havent looked into it deeply it appears to depend on a lot of things. Hope it helps. Erwin |