Skip to content

Commit

Permalink
Include mouse input in device detection (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhoad authored Dec 13, 2023
1 parent a3546f7 commit db7c944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/input_helper/input_helper.gd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func _input(event: InputEvent) -> void:
var next_device_index: int = device_index

# Did we just press a key on the keyboard?
if event is InputEventKey:
if event is InputEventKey or event is InputEventMouse:
next_device = DEVICE_KEYBOARD
next_device_index = -1

Expand Down

0 comments on commit db7c944

Please sign in to comment.