Godot Version
v4.8.dev7.official [c971f93e7] - CachyOS KDE Plasma x86_64 Linux (O.S. of the Year, Again!)
Question
Does current Godot Engine v4.8.dev7 support multiple keyboards on the same computer?
Asking because we are working on a multiplayer game now.
Our target platforms are: Web HTML5 and Steam(Linux x86_64)
Let us know, thank you!
Savant Savior
“TCGM” Alpha 4 Teaser Trailer
Not currently, 4.7 added ground work for it to be implemented later if desired; but it also depends on the operating system, I’m pretty sure Windows does not support this, and I’d be very surprised if any web browser did either.
master ← Nintorch:inputevent-keyboard-mouse-ids
opened 06:32AM - 14 Feb 26 UTC
Closes https://github.com/godotengine/godot-proposals/issues/7161
Closes https:… //github.com/godotengine/godot/issues/23439
Supersedes https://github.com/godotengine/godot/pull/114377 (if this PR doesn't break compatibility)
And as pointed out by Calinou in https://github.com/godotengine/godot-proposals/issues/7161#issuecomment-1606969263 , this PR also reserves IDs for multiple keyboard/mice support in the future, if we ever plan to support that.
Well ok…
Is it possible to have two people play the game on the same keyboard?
Would need:
4 x direction pad (D-Pad) keys
2 x action buttons keys
Let us know, thank you!
Yes that is very possible, you only need to define different keys for each player such as WASD for player one and arrow keys for player 2.
Ok…
Last question:
Not all keyboards are setup for WASD.
Talking about non QWERTY keyboards.
How can I solve the above?
Thank you.
Godot can map to physical locations of keys, I think it’s the default- this way you assign keys as they appear on a QWERTY keyboard and it will work for all other keyboards.
Just map the local equivalent (my keyboard is French ‘AZERTY’, so I would map ‘ZQSD’ to get the same ergonomie as US or UK ‘WASD’…).