Custom Hotkeys for mouse buttons

Godot Version

4.3

Question

Hi, I just wanted to ask, is there a way I can use the additional buttons on the side of my mouse to register hotkeys? I want to assign Undo/Redo to them.

You can use Mouse Thumb Button 1 and 2, of course it may not be compatible with some mice. It works for me.

That’s exactly what I want but the editor settings does not show an option to add any mouse buttons in general.


also you can use Filter by Event and use your key to select it

I guess you didn’t understand my question. I was talking about the editor hotkeys themselves, not the input map for the game. I want the mouse thumb button to work just like ctrl+z for the undo command. Thanks for the effort tho.

You’ll probably need to create a plugin for this.

  1. Use EditorPlugin.get_undo_redo for get editor undo redo object
  2. Use a script with @tool for get these buttons and handle undo/redo
1 Like

Well I’m glad I don’t have to write assembly code

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.