Simulating keypresses by creating a virtual device driver

G

Guest

Hello, I am in process of creating a motion detection method for controlling
computer games. I am creating a program that detects user movements using a
Vicon tracking system, analysing the movements and outputting keystrokes like
a normal keyboard would.

Now normally WM_KEYDOWN WM_KEYUP would be sufficient but I am trying to
create a way to control most PC computer games using this method. The most
compatible method of achieving what I am after I have been told is to develop
a seperate program which will read in the keys which my motion recognition
software has captured, and then sent it to the operating system as if an
actual hardware key on a keyboard had been pressed. Either that way or
interupt the directinput layer (but then for games which use openGL I would
have to develop a different method) the virtual keyboard is the most cross
compatible method for all games, but I have only ever done C#/C++ dev, and
this project will be C++. I've never touched driver/device programming.

Can anyone find an easier way or at least point me in the direction of a
good guide/existing product which takes data from one program and sends it to
the lower OS level to fool windows into thinking an actual physical key has
been pressed.

I know thats a long and confusing post but i've been scouring the net for a
few days with little luck, i've ordered the Microsoft Device Development book
but until I arrives I'd like to start getting clued up as to where to start.

Many thanks for anyone who can point me in the right direction
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top