SteamOS icon indicating copy to clipboard operation
SteamOS copied to clipboard

Problem when binding controller buttons

Open slagerfin opened this issue 11 years ago • 17 comments

So i got this new gamepad (Tronsmart Mars G01) and first it seemed to work fine. After a while some upgrade messed up the key bindings. Now I am unable to change them, because if I clear all the bindings from controller menu I can't set any keys cause I wont have key for selecting key to rebind. Maybe the clear button should clear only the currently selected bind?

There still seems to be big problems when using the controller setup. Is there way to set keys to config file or is there any alternative way to set button bindings.

Keep up good work and I thank you for the great OS!

slagerfin avatar Jan 22 '15 16:01 slagerfin

Did you try opting out of beta client? This was an issue with older client beta a while back. I often have to reset controller button layout after an update and sometimes the need to opt out of beta client helped to allow editing button mapping to the actual layout of my xbox type controller (razer onza te)

Once a complete layout has been saved and uploaded there is no issue. Trying to use controller in bpm without a saved accurate layout only left joystick and x and b buttons work on controller but not as the screen prompts indicate. b button on controller works as a on screen with x button on controller working as b on screen.

This has been an issue with this controller in steamos since day one of beta release as well as the flashing led issue which also persists..

Balderick avatar Jan 23 '15 09:01 Balderick

I tried to opting the beta client, but the problem still persist. Problem came up just maybe two weeks a ago when the using beta client opted. Controller identifies as Tronsmart and I am unable to bind keys.

slagerfin avatar Jan 24 '15 11:01 slagerfin

Please recheck this issue. Bindings should be back, at least in the beta client.

mdeguzis avatar Dec 16 '15 17:12 mdeguzis

Improvement has indeed happened. I successfully bind the keys but I was unable to save my layout. The save dialog window did not highlight selected confirm button or I just was unable to select any of those two buttons.

slagerfin avatar Dec 17 '15 15:12 slagerfin

Maybe this is related to the latest beta client having issues with the Steam controller save/load/apply system they changed around. Who knows, but a hunch. Ok, thanks for checking again.

mdeguzis avatar Dec 17 '15 15:12 mdeguzis

You're welcome! Just ask if retest is needed.

slagerfin avatar Dec 17 '15 15:12 slagerfin

On second try I got it right and my controller is now working :+1:. Apparently the highlighting is not working properly. The clear all bindings button is very dangerous and annoying. :angry:

slagerfin avatar Dec 17 '15 17:12 slagerfin

I am having a similar issue (if not the same issue). I am trying to run PS3 Dual Shock controllers using Bluetooth using sixpair and sixad. The system is detecting them but the keys are unmapped. I go into the add/test menu to remap the keys. Once done, it asks to name the config and upload or not upload. I don't really get any visual cue which one is the active option. Hitting enter takes the screen away and you can play with the controller fine. But on a reboot, all the mapping is gone again.

I have tested this on Beta and non beta client on both SteamOS and ubuntu. Same issue.

So sounds more like a Steam Client issue?

mohsinhasan avatar Jan 11 '16 23:01 mohsinhasan

I am having the same problem with the dual shock 3.

Should we open a new issue or is this the right one?

Although I could pair it without sixad or sixpair. Just using the bluetooth menu on BPM worked. It gets recognized as a PS3 Bluetooth controller.

After I map the buttons and save the config, the name of the config gets applied to the controller.

After rebooting the DS3 pairs after pressing the PS button but the mappings are gone.

On the plus side I could connect the PS3 Keypad without issues.

fmiceli24 avatar Feb 27 '16 03:02 fmiceli24

Just to clarify I am not on beta.

fmiceli24 avatar Feb 27 '16 03:02 fmiceli24

@fmiceli24 I'm having the same issue with the controller and currently messing with the default keybindings to see if I can hack together a temporary solution. I'll let you know if I figure something out but I do hope for a more permanent solution soon.

Nerdy314159265 avatar Jun 05 '16 19:06 Nerdy314159265

Sure,

I've been investigating and it seems Steam stores the bindings in an environment variable. I think this is cleared when I reboot the machine.

Either SDL_GAMECONTROLLERCONFIG or SDL_HINT_GAMECONTROLLERCONFIG. Don't, have much time these days but will try to put it somewhere inside rc local so that it loads the mapping after reboot.

Can you check these variables before and after the mapping is saved?

2016-06-05 16:21 GMT-03:00 Nerdy314159265 [email protected]:

@fmiceli24 https://github.com/fmiceli24 I'm having the same issue with the controller and currently messing with the default keybindings to see if I can hack together a temporary solution. I'll let you know if I figure something out but I do hope for a more permanent solution soon.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/SteamOS/issues/262#issuecomment-223831844, or mute the thread https://github.com/notifications/unsubscribe/AQsmG0-33j_iEJo4IvsSloGUqqket-ESks5qIyG_gaJpZM4DV4FK .

fmiceli24 avatar Jun 06 '16 13:06 fmiceli24

@fmiceli24 I'll try and check those out when I have time later today and report back.

Nerdy314159265 avatar Jun 06 '16 14:06 Nerdy314159265

Great. Thanks.

2016-06-06 11:14 GMT-03:00 Nerdy314159265 [email protected]:

@fmiceli24 https://github.com/fmiceli24 I'll try and check those out when I have time later today and report back.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/SteamOS/issues/262#issuecomment-223971327, or mute the thread https://github.com/notifications/unsubscribe/AQsmGw0dAK_trNDpbFBi7SeLHxX0Lsn6ks5qJCtIgaJpZM4DV4FK .

fmiceli24 avatar Jun 06 '16 16:06 fmiceli24

@fmiceli24 I checked today and it seems neither of those show up before or after the controller is bound. I used printenv to print all the enviromental variables but there were no SDL variables at all.

However, while looking around a bit I did find something interesting inside "/home/steam/.local/share/Steam/config/config.vdf". Inside there is a listing for SDL_GamepadBinds that contains pretty much all the binds I use.

I decided to launch a game or 2 using this info and it turns out they worked just fine, as if the bindings were actually saved. So it seems like Steam is the only thing that isn't persistent through reboots.

I attempted to add SDL_GamepadBinds as an environmental variable with the settings that it was saved with but it had no effect.

Nerdy314159265 avatar Jun 07 '16 13:06 Nerdy314159265

Apparently BPM also users that config.vdf file for the controller mappings.

It is weird that it only happens if the controller is connected via BT. When connected by USB everything works just fine.

2016-06-07 10:46 GMT-03:00 Nerdy314159265 [email protected]:

@fmiceli24 https://github.com/fmiceli24 I checked today and it seems neither of those show up before or after the controller is bound. I used printenv to print all the enviromental variables but there were no SDL variables at all.

However, while looking around a bit I did find something interesting inside "/home/steam/.local/share/Steam/config/config.vdf". Inside there is a listing for SDL_GamepadBinds that contains pretty much all the binds I use.

I decided to launch a game or 2 using this info and it turns out they worked just fine, as if the bindings were actually saved. So it seems like Steam is the only thing that isn't persistent through reboots.

I attempted to add SDL_GamepadBinds as an environmental variable with the settings that it was saved with but it had no effect.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/SteamOS/issues/262#issuecomment-224285153, or mute the thread https://github.com/notifications/unsubscribe/AQsmG0ebeA4dYRMM-jQ6aYjVI8VAsp0Zks5qJXY_gaJpZM4DV4FK .

fmiceli24 avatar Jun 08 '16 01:06 fmiceli24

@Nerdy314159265 Thanks to your findings I have found a workaround for this.

  • First you have to configure the mappings and save them from SteamOS "Add / Test" menu.
  • Then you have to copy the variable "SDL_GamepadBind" from your /home/steam/.steam/steam/config/config.vdf file. Mine looks like this "SDL_GamepadBind" "050000004c0500006802000000010000,DS3,a:b14,b:b13,y:b12,x:b15,start:b3,guide:b16,back:b0,leftstick:b1,rightstick:b2,leftshoulder:b10,rightshoulder:b11,dpup:b4,dpleft:b7,dpdown:b6,dpright:b5,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,"
  • Finally you have to edit the executable that runs steam BMP (/usr/bin/steamos-session) and export the mapping you just copied into an environment variable called SDL_GAMECONTROLLERCONFIG. All this right before the line that launches steam.

This is an example of the line I added right before the steam-session launches steam:

export SDL_GAMECONTROLLERCONFIG="050000004c0500006802000000010000,DS3,a:b14,b:b13,y:b12,x:b15,start:b3,guide:b16,back:b0,leftstick:b1,rightstick:b2,leftshoulder:b10,rightshoulder:b11,dpup:b4,dpleft:b7,dpdown:b6,dpright:b5,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9," steam -tenfoot -steamos -enableremotecontrol

Hope this helps someone. And really hope Valve fixes this really old really buggy behavior.

fmiceli24 avatar Sep 03 '16 03:09 fmiceli24