Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Gamepad permission in embedded HTML5 game

A topic by R Adamson created Aug 30, 2021 Views: 194
Viewing posts 1 to 1
(+1)

Hi,

In my game that I developed with GDevelop 5, in the embedded HTML5 version of the game, gamepad inputs and whether or not a gamepad is attached are detected, but what type of gamepad is being used (ie: Xbox, PS4, Steam, etc) is not detected. This causes gamepad-specific tutorial text not to be updated appropriately when a specific gamepad is used. I have queried this issue on the GDevelop support board, and it was suggested that the following permission statement be added to the game page's iframe tag:

<iframe allow="gamepad" src="https://mygame.com/"> </iframe>

Would it be possible to implement this, either directly or via a customization option for embedded games (GDevelop 5 games specific option maybe)?

For reference my game is here: https://beth-a.itch.io/landshark

Thanks :)

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.