Hello!
I'm trying to recognize input from my remote control so that I can use
it to control various of my installed apps (winamp and vlc for
instance). I've managed to hook things up so that I can receive
WM_INPUT to my window even when it's not in focus. The problem is that
I receive WM_INPUT much too often. I receive it when a key is pressed,
and when it's depressed (like WM_KEYDOWN and WM_KEYUP, except those
aren't being sent, I only get WM_INPUT). I also receive it from any
device connected to my system, not only my remote.
Is there a way to get WM_INPUT messages from my remote control only?
It's of course imperative that I receive messages when my window is
hidden as well. And can I make it so I receive WM_KEYDOWN/WM_KEYUP
instead of WM_INPUT, or in other ways know wether the message was sent
when the key was pressed or depressed?
This is where I learned to use raw input and hence those are the
structures and functions I use (with P/Invoke of course):
http://msdn.microsoft.com/library/de...t/rawinput.asp