-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Can't assign mouse buttons or mouse wheel to editor shortcuts #38326
Comments
Duplicate of #6648 basically, but it's more detailed. |
Yeah so I think the issue with the solutions mentioned so far is that they limit flexibility. If the button is hard-coded then people who use those for Push To Talk wouldn't be happy, as some have already expressed in those issues. This would allow for more opions, as those people could even rebind the functionality to ctrl/alt/shit + Mouse Button X in order to have both functions available to them. I will start to implement this change and keep this issue up to date if I run into any hurdles... if not, expect a PR soon :D |
@Calinou @KoBeWi So I pretty much have this done (shortcuts working - tested after assigning): Only one issue, as below. The shortcuts use I have thought about solutions and have considered:
As far as I can tell Keen to hear thoughts. |
@EricEzaM I think it would be better to make |
Bit of an update... Using keys only for shortcuts is quite deeply ingrained in the engine code... Most checks for shortcuts happen on So basically everywhere where shortcuts are read (so far only seems to be <5 classes) key input needs to be changed to check for mouse button input also. PR to come soon I hope. |
FYI reduz is against this change currently due to fundamental differences bwteen how KB and Mouse input is handled. Or at least he was several months ago when this was discussed on IRC. |
I think this is a useful feature. If it is difficult to implement within the current editor's shortcut system architecture, then work-rounds could be provided, for example, ability to create a custom/additional shortcut system. btw, what about something similar to InputMap? |
I'd find this particularly useful to rebind some rather irritating bindings that I can't change as of now. At least for my mouse, tilting the mouse wheel is bound to panning the graph editor, which happens often on accident when I try to click the mouse wheel in to pan by dragging. Often, this ends up happening: 2021-02-16.12-15-11.mp4 |
@MagdielM If this happens to you, it might be worth using dedicated software to disable the side mouse wheel buttons. This way, you won't experience this issue anymore in any software. |
I would like to set shortcut for next/prev editor tabs via Ctrl+Shift+MouseWheelUp/Down. Does this issue relative for this? |
Godot version:
All versions including v4.0.dev.custom_build.1d45a269f
OS/device including version:
W10 1903
Issue description:
Can't assign mouse button inputs to editor shortcuts
Steps to reproduce:
Editor Settings > Shortcuts > Try to set any mouse button, can't
Minimal reproduction project:
None
Some related issues:
#6366
#26999
The editor settings only allows key inputs, as shown below, where the event is cast to InputEventKey.
godot/editor/settings_config_dialog.cpp
Lines 318 to 330 in f6e29ad
I think being able to assign BUTTON_XBUTTON1 and BUTTON_XBUTTON2 would be helpful, especially for back/forward editor navigation. In order to not let people mess up the general usage of the editor, I think it may be a case of only allowing the above 2 mouse button input types to be assigned... i.e. not allowing rebinding of MB1, MB2, scroll, etc (unless they are modified...? e.g. with shift, alt, ctrl).
Making this change would be relatively simple (I think - haven't looked into it too deep), but it would require changing a decent amount of existing code within the file above, since
last_wait_for_key
would need it's type altered.Happy to work on a PR if the general consensus is that this is worthwhile.
The text was updated successfully, but these errors were encountered: