AndersMalmgren / FreePIE

Programmable Input Emulator
650 stars 144 forks source link

Vigem plugin #154

Closed drowhunter closed 1 month ago

drowhunter commented 6 years ago

As you may or may not be aware, there is a new gamepad emulation framework out that is an open source replacement for the scpBus driver that many projects are using to emulate devices such as the xbox 360 controller. (XOutput plugin for example)

Vigem takes it one step further and can emulate the dual shock 4 and xbox one controller(currently experimental) and may support many more in the future

see here for project and installation instructions https://github.com/nefarius/ViGEm I have written a plugin for Freepie that integrates the VigemClient framework.

With this plugin I have been able to successfully replicate the XOutput functionality and we can now emulate the dualshock 4, which i have tested with ps4 remote play with an xbox controller using this script

vigemtest.zip

the basic idea is that you can do something like this dualShock[0].up = xbox360[0].up or xinput[0].up = keyboard.getKeyDown(Key.UpArrow); ` Only minor caveat is that the Vigem Library uses .NET 4.5.2 and i was forced to update from 4.5. I don't know if this is a problem.

FlaminSarge commented 3 years ago

Is there any way to make this a standalone plugin (as in https://github.com/dschu012/XOutputPlugin ) instead of as a change to core FreePIE?