Skip to content

Add Virtual Mouse to Android Editor#118253

Closed
Amn4583 wants to merge 1 commit into
godotengine:masterfrom
Amn4583:add-virtual-mouse
Closed

Add Virtual Mouse to Android Editor#118253
Amn4583 wants to merge 1 commit into
godotengine:masterfrom
Amn4583:add-virtual-mouse

Conversation

@Amn4583
Copy link
Copy Markdown

@Amn4583 Amn4583 commented Apr 6, 2026

This PR introduces a new touch control for the Android editor called VirtualMouse. It aims to address several issues in the Android editor, such as:

  • Fingers obstructing the UI while tapping
  • Difficulty modifying nodes with small gizmo handles
  • Challenges when resizing control nodes
  • Issues with drag-and-drop functionality

The VirtualMouse is designed to enhance usability and provide a smoother experience for touch-based interactions in the editor. This new VirtualMouse works like a laptop trackpad allowing precise control without obscuring the target. This is also beneficial for the larger screen devices like tablets.

virtual_mouse.mp4

Gestures:

  • Single finger drag: Move cursor
  • Single finger tap: Left click
  • Single finger double tap: Double click
  • Two fingers tap simultaneously: Right click
  • Secondary finger held + primary finger drag: Drag and drop
  • Two fingers drag in same direction: Scroll (up/down/left/right)
virtual_mouse_gesture.mp4

The system is toggleable via Editor Settings > Interface > Touchscreen > Enable Virtual Mouse with an adjustable sensitivity setting. It doesn't interfere while running the games because it only works in the editor.

virtual_mouse_settings.mp4

Important Note: It is very important to disable Long Press as Right Click and Pan and Scale Gestures to avoid any gesture conflicts.

Closes godotengine/godot-proposals#14613

@Amn4583 Amn4583 requested review from a team as code owners April 6, 2026 17:59
@JekSun97
Copy link
Copy Markdown
Contributor

JekSun97 commented Apr 6, 2026

Would look good together with #116716

@welson-rodrigues
Copy link
Copy Markdown

What is the exact version? In the video, I saw it only said 4.7.dev, but we're on dev3. I plan to make a video about it on YouTube.

@m4gr3d
Copy link
Copy Markdown
Contributor

m4gr3d commented Apr 6, 2026

Closing as per godotengine/godot-proposals#14613 (comment)

@m4gr3d m4gr3d closed this Apr 6, 2026
@KoBeWi KoBeWi added the archived label Apr 6, 2026
@Amn4583
Copy link
Copy Markdown
Author

Amn4583 commented Apr 8, 2026

@welson-rodrigues Yeah it's actually the 4.7 dev3 (forked the master branch after dev3) but just shows 4.7.dev because it's a debug build. If you are interested, you can download and test the editor from my fork.

@welson-rodrigues
Copy link
Copy Markdown

@welson-rodriguesSim, na verdade é o 4.7 dev3(fork do branch master após o dev3), mas só aparece 4.7.devporque é uma versão de depuração. Se tiver interesse, você pode baixar e testar o editor a partir do meu fork.

@Amn4583 Thank you very much, I will definitely test it! Are you thinking of making it available as a plugin in Godot's assets directory, or leaving it on GitHub for forks and such?

@Amn4583
Copy link
Copy Markdown
Author

Amn4583 commented Apr 11, 2026

@Amn4583 Thank you very much, I will definitely test it! Are you thinking of making it available as a plugin in Godot's assets directory, or leaving it on GitHub for forks and such?

Right now, I am not thinking of turning it into a plugin. The reason is simple. It involves modification of complex touch gestures and the core input system. I don't even know that making this as a plugin is possible or not. For now, I am leaving it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Virtual Mouse to Android editor

5 participants