-
Notifications
You must be signed in to change notification settings - Fork 38
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
Linux Controller Linux update #212
Comments
Awesome, that's how it should be if it doesn't know the mappings for your controller. In the terminal, it should show the product id for your controller. If you want, you can give me that number together with the mappings for your controller. Just click a button on this screen and then press a gamepad button on your gamepad to see which is which. Would be great if you could send me the mappings for your controller, then I'll add them to the game :) |
DS4 Controller |
Logitech F310 |
When I went to do this with a DS3 it shows the number as just 1. Does that seem correct? |
Wow thank you, that's seriously awesome. DS3 with productId 1 is weird though, because it says "1" is your DS4 controller seems to be correct (09cc is the hex value and it's therefore a DualShock 4 [CUH-ZCT2x]) Logitech is hex c21d F310 Gamepad [XInput Mode], seems to be correct too. I'll add those mappings for sure into the game. Thank you so much! |
Oh, and by any chance, would you have the mappings for right stick / left stick / dpad too? You just have to check the 4 directions for each. Only if you got the time though :) |
F310 |
DS4 |
The DS3 is connected through bluetooth. It may need to detect the id in a different way. Also do you want Xbox one bindings? |
Hm, if SFML (the multimedia library Cendric is based on) can't get it from the wireless controller over xInput or whatever it uses, it would get difficult. For the XboxOne bindings: Yeah, would be cool, I got them already in the game but it would be good to see whether they're different for linux. I heard some axis is inverted somewhere. does the game recognize your XboxOne and already apply the mappings? |
Thanks for the catch, I fixed it right now and will upload it to Steam soon. What do you mean with the XboxController does not detect the correct buttons? |
When I say say they are not correct I mean that you said you had the bindings in for the xbox controllers, but it appears that the configuration did not carry over to Linux. Left Stick Right Stick Dpad |
Xbox One Controller Left Stick Right Stick Dpad |
Awesome! Yeah I do have several mappings defined for Xbox controllers, but there are a lot of controllers out there which I did not include yet. Product Id 733 (Xbox One Controller (Firmware 2015)) and 739 ( Xbox One Elite Controller) were not mapped yet, but according to the linux list, they are indeed xbox one controllers. These are the ones defined for now, including other Xbox One controllers: https://github.com/tizian/Cendric2/blob/master/include/Enums/GamepadProductID.h I'll add yours as soon as possible. The DPad issue seems to be a bug on SFML with Linux, I'm going to ask in their Forums. It is not critical for cendric though, as the DPad does not have to be used to play the game. Thank you again for your help! |
Build is live on Steam. Does it work for you? |
So for the most part the xbox bindings are correct. The Dpad up and Dpad down are flipped. I changed the configuration for dpap up to be down and dpad down to be up for movement 2 options and it worked like a charm. |
Flipped them for Linux, which means that you will probably have to reset them again or configure them as they were. But thanks again and I hope you can now finally enjoy the game ;) |
Do you already have xbox 360 game pads configured for linux? I have yet to start the game on my home theater pc, but I am using 360 pads on it. I will work on testing it on there next. |
I do have some configured, but I'm not sure whether the mappings are the same on linux. will gladly add them if you try them out and they're different or even new. :) |
on linux the DS4 buttons are displayed wrong also when i use multiple controllers i dont have the ability to switch without unplugging a controller |
I wonder whether that's a different DS4 controller model, as I used chui2ch's mapping for Linux & DS4. Do you know the exact model you're using? Also, yes, only one controller is supported, the first connected one. I don't intend to change it, because it would mean looking for input on all possible slots - and who would use more than one controller for a singleplayer game? ;) |
Sony changed the ds4 at some point and the new ones have a different ID. As far as I know I have one of the older controllers. |
i must have a newer model then |
@eiiiiix To include your mappings, I would need to know the product id of your gamepad. You find example values here for gamepads that are already mapped: |
@Ironbell sorry my laptops cooling fan kinda exploded and wrecked the inside |
@eiiiiix That's weird, because @chui2ch also gave me mappings for Linux and that specific controller, https://github.com/tizian/Cendric2/blob/master/src/Controller/GamepadMappings/DualShock42Mapping.cpp#L51 would that mean the mappings are different on different linux systems but with the exact same controller? holy^^' |
im using Solus 4.9 |
I wonder if the LSI that solus uses could be causing an issue. Have you tried turning ot off and using the steam run time? |
I just tested the game with the update, and now all the buttons are labeled as B1, B2, B3, B4 etc. It no longer shows the play station buttons, or the Xbox A,B,X,Y buttons.
The text was updated successfully, but these errors were encountered: