• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

SOLVED Game in iframe doesn't receive/react to keyboard input

T Spoon

Member
We're uploading some student projects to display in an iframe on our website. As of recently, we're having trouble with our new uploads; the games don't react to any keyboard input, making them unplayable (example here). Old games are working fine (example).

Does anyone have any idea on how to get this to work? The iframe seems to get activated when clicking on it judging by the messages in the browser console.
 

TsukaYuriko

☄️
Forum Staff
Moderator
After clicking inside of the game area, does the game respond? You may need to interact with the game (read: click on it) for input to be accepted and sound to be played.

Potentially also relevant:
 

T Spoon

Member
Potentially also relevant:
Thanks, this was the right pointer. Can't believe they haven't fixed this in 2 releases.

This solution seemed to be the cleanest one to me: https://github.com/Kodiqi/WindowFocus
 

TsukaYuriko

☄️
Forum Staff
Moderator
Please file a bug report so that this issue can be tracked and fixed. Note that the more reports the developers receive regarding the same issue, the more likely they are to fix it sooner.
 
Top