Separate input for additional 10-key keypad,
Members - Reputation: 166
Posted 30 November 2012 - 02:58 PM
When I create my keyboard device in DirectInput, I am currently using the GUID_SysKeyboard value, which lumps both keyboards into one so that my software can't discern the source of keyboard input. Is it possible to use EnumDevices to identify the two keyboards and create separate DirectInput devices? I imagine it would be, but I'm not sure how to go about identifying each device from the DIDEVICEINSTANCE structure provided to the EnumDevices callback. I would like to make this as generic as possible so it can be used with different combinations and models/brands of keyboards.
Thanks in advance for any help or suggestions!
(Note: I posted this same question on StackOverflow)