godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.07k stars 21.18k forks source link

Viewport camera won't rotate when pressing right mouse click while using a Wacom Tablet and Pen. #96227

Open renight0 opened 2 months ago

renight0 commented 2 months ago

Tested versions

This is reproducible in any project in any version of godot.

System information

Windows 11 - Godot Engine v4.3.stable.official

Issue description

Viewport camera won't rotate when pressing right mouse click while using a Wacom Tablet and Pen. The right mouse button has to be configured to one of the pen buttons to test this.

When using a mouse the viewport camera rotates when pressing and moving a mouse. So it should have the same behavior when using a tablet for navigating.

This is quite a bummer for artists that use devices like Wacom tablet for pretty much any kind of work of navigation using a computer.

This is reproducible in any project in any version of godot.

Steps to reproduce

The right mouse button has to be configured to one of the pen buttons to test this.

When using a mouse the viewport camera rotates when pressing and moving a mouse. But won't work the same way with a pen and tablet.

Minimal reproduction project (MRP)

This is reproducible in any project in any version of godot.

renight0 commented 2 months ago

I'd like to add some information to this issue... I'm not sure if I should edit the Issue or create a new one, but I think the former might be more appropriate.

Somnia Lee reported that 4.3 broke some of the Wacom tablet compatibilities which should be the root of the issue. But that is not the only issue because even in 4.2 and older versions I could not rotate the camera viewport while click and holding the gizmo in the upper right corner properly (like I can in Blender). The gizmo is also not working in 4.3 when trying to drag it with a wacom tablet and pen in Godot 4.3.

Also when I middle mouse click in 4.2 or older versions the camera view will just kind of align with the y axis and rotate in circles very fast without control (in this viewport camera angle you'd only see the top part of the objects in view).

So the solution to this is not just fixing what was done in this new Godot 4.3 update but also fixing the issues that were present in previous versions.

Borrgb commented 2 weeks ago

Have you set the correct Driver in Project Settings>Pen Tablet> Driver.windows? I've had the same issue and changing this seems to have been the solution for me.

renight0 commented 1 week ago

Hey @Borrgb, I've not been using godot much lately due to work so I can't remember what I tried to do to fix this besides turning on "Emulate 3 Button Mouse" and now my viewport navigation with a wacom tablet is working perfectly. I also just tested turning this option off and I could also navigate around my scene. Also, choosing different drivers under Project Settings>Pen Tablet> did not change anything with the tablet navigation on the viewport. The only thing that was not working correctly with any driver was the upper right viewport gizmo orbiting when pressing and dragging the pen. But that is very minor issue I guess.