R.Wieser
2022-10-30 18:02:23 UTC
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
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