[v4.8.dev7] - Multiple Keyboard Support On Same Computer For A Multiplayer Game? Web HTML5 & Linux x86_64

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.

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’…).