add extra check for multiplayer device input
This commit is contained in:
parent
48d0318aa3
commit
dc24478423
@ -110,7 +110,6 @@ bones/46/rotation = Quaternion(-0.0181733, 2.38379e-07, 1.14098e-08, 0.999835)
|
||||
bones/47/rotation = Quaternion(-1.20807e-07, 0.993087, -0.117383, 7.85287e-07)
|
||||
bones/49/rotation = Quaternion(-0.034235, -3.57418e-07, 8.86969e-08, 0.999414)
|
||||
bones/51/rotation = Quaternion(0.403888, -2.98082e-07, -3.85178e-07, 0.914808)
|
||||
bones/51/scale = Vector3(1, 1, 1)
|
||||
bones/52/rotation = Quaternion(-0.512846, 3.82068e-07, 4.27952e-07, 0.858481)
|
||||
bones/52/scale = Vector3(1, 1, 1)
|
||||
bones/53/rotation = Quaternion(0.0772044, -1.03801e-06, -1.2885e-07, 0.997015)
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user