Hello, I just noticed with the current AGS release v1.2.4 and/or most recent Win10 update, all of my games that use RetroArch or MAME, the joysticks are swapped around once the games load-up.
I have the Polycade Lux machine which has two joysticks; left (player 1) and right (player 2). In the AGS environment I can use the left joystick to move around and when loading some *.exe or Steam games, the left joystick is setup as player 1 and the right joystick is setup as player 2. However, when I click on any game that uses RetroArch or MAME they swap upon loading the game. When I click [tab] for MAME or [F1] for RetroArch I cannot move around in the environment unless I use the right joystick; the left joystick does nothing.
For Example: If I choose "Tetris & Dr. Mario" (RetroArch) as soon as I click "Play" in AGS the left joystick is inoperable and player 2 is in control. Once the Tetris game starts, the left joystick controls the far right screen (i.e., blocks) and the right joystick controls the far left screen. I literally have to remap Port 1 Binds Device Index as User 2 and Port 2 Binds Device Index as User 1 in order for the left joystick to control the left screen and the right joystick to control the right screen.
If I load the game Timber (MAME), I have to use the buttons on the right side (player 2) of the machine to enter my coins and start the game; all of the left side buttons are inoperable. Once the game loads only the right joystick operates player 1 and the left joystick operates player 2.
The emulator settings appear to be correct but in order for me to play the games, I have to swap everything around which I do not want to do. Please let me know what better solution there is vs redoing all of the controller mappings (backwards) for each game that uses an emulator.
RetroArch Settings:
Main Menu >> Quick Menu >> Controls >>
Port 1 Controls >> Analog to Digital Type = Left Analog
Port 2 Controls >> Analog to Digital Type = Right Analog
Main Menu >> Settings >> Input
Port 1 Binds >> Analog to Digital Type = Left Analog
Port 1 Binds >> Device Index = XInput Controller (User 1)
Port 2 Binds >> Analog to Digital Type = Right Analog
Port 2 Binds >> Device Index = XInput Controller (User 2)
MAME Settings:
P1 (Up, Down, Left, Right) = Joy 1
P1 Button 1 = Joy 1 A
Coin 1 = Joy 1 Back
etc...
P2 (Up, Down, Left, Right) = Joy 2
P2 Button 1 = Joy 2 A
Coin 2 = Joy 2 Back
etc...
[UPDATE 10/03/21]
Just tried to play some Steam games, Ultra Street Fighter left joystick plays as player 1, Galaga left joystick plays as player 1. Dig Dug game none of the joysticks work now whereas they did before by default.
Daughter just tried to play Tricky Towers (AGS Store) and the joysticks were swapped (backwards) around as well.
Not sure what is going on, please help...
[UPDATE 10/03/21]
I went to Device Manager and disabled both joysticks then rebooted. Once rebooted I enabled the first Joystick, restarted and then enabled the second joystick and I think that fixed everything. I tested some games (e.g., Steam, *.EXE, MAME, RetroArch) and all of them default to Player 1 (left joystick).
Thanks!