From f20bd89dc4a7bf14a88b1effcaa1887b29314525 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Mon, 5 Sep 2022 20:35:53 +0200 Subject: gui: split GUI into Terminal components --- addons/gut/input_factory.gd | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'addons/gut/input_factory.gd') diff --git a/addons/gut/input_factory.gd b/addons/gut/input_factory.gd index 5eb3a67..5505553 100644 --- a/addons/gut/input_factory.gd +++ b/addons/gut/input_factory.gd @@ -55,14 +55,14 @@ static func _to_scancode(which): static func new_mouse_button_event(position, global_position, pressed, button_index): - var event = InputEventMouseButton.new() - event.position = position - if(global_position != null): - event.global_position = global_position - event.pressed = pressed - event.button_index = button_index - - return event + var event = InputEventMouseButton.new() + event.position = position + if(global_position != null): + event.global_position = global_position + event.pressed = pressed + event.button_index = button_index + + return event static func key_up(which): -- cgit v1.2.3