So I did this (not sure if this is the most convenient way ...):
I started the thread (for the task of filling my input buffer). In this thread, I created a window for messages only (its hidden and can receive input data) with the corresponding class window.
Then the raw input devices registered.
This thread has its own message handler loop. In the WindowProc window class, I handled the inputs.
(For buffer, you can use boost: circle_buffer, it's ROCKS !: D)
In this solution, you needed a window, but it looks like you didnβt. :)
Hope this helps.
user408141
source share