input and gamepads

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

hello everyone,

i wanted to know which would be a good way to handle input devices
like fighting games when u play local 1v1 you can use 1 keyboard and 1 gamepad or 2 gamepads. In godot how do you differenciate which gamepad is controlling which character? and how would you assign gamepad 1 to player 1 and gamepad 2 to player 2
or keyboard to player 1 and gamepad 1 to player 2

ty.