Any way to detect which Gamepad input is coming from?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By PrecisionRender


I would like to make a local multiplayer game. I was hoping to pre-bind the input actions to a Gamepad axes/button and set that to all devices, then check which Gamepad the actions are coming from in code. Is there a way to do this?

:bust_in_silhouette: Reply From: rossunger

InputEvent.device :slight_smile:

Thanks for the answer! I was hoping to avoid the _input(event) function since it’s only called if there is input, but a workaround should be easy. Thanks!

PrecisionRender | 2022-01-30 23:30