← sources

Virtual gamepads in Python (Windows / Linux)

source: reddit (reddit:opensource)published 2026-11-02 05:19ingested 2026-11-03 02:41

retained text

Hello everyone,

I have been maintaining vgamepad for a couple years and thought I would promote it a bit here:

https://github.com/yannbouteiller/vgamepad

This is a small Python library that enables emulating XBox360 and DualShock4 gamepads on Windows and Linux. I have recently released version 0.2.0, which makes almost all functionalities available on both platforms and gamepads (including gyroscopes/accelerometer/touchpad/etc. on DS4).

For background, on Windows this is essentially a wrapper around the now archived ViGEmBus C++ framework (I ship a frozen version of the driver with the library), and on Linux this uses uinput. Regarding ViGEmBus, I would really like to switch to an actively maintained replacement, but I cannot take the burden of maintaining one alone...

Anyway, hopefully you find this little library as useful as I do, and I am always glad to see feedback / new contributors :)

document fetched 2026-11-03 00:39 · canonical https://reddit.com/r/opensource/comments/1xloq5b/virtual_gamepads_in_python_windows_linux