![]() Install the python-uinput package that the script relies upon: Sudo cp shanwan-joystick.py /opt/ShanWanTwin_2-4Ghz_Linux Sudo mkdir -p /opt/ShanWanTwin_2-4Ghz_Linux Put the driver script in the correct location: Get to the command line of your Raspberry Pi, either on your TV or remotely through SSH.ĭownload the Shanwan Joystick driver script and the startup script: See the following images:ĭo the following steps (text in code format means run that command on your Raspberry Pi's command line): My Python script splits the controllers into two separate ones where the analog sticks are completely separate between controllers. This isn't what we want, because player 1 would be able to control player 2 and vice versa by using the analog sticks. So pressing up on the first gamepad's left analog stick is equal to pressing up on the second gamepad's analog stick, and vice versa. These 4 axes are shared between the analog sticks of both controllers. The problem we have is that it only detects 4 axes for the analog sticks instead of 8. By default, linux detects the dongle as a single combined controller, as shown in this image: A single USB dongle is used to control two separate controllers. Here's a Noobs guide to getting the ShanWan Twin USB gamepads working properly on Retropie.įirst a little explanation. ![]() Would be nice to add the noob's guide to readme from this reddit post
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |