Closed theosirian closed 3 years ago
Hey mate, thanks for the contribution!
At the moment I'm currently refactoring the entire Menu system in the Switch application to make implementing extra options and configuration screens easier.
I agree having the controller stuff on a separate menu is a good call.
When I am done refactoring (which was going to lead to a v0.8 bump) I will attempt merging your changes into the repo and see how it goes from there.
Cheers!
I could not get DS4 working on my computer, and I've been wanting to play with Switch development for a while, so I took the opportunity to try and contribute with this project, since this functionality seemed straightforward to implement.
I refactored
VirtualController
into an abstract class and added two concrete implementations,DS4Controller
andX360Controller
.There's now another configuration screen with the option to choose between X360 and DS4 emulation.
I also added the option to invert the AB and XY button map, don't know if it works better as an option in the stream configuration or as 'runtime' button combination like switching between mouse and gamepad.