Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing config approach #1

Open
wants to merge 12 commits into
base: patch-13
Choose a base branch
from

Conversation

GoldenPalazzo
Copy link

Since I strongly believe in my approach to solve the SDL naming and mapping confusion and also prevent the recent .m3u issues, I'd like you to have a look to this script. Instead of creating profiles with fixed gamepads (not working if you have more than one gamepad with the same name), generate a profile where the device name can be appended on the fly after checking at start time the list of connected controllers.

Supports also switching Wiimote setup (only Wiimote, Sideways Wiimote, Classic Controller and Wiimote+Nunchuk at the moment).

With this, the P1 will also be able to quit the game by pressing Guide+A+B

Of course we still need to address keyboard configurations, but I think gamepads have the priority at the moment.

==== THE FOLLOWING HAS BEEN WRITTEN BY COPILOT (I wanted to try it out, and it seems it's working fine)

This pull request includes significant changes to the Dolphin emulator configuration and joystick mapping scripts. The main focus is on introducing a new Python launcher script for Dolphin, updating the emulator configuration in dolphin.sh, and enhancing the joystick mapping logic in emulationstation/configscripts/dolphin.sh.

Emulator Configuration Changes:

  • Updated the configure_dolphin function to use dolphin_launcher.py for launching games, and adjusted the emulator entries accordingly.
  • Replaced the hotkey remapping script dolphin.sh with dolphin_launcher.py.

New Python Launcher Script:

  • Added dolphin_launcher.py which handles game launching, controller configuration, and hotkey management. This script uses SDL2 for game controller detection and configparser for managing configuration files.

Joystick Mapping Enhancements:

  • Introduced temporary configuration files and directories for GameCube and Wii controllers in emulationstation/configscripts/dolphin.sh.
  • Enhanced the map_dolphin_joystick function to support both GameCube and Wii controllers, including new key mappings and translation logic for input values. [1] [2] [3]
  • Updated the onend_dolphin_joystick function to handle the new configuration files and apply additional joystick calibration settings. [1] [2]

@GoldenPalazzo
Copy link
Author

If you like this concept and want to modify your existing pull request, let me squash before all my commits in one so there won't be too many commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant