DriverZone Forums

Full Version: Creating a fake input device driver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi to all

Does anyone know how I can create a fake device driver, so that I can generate myself input data through an application and make the OS believe that they come from an existing physical input device.

Actually, I don't really plan to generate the input data, but rather receive them through a remote machine and feed them into the local machine, like being generated in the latter.

Any information is acceptable (guidelines, sample code, links etc.)

Thanx
First: Please don't cross-post.

Second: It depends on what operating system you're doing this in, and how much experience you have in this sort of thing. Have you ever written a C program before? That would be a good starting point. In Linux, input and output can be piped around, even to different computers (over a network for instance).
Hi again

Thanx for the prompt reply.
What do you mean by cross-post? I really don't know and I'm sorry I did such thing. Please clarify this to me so I won't do it again.

You're right that I ommited some usefull info. First of all, I am building on Windows XP. Secondly, I have good experience in C and in using pointers, if this is what you mean.

But, let me be more specific on what I am trying to do, in case this will help. I want to make a Game (for which I don't have any info regarding its code) to see a mouse or a keyboard input that comes from another machine. To achieve this, there are two possibiities. Either I will fool the DirectInput (which the game uses) or I will fool the game itself. But for both of them I don't see any other way than building a driver for a non existing input device through which I can pass my inputs. Am I right, or I miss something?

Also, I am thinking of using raw input rather than DirectInput.

Thanx again
Oh! I suppose that cross-post is when I post the same message in various places in the forum.
I apologise. I just didn't know which was the right place to post my question. Thanx for deleting my other posts.
Did anything ever come of this? I'm looking for a similar solution.
Reference URL's