Villacaleb / slimdx

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

WM_INPUT windows message is not being processed by SlimDX.RawInput on Multiple Windows/Threads #809

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using SlimDX v.4.0.11.4.
the issue is in the function  'SlimDX.RawInput.Device.RegisterDevice', 
henceforth 'RegisterDevice'

Application.AddMessageFilter(Device.filter) is being called upon first call 
only to
'RegisterDevice' raising an issue when using more than one window/thread.

Application.AddMessageFilter(Device.filter) should be called once per thread.

Original issue reported on code.google.com by lahavl...@gmail.com on 25 Jun 2011 at 8:17

GoogleCodeExporter commented 9 years ago
I don't think this is such a good idea. Raw Input uses the Win32 UI thread, 
which requires everything to be single threaded in almost all cases.

However, the newly added HandleMessage function lets you receive the message 
yourself and pass it into the device handler, so use that to implement whatever 
you want.

Original comment by Mike.Popoloski on 8 Jul 2011 at 4:40