Open rpcs2 opened 9 months ago
We're depending on GLFW for joypads handling, and using this database: https://github.com/mdqinc/SDL_GameControllerDB/tree/b1e342774cbb35467dfdd3634d4f0181a76cbc89
If your pad isn't listed, you can always update the database locally by changing the gamecontrollerdb.txt file as described in the project.
Also I am updating glfw (#1612) to the latest 3.4 version released a couple of weeks ago which contains several joypad-related fixes.
We're depending on GLFW for joypads handling, and using this database: https://github.com/mdqinc/SDL_GameControllerDB/tree/b1e342774cbb35467dfdd3634d4f0181a76cbc89
If your pad isn't listed, you can always update the database locally by changing the gamecontrollerdb.txt file as described in the project.
Also I am updating glfw (#1612) to the latest 3.4 version released a couple of weeks ago which contains several joypad-related fixes.
I found the gamecontrollerdb.txt file but I am not sure how to manually change this file to update the database locally so that PCSX Redux detects my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller.
I already was in https://github.com/grumpycoders/pcsx-redux?tab=readme-ov-file#where but I did not find there any instructions about how to do this specific and particular task locally and manually.
I also was in https://github.com/mdqinc/SDL_GameControllerDB/tree/b1e342774cbb35467dfdd3634d4f0181a76cbc89?tab=readme-ov-file and I think that this is the URL that I was supposed to go to when you said "as described in the project".
Anyway from there I downloaded the "SDL2 Gamepad Mapper" application and this application did detect my SDL-0 (G-Shark GS-GP702) gamepad or game controller and after that I clicked on the "Copy Mapping String" button.
Then I returned to the gamecontrollerdb.txt file that I found earlier and appended there the string that SDL2 Gamepad Mapper stored in my clipboard after clicking on the "Copy Mapping String" button that is "03004f8e790000000600000000000000,G-Shark GS-GP702,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows".
Then I saved all the changes made to the gamecontrollerdb.txt file and then returned to the PCSX Redux "Pad configuration" window, again clicked on the "Rescan gamepads and re-read game controllers database" button and then again clicked on the "No gamepad selected or connected" but my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller still does not appear which means that PCSX Redux still does not detect my gamepad or game controller at all.
I also tried from there the "SDL2 Gamepad Tool" application which also detected my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller but clicking on it's "Copy Mapping String" button stored in my clipboard a string that is slightly different than the string that the "Copy Mapping String" button of "SDL Gamepad Mapper" did that is "03000000790000000600000000000000,G-Shark GS-GP702,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b3,y:b0,platform:Windows,"
I also appended this string to the end of the gamecontrollerdb.txt file, saved all the changes made to the gamecontrollerdb.txt file, Rescan gamepads and re-read game controllers database in the "Pad configuration" window of PCSX Redux and at last clicked on the "No gamepad selected or connected" to still not see my SDL-0 (G-Shark GS-GP702).
I even deleted the string that "SDL2 Gamepad Mapper" Copy Mapping String button made from the gamecontrollerdb.txt file to let the string that "SDL2 Gamepad Tool" Copy Mapping String button made to stay alone in the end of the gamecontrollerdb.txt file to make sure that there is no conflict or confusion between the two but unfortunately this did not solve the problem either.
I even clicked on the "Set Mapping as Environment Variable" and "Set Mapping as Environmental Variable" button of both "SDL2 Gamepad Tool" and "SDL2 Gamepad Mapper" and in the PCSX Redux "Pad configuration" window again "Rescan gamepads and re-read game controllers database" but they did not solve the problem because PCSX Redux still does not detect my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller.
What I did wrong?
Why and How DuckStation, PCSX2, SDL2 Gamepad Tool and SDL2 Gamepad Mapper detect my gamepad but PCSX Redux doesn't?
Describe the bug
I have connected my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller into my computer but PCSX Redux does not detect it at all and because of this or as a result I can not play any PlayStation game with my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller at all.
Expected behavior
I expected that PCSX Redux detects my gamepad or game controller and see the name of my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller appears in the bottom side of the "Pad configuration" window but instead I see "No gamepad selected or connected".
I clicked on the "No gamepad selected or connected" in hope to show a list and see in there my SDL-0: G-Shark GS-GP7020 but clicking on the "No gamepad selected or connected" does not show anything at all.
I also clicked on the "Rescan gamepads and re-read game controllers database" button in the top side of the "Pad configuration" window but all what this did is to clear the "Analog mode" checkbox but PCSX Redux still does not detect my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller at all.
Steps to reproduce the bug
Operating System
Windows 11 Enterprise 24H2
PCSX-Redux version
18258.20240303.2.x64
CPU model
Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz, 3696 Mhz, 6 Core(s), 6 Logical Processor(s)
GPU model & Drivers
GeForce GTX 950/PCIe/SSE2 & Version: NVIDIA 551.23
BIOS version
OpenBIOS
Options
Iso checks
Can not connect to https://redump.org/ at all
Logs
No response
Additional information
Unlike PCSX Redux both DuckStation and PCSX2 do detect my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller and they do allow me to play PlayStation games with my USB and SDL-0 (G-Shark GS-GP702) gamepad or game controller.