Problem with 1 legit ps3 controller and not another
-
@Efriim no I legitimately have 7 controllers hooked up including one ps3 controller. However one always will connect as controller 2 and one will connect as controller 6. But only one ps3 controller at a time. And no i dont have xboxdrv on. My biggest concern is why one of them has screwed up controls only in emulationstation. And why it doesnt work wired in emulationstation. So odd.
-
@edmaul69
Search this file for the matching inconsistencies
\configs\all\emulationstation\es_input.cfgAnd try evtest on the /dev/input/event#s for the matching device.
If neither reflect any of the problems, then I would guess it is because there too many controllers for ES binary to parse.
-
@Efriim ok i just fixed it. Somehow i had an older es_input.cfg that had a lot of controllers i had deleted out before a while back when i found out it had an entry limitation. I never thought about it because it never would accept a controllers settings before if i hit the limit. This one did. But it made it wonky. So i removed all the old no longer owned controllers i had in it and re-set this one up in emulationstation and it is fine. Thanks for reminding me of its limitations even if it wasnt actually the controllers i had hooked up that was the issue.
-
@Efriim so a question. All ps3 controllers now have their own config entry in emulationstation with separate long as hell guid numbers. For my c64 mini i need to know the guid to set up controllers that arent already configured to manually set one up. Do you know a command i can type to find out a guid #?
-
@Efriim oh and thank you for the help.
-
@edmaul69
https://askubuntu.com/questions/366994/how-to-identify-game-controller-for-sdl2-in-ubuntu
the second answer obviously. -
@edmaul69 You can re-use the GUID ES assigns in the
es_config.cfg
- it's per controller model. There's a whole list you can compare and find your controller at https://github.com/gabomdq/SDL_GameControllerDB/blob/master/gamecontrollerdb.txt. -
@mitu the problem with the es guid is its only on my ps3 controllers. I will look at all this info to figure out how to get a guid for my dolphinbar. Thanks guys.
-
@edmaul69
To take the fun out of what was posted, here is theexecutable binary that was made from parts of the SDL code. It is explained better in the link. -
@Efriim thanks.
-
This post is deleted! -
This post is deleted! -
@Efriim ok there is something im not getting. The second answer says compile with
gcc -o sdl2-joystick sdl2-joystick.c `pkg-config ––libs ––cflags sdl2`
Then it says save following as sdl2-joystick.c..... So i stuck this in /home/pi and compiled. Now what?
-
@edmaul69
Save the filesdl2-joystick.c
with the c code copied to it. Then compile it with gcc. -
@Efriim i did that. I dont know what to do after that to get the guid.
-
@edmaul69
After the code is compiled; with a controller plugged in; run the executable./sdl2-joystick
.If there is no controller plugged in there won't be any output
-
@Efriim luckily i dont have to run anything. i found out all the controllers you have plugged in shows their guid in the es_input.cfg file. thanks for all the help.
-
@edmaul69
the output looks like this050000004c0500006802000000810000 "Sony PLAYSTATION(R)3 Controller" axes:6 buttons:17 hats:0 balls:0
where the first segment is the GUID
-
@Efriim so running ./sdl-joystick i come up with this for the dolphinbar:
03000000790000000318000011010000 "HJZ Mayflash Wiimote PC Adapter" axes:4 button s:12 hats:1 balls:0
so this and another mayflash wii adapter i have when i add them to the gamecontrollerdb.txt, the hats dont work. i set the hats exactly like other hats in the file. not sure if i am doing something wrong. i removed the second analog stick do to the c64 mini emulator duplicating the sticks.
03000000790000000318000011010000,HJZ Mayflash Wiimote PC Adapter,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b1,guide:b11,platform:Linux,
-
@edmaul69 I haven't looked at gamecontrollerdb.txt since I back when I used lakka. I got to take a nap though but I'll get back on to this, maybe you gotta look deeper in the system
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.