Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emulate an HID device on windows?

I am trying to write a program that emulates a gamepad in such a way that windows recognizes it as a gamepad, but it is actually controlled by my own code.

I have tried to create a virtual COM port and try to make windows recognize it as a gamepad, but without much luck.

Does anyone know a way to do something like this, or could maybe give me some pointers on what might be worth trying?

like image 527
Joep Avatar asked Sep 01 '25 04:09

Joep


1 Answers

The HIDUSBFX2 sample driver (hidusbfx2.sys) demonstrates how to map a non-HID USB device to a HID device.

On Windows 10 there is new Virtual HID Framework (VHF) that is intended for same purpose.

like image 176
DJm00n Avatar answered Sep 02 '25 18:09

DJm00n