zengqh / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

RawInput cannot distinguish between multiple input devices #311

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My main goal for using RawInput was to allow multiple keyboards to be used 
in my app. Great that SlimDX supports RawInput, but
-----
the hDevice identifier from the raw input header, which tells which 
keyboard is actually used, isn't present in SlimDX' structures.
-----
For a quick fix, I simply added an IntPtr DeviceHandle to 
KeyboardInputEventArgs and DeviceInfo, but I am not sure whether this is 
any good in your opinion.
I could put together a patch if you agree to this way of implementing it, 
or perhaps help otherwise if you have a different design in mind.
Thanks, and sorry for the long text :p

Original issue reported on code.google.com by thfabba@gmail.com on 27 Jul 2008 at 9:02

GoogleCodeExporter commented 9 years ago
I'll make these changes.

Original comment by Mike.Popoloski on 29 Jul 2008 at 3:02

GoogleCodeExporter commented 9 years ago
This is getting pushed to the November release. I'm going to have to take 
another
look at the raw input system as a whole.

Original comment by Mike.Popoloski on 28 Aug 2008 at 5:13

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by Mike.Popoloski on 12 Oct 2008 at 10:44