debug
This commit is contained in:
parent
0db01b0978
commit
b86369c359
@ -6,6 +6,8 @@ func _ready():
|
|||||||
set_process_input(true)
|
set_process_input(true)
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
|
print(event.as_text())
|
||||||
|
|
||||||
if event is InputEventMouseButton:
|
if event is InputEventMouseButton:
|
||||||
if event.button_index == MOUSE_BUTTON_RIGHT and event.pressed:
|
if event.button_index == MOUSE_BUTTON_RIGHT and event.pressed:
|
||||||
last_mouse_position = get_global_mouse_position()
|
last_mouse_position = get_global_mouse_position()
|
||||||
@ -17,6 +19,7 @@ func _input(event):
|
|||||||
zoom_towards_mouse(Vector2(1.1, 1.1))
|
zoom_towards_mouse(Vector2(1.1, 1.1))
|
||||||
|
|
||||||
elif event is InputEventPanGesture:
|
elif event is InputEventPanGesture:
|
||||||
|
print("SHITOFF:",event.delta)
|
||||||
zoom_towards_mouse(event.delta[1])
|
zoom_towards_mouse(event.delta[1])
|
||||||
|
|
||||||
elif event is InputEventMouseMotion:
|
elif event is InputEventMouseMotion:
|
||||||
|
@ -52,6 +52,11 @@ escape={
|
|||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194305,"key_label":0,"unicode":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194305,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
"zoom in"={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":4,"canceled":false,"pressed":false,"double_click":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
[layer_names]
|
[layer_names]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user