Sign in to follow this  
frost-byte

Keyboard Input not Working in Chrome

Recommended Posts

I'm using melon 6.3.0 and I'm self hosting my game.
If I run the game via Firefox, it works just fine. (I've also tested MS Edge and the latest version of Opera, they also work)

However, when using chrome, the keyboard input acts as though it is 'stuck'.  If I push one of the keys I have bound for movement to the left (A or the left arrow),
the game behaves as though the key is still pressed even after it has been released.  This makes it impossible to move to the right, as the game no longer seems
to respond to pressing D or the Right arrow key.  However, I can still  press the spacebar and the player shoots.

Share this post


Link to post
Share on other sites

Hi, using Chrome 71 (on macOS) and this online example also using version 6.3 (http://melonjs.github.io/melonJS/examples/platformer/) I'm not able to reproduce your issue. Are you doing anything special than just a html page or any plugin ? note that a similar issue has been reported with the Evernote plugin "stealing" user inputs, see here : https://github.com/melonjs/melonJS/issues/963

if not, would you be able to build a minimal version/build of your game and share it ?

Share this post


Link to post
Share on other sites

You are correct, just before reading your post I went and disabled my plugins and I can indeed confirm that the Evernote plugin is causing the issue.
Here's a link to the game, still a work in progress: Xinvaders

I have a few other different issues that I'll post in another thread.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.