fix: Fixed more input events (#442)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -84,7 +84,7 @@ func register_background(background: ESCBackground):
|
||||
"mouse_wheel_up",
|
||||
self,
|
||||
"_on_mousewheel_action",
|
||||
[-1]
|
||||
[1]
|
||||
)
|
||||
background.connect(
|
||||
"mouse_wheel_down",
|
||||
|
||||
Reference in New Issue
Block a user