Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8298049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:37:44+00:00 2026-06-08T15:37:44+00:00

How would I go about creating a gamepad which appears to DirectInput applications as

  • 0

How would I go about creating a “gamepad” which appears to DirectInput applications as a normal game controller but the state of its controls is actually defined by software?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:37:53+00:00Added an answer on June 8, 2026 at 3:37 pm

    Write a device driver to pretend to be one.

    Specifically, Windows device drivers handle what are called Interrupt Requests via the Interrupt Request Protocol – which boils down to a wrapped up structure and a set of buffers internally in the driver.

    Now the next thing you need to know is that many drivers are actually layered, or stacked, or whichever name you want to use. So for example to write a disk driver, you might interface with the driver above it (as a disk class) but use a driver below it (scsi port, for example) to actually send commands to your devices.

    That’s how real devices work. Fake devices need to conform to the top level interface requirements, e.g. a disk, or a controller, or a mouse, or whatever it is. However, underneath they can do anything they like – return whatever values they like.

    This opens up the possibility of controlling a driver via a user-mode application and pretending to “be” a device. To send a driver messages, you can DeviceIoControl to it; then to actually get those messages you can either:

    • Stuff them in the Irp that makes up that DeviceIoControl.
    • Have the driver read them out of your process’ memory space.

    Drivers can also access \\Registry\\Machine and various other, non-user-specific non-explorer registry areas, so it is possible to communicate that way.

    Finally, there’s no saying you can’t filter existing IO, rather than make it all up via a new device. There are a great many options and ways you can go about doing this.

    If you’re going to do this, you’ll need:

    • VirtualKD or an expensive debugger cable and two PCs.
    • You probably also want to start with the references on this blog post. You’ll find that there are essentially a bazillion different names for driver code, so I’ll interpret some of them:

      • WDM = Windows Driver Model, basically the NT driver model mixed with (some of) Windows 9x.
      • KMDF = Kernel mode driver framework – drivers of the above type use this, plus additionally WDF (Windows Driver Foundation) which is a set of libraries on top of WDM to make it quicker to use.
      • UMDF = User mode driver framework – write a driver without the danger of kernel mode. If you can, use this, as kernel mode drivers that go wrong will bluescreen (in driver parlance, bugcheck) your system.

    Edit: I’m not massively knowledgeable on DirectInput – there may be a way to override the various API controls in use via DLL redirection and the like, which may be simpler than the way I’ve described.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would I go about creating a full width slideshow which keeps its height
How would I go about creating a random number generator which has a bias
How would you go about creating a java swing table, which automatically creates a
How would I go about creating a menu (complex, simple, etc - doesn't matter
how would i go about creating a many-many relationship among data objects in google
How would I go about creating a tripcode system (secure) for a message board
In relation to this stackoverflow question , how would I go about creating my
How would you guys go about creating a real-time search engine on .Net platform.
Just wondering how you would go about creating the effect as seen in the
I was curious how anyone would go about creating WCF based services using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.