headless device with keyboard

  • Thread starter Thread starter Greg Brown
  • Start date Start date
G

Greg Brown

I am in the process of porting a custom device that we currently have
running on Linux to XPE. The device has a custom video display (so there
will be no desktop visible to the user) but it does use a USB keyboard for
an input device. I am looking at using RawInput so that I can be sure to
trap all the keyboard input, (regardless if my app would happen to lose
focus somehow), but it seems to be acting a little quirky. Even though I
only register for keyboard input, I don't seem to be getting all the input
(from WM_INPUT) until there is some mouse movement within my app's window.
I am doing my initial testing on a standard desktop machine, so I have a
display, mouse, etc., but it will not be included on the final device.

Any thoughts on RawInput in particular, or this type of setup in general?

Thanks,

Greg
 
I did look into a window's hook also, although I saw a recent article from
Microsoft that stated that the RawInput approach was the preferred method
(less system overhead, more immune to missed keystrokes, etc.)
 
Back
Top