fix: Fixed more input events (#442)

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
Dennis PloegerandDennis Ploeger authored and GitHub committed 2021-11-15 10:34:56 +01:00
1 parent c13fde6428
commit b626973f11
4 files changed
+30 -20

No files matched your search

@@ -269,7 +269,7 @@ func _ready():
# #### Parameters
#
# - event: Triggered event
func _input(event: InputEvent) -> void:
func _unhandled_input(event: InputEvent) -> void:
if not escoria.current_state == escoria.GAME_STATE.DEFAULT:
return
if event is InputEventMouseButton and event.is_pressed():
+1 -1
View File
@@ -84,7 +84,7 @@ func register_background(background: ESCBackground):
"mouse_wheel_up",
self,
"_on_mousewheel_action",
[-1]
[1]
)
background.connect(
"mouse_wheel_down",