This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes


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?

Godot version 3.4.1
in Engine by (125 points)

1 Answer

0 votes
Best answer

InputEvent.device :)

by (1,346 points)
selected by

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!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.