OpenLiberty / liberty-bikes

Real-time web based multiplayer game running on OpenLiberty
http://libertybikes.mybluemix.net
Eclipse Public License 1.0
37 stars 38 forks source link

Arrow keys dont work when you hit the 'start game' button playing locally #228

Closed hlhoots closed 5 years ago

hlhoots commented 5 years ago

Noticed that arrow control keys don't work when playing local, and you hit the 'start game' button (vs waiting for the count down clock to wait 20 seconds). If you wait the 20 seconds, the arrow keys work fine.

olendvcook commented 5 years ago

They also start working if you click anywhere on the game map or up by the party code after clicking start game, I think it's something with the window losing focus after clicking the start game button.

hlhoots commented 5 years ago

Cool - will give that a try. Thanks Olen!

realModusOperandi commented 5 years ago

Hey, what OS/browser(s) are you seeing this in? I wasn't able to reproduce this myself but I might not be trying the right combination.

aguibert commented 5 years ago

I'm pretty sure the issue here is not having browser focus, so the keystrokes aren't registering with the window at all.

Going to close this issue unless we get an indication otherwise

olendvcook commented 5 years ago

it's true that it's from not having browser focus, the issue is that hitting the start button loses browser focus which is weird.

This is happened to me on Firefox Quantum 69.0.1 (32-bit) but not chrome

(that's my current firefox version and it's been happening on it for a long time now though)

realModusOperandi commented 5 years ago

I can't reproduce it on that browser. Does your browser window actually go into the inactive state?

realModusOperandi commented 5 years ago

OK, it's Windows only. And no amount of clicking anywhere lets me actually control the bike. Something is weird, wouldn't be surprised if this is a FF/Windows bug.

olendvcook commented 5 years ago

:sadstevebalmer: you can click up by where the party code should be and then it works