[3.x] Add ability to automatically choose a joystick button or axis...#47574
[3.x] Add ability to automatically choose a joystick button or axis...#47574BuzzBurrowes wants to merge 4 commits intogodotengine:3.xfrom
Conversation
…odifying a project's input settings
|
This is a nice feature, but shouldn't this be enabled automatically as long as the dialog is open? It seems a bit annoying that you have to check a CheckButton every time you wish to capture a joystick button or axis. There could be a label to denote that the user can move the joystick or press a button on it to set the value automatically. Also, pull requests should be opened against the |
I actually had it that way to start with, but the downside is that if you are in some situation where you have extraneous input, and want/need to edit the field manually, it keeps changing out from under you. Maybe too much of a corner case to worry about, but if you do end up in that situation it will be pretty annoying. I could go either way. Just explaining my rationale. |
Was looking at submitting it against the master originally, but it looks like the master is so different it isn't going to be a trivial port. I'll take a look. |
|
It just occurred to me that I could make this setting "sticky". It seems too trivial to make it some editor setting, but I could have it turned off when you open the settings dialog. Then, when you turn it on once, it remembers it was on for the duration of that settings edit "session". You can turn it back off manually, or when you close the settings and reopen them it could be set back off again. Open to options. |
Turns out this type of feature is already in 4.0, so I think it is only useful in 3.x. |
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
|
For reference, this was added to master in #44181 |
71cb8d3 to
c58391c
Compare
... when modifying a project's input settings
If you click the CheckButton "capture", you can then wiggle a joystick (or press a button) and the selection will automatically change to that axis (or button).