godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.24k stars 19.99k forks source link

[4.0 Beta 4] - Game Controller D-Pad Not Working On HTML5 Builds Windows/Linux Browsers? #68480

Open ghost opened 1 year ago

ghost commented 1 year ago

Godot version

v4.0.beta4.official [e6751549c]

System information

Windows 10/11 64Bit Edge/Firefox/Chrome/Opera / Linux Mint 21 Cinnamon 64Bit Firefox/Chrome

Issue description

Hi,

Using Godot 4.0 Beta 4 on Windows 11 Pro 64Bit v22H2. We build our game for HTML5 and tested on all Windows/Linux Internet browsers. Game controller d-pad are not working on our HTML5 built game? Only game controller buttons are working? (game controllers work 100% on PC desktop version of our game)

Hope you can fix this soon!

Jesse

Steps to reproduce

Run our HTML5 version below: https://www.newgrounds.com/projects/games/1946017/preview (game controller d-pad does not work, only buttons do)

Minimal reproduction project

Please look at our game controller code on GitHub below: LOOK BELOW (perhaps we are doing something wrong?)

ghost commented 1 year ago

Working more with the above, I'll let you know here if we get it working...

ghost commented 1 year ago

Hi,

Been working on above all day. Game controller d-pad is not working on Godot 4 beta 4 HTML5 builds.

We did manage to get left analog stick working on HTML5 so the game is playable. Hope you can fix the above soon!

You can run our HTML5 version below: https://www.newgrounds.com/projects/games/1946017/preview (game controller d-pad does not work, but left analog stick & buttons do work)

Jesse

PS: You can view our game controller source on GitHub below: https://github.com/BetaMaxHero/GDScript_Godot_4_T-Story/blob/main/InputCore.gd#L236