Skip to content

Commit

Permalink
fix: Fixed more input events (godot-escoria#442)
Browse files Browse the repository at this point in the history
Co-authored-by: Dennis Ploeger <[email protected]>
  • Loading branch information
dploeger and dploeger authored Nov 15, 2021
1 parent b02dcae commit 7981941
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/escoria-core/game/core-scripts/esc_item.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion addons/escoria-core/game/inputs_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func register_background(background: ESCBackground):
"mouse_wheel_up",
self,
"_on_mousewheel_action",
[-1]
[1]
)
background.connect(
"mouse_wheel_down",
Expand Down

0 comments on commit 7981941

Please sign in to comment.