Var inputDown = new InputEventHandler(OnInputDown) Which worked so I figured I could do a similar thing with the USB device input. Do something based on the value of keypress ![]() Private void OnButtonKeyDown(object sender, KeyEventArgs e) This.KeyDown += new KeyEventHandler(OnButtonKeyDown) For keyboard input I had the following code. I'm a bit unsure how to do this but I have tried a few things, all of which haven't worked. I have the remote control and a USB infrared receiver. ![]() I building a WPF application and I know how to detect individual key presses but I also want to do the same with a USB device, specifically a Windows Media Center remote control.
0 Comments
Leave a Reply. |