• 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.

HTML5 [Solved] Keyboard issue on itch.io

Selkione

Member
Hello,

when I try my game locally, my keyboard inputs work perfectly.
But when I export the project and upload it on itch.io, I don’t have the focus anymore and the keyboard inputs don’t work.
The mouse inputs are not affected by that and still work.

I succeeded one time to make it work by adding a line in the .js file (I put window.focus(); )
But I think I was lucky...

Any idea ?
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
This is fixed in the recent GMS2.3 beta runtimes, but had not made it to stable version yet - you can compile a build with the beta version instead.
 
Top