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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.