diff options
Diffstat (limited to 'addons/gut/input_factory.gd')
| -rw-r--r-- | addons/gut/input_factory.gd | 16 |
1 files changed, 8 insertions, 8 deletions
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): |
