Skip to content

Commit 9c29c5e

Browse files
committed
Improve 2D input controls
- Use middle or right mouse button for pan (mostly so track pads work). - Remove errant logging
1 parent 1bbb475 commit 9c29c5e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

addons/runtime_debug_tools/scripts/debug_runtime_interaction_2d.gd

+1-3
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,11 @@ func _do_mouse_movement(event: InputEvent):
8484
if event is InputEventMouseButton:
8585
get_viewport().set_input_as_handled()
8686
match event.button_index:
87-
MOUSE_BUTTON_MIDDLE:
87+
MOUSE_BUTTON_RIGHT, MOUSE_BUTTON_MIDDLE:
8888
if event.pressed:
8989
new_mouse_mode = MouseMode.PAN
90-
print("pan")
9190
else:
9291
new_mouse_mode = MouseMode.NONE
93-
print("stop")
9492
MOUSE_BUTTON_WHEEL_UP:
9593
mouse_zoom *= 1.1
9694
MOUSE_BUTTON_WHEEL_DOWN:

0 commit comments

Comments
 (0)