Advertisement

10.08.2008 at 08:24AM PDT, ID: 23797668 | Points: 200
[x]
Attachment Details

Creating a virtual game controller for DirectInput

Asked by 71M in Microsoft Visual C++.Net, Game Programming, C++ Programming Language

I'm not totally sure how possible this is, or to how low-level pulling something off like this might require.

I have a computer game  that has the option of receiving input from a controller via DirectInput instead of using just the keyboard.
The controller in question is a specific brand/model and the game will simply ignore any other controllers I have plugged into my system.

I'm thinking a bit out loud here, but I'm wondering if it is indeed possible to take another physical game controller and run its input through some sort of wrapper program that can emulate the input of this game's required controller, tricking the game into accepting input from it.

I would assume this would require the game identifying my controller as its own one on run time when it is searching, so I would assume I would have to somehow add my controller to the list of devices that DirectInput enumerates through with the name and parameters of that said controller.

I'm not sure if this is starting to reach into having to write some sort of virtual device driver and I'm hoping it wouldn't be that complicated.

Do any C++ software gurus know of such a thing and whether it's possible or not? The operating system in question is Windows XP and I would also assume Vista later on.

Thanks!Start Free Trial
[+][-]10.08.2008 at 08:27AM PDT, ID: 22670012

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.08.2008 at 08:36AM PDT, ID: 22670101

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.08.2008 at 08:44AM PDT, ID: 22670194

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.08.2008 at 08:51AM PDT, ID: 22670257

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.12.2008 at 11:50PM PDT, ID: 22700502

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.12.2008 at 11:56PM PDT, ID: 22700517

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.06.2008 at 04:44AM PST, ID: 22894298

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11.06.2008 at 05:01AM PST, ID: 22894452

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.11.2008 at 06:01AM PST, ID: 22930341

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11.11.2008 at 04:41PM PST, ID: 22935957

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628