Hello all,
I'm doing some DirectX using DirectInput, which works nicely. But I would like to be able to get the current state of the, for instance, CapsLock key.
I came as far as the DIOBJECTDATAFORMAT struct and its flags (DIDFT_PSHBUTTON, DIDFT_TGLBUTTON and DIDFT_BUTTON), but have not been able to figure out how to use them to retrieve (or create!) a toggle key.
Hence my question :
1) Is it actually possible to access (or create) a toggle key thru
DirectX-es DirectInput mechanism ?
2) If so, how do I go about it ?
Mind you, I already got some code to create a toggle from a non-toggeling key. Thats not what I'm asking for. :-)
Regards,
Rudy Wieser
...1) Is it actually possible to access (or create) a toggle key thru
DirectX-es DirectInput mechanism ?
2) If so, how do I go about it ?
Haven't actually tested it, but isn't DInput's `GetDeviceState()` return
the same data as WinAPI's `GetKeyboardState()`? i.e. MSB = pressed, LSB = toggle.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:44:48 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,851 |