zengqh / slimdx

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

RawInput: cannot gather keyboard device handles on enumeration #404

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
You added the Device property to KeyboardInputEventArgs in RawInput with 
the November 2008 release, which works nicely to identify different 
keyboards.
However,
==
there is no way to enumerate the keyboard devices before use and gather 
their device handle.
==
In my previous post (Issue 311), I suggested adding a device handle 
property to the DeviceInfo class, which still strikes me as the simplest 
way to accomplish this.

(Such an enumeration is required to provide the same behaviour with saved 
keyboard configurations between multiple sessions of the program. An add-
on-first-encounter approach would result in whatever keyboard being used 
first during runtime being keyboard 0, and so on)

Hope this makes sense. Thanks.

Original issue reported on code.google.com by thfabba@gmail.com on 14 Jan 2009 at 1:49

GoogleCodeExporter commented 9 years ago
Accepting.

Original comment by Mike.Popoloski on 18 Jan 2009 at 7:08

GoogleCodeExporter commented 9 years ago
Sorry this took so long. Raw input seems to be given the back seat whenever 
there's a
lot of stuff to do.

Fixed as of r935.

Original comment by Mike.Popoloski on 4 Mar 2009 at 7:45