add extra check for multiplayer device input
This commit is contained in:
@@ -46,7 +46,11 @@ func _unhandled_input(event: InputEvent) -> void:
|
||||
var mode := Inputer.get_event_mode(event)
|
||||
if (
|
||||
not input_mode_is(mode)
|
||||
or (_input_mode == Inputer.Mode.CONTROLLER and event.device != _device_index)
|
||||
or (
|
||||
Referencer.players_count > 1
|
||||
and _input_mode == Inputer.Mode.CONTROLLER
|
||||
and event.device != _device_index
|
||||
)
|
||||
):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user