DInput to behave like WinAPI
Can I get DInput to behave like WinAPI does? I''d like to recieve some messages or st. similar, but on the other hand I don''t want to do a comparsion buffer and go thru it each time.
Thanks
Yup you can have your cake and eat it too...
If you''re doing DirectInput for your keyboard, just be sure to set the device''s cooperation level to DISCL_FOREGROUND | DISCL_NONEXCLUSIVE
Then you can intercept the regular win32 keyboard events in your standard message handler...(ie. for inputting text via a chat console or something)..
hth
If you''re doing DirectInput for your keyboard, just be sure to set the device''s cooperation level to DISCL_FOREGROUND | DISCL_NONEXCLUSIVE
Then you can intercept the regular win32 keyboard events in your standard message handler...(ie. for inputting text via a chat console or something)..
hth
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement