Giter VIP home page Giter VIP logo

Comments (8)

mattgodbolt avatar mattgodbolt commented on May 20, 2024

Keys work OK on my US laptop.

from jsbeeb.

murkle avatar murkle commented on May 20, 2024

http://bbc.godbolt.org/?disc=%7CAtarisoft%2FAsteroidsDeluxe.zip&autoboot
UK Keyboard, Chrome, Win 8.1
all keys seem OK here (no "sticking"). Shift doesn't do anything. Is he using the same disc image?
Capslock: turn left
Ctrl: turn right
[: Thrust
Space: Shield
Enter: Fire

from jsbeeb.

mattgodbolt avatar mattgodbolt commented on May 20, 2024

That's the one he linked, yes -- I wonder what's going on. I'll get his Chrome version.

from jsbeeb.

mattgodbolt avatar mattgodbolt commented on May 20, 2024

" MacBook Pro Retina 16GB (Late 2013)
UK keyboard (build-in to MacBook)

System Version: OS X 10.9.5 (13F34)
Kernel Version: Darwin 13.4.0

Safari          Version 7.1 (9537.85.10.17.1)
Google Chrome   Version 38.0.2125.104

"

from jsbeeb.

jlarcombe avatar jlarcombe commented on May 20, 2024

For what it's worth, I noticed yesterday that the same thing happens in Zalaga running in Chrome on the Mac, and presumably any other game that uses caps lock to move left. Haven't debugged it, but it's as though jsbeeb 'sees' the key being held down continuously while the system's real caps lock is enabled.

from jsbeeb.

mattgodbolt avatar mattgodbolt commented on May 20, 2024

Ah that could well be it! Thanks for the hint; though I'm not quite sure how one might go about fixing it.

My caps lock key is configured as a completely different key so I've not seen the problem :)

from jsbeeb.

jlarcombe avatar jlarcombe commented on May 20, 2024

Looking around, it seems as though this would be impossible to fix without a change to the browsers. Cocoa simply doesn't issue key up events for caps lock. They'd have to go down to a lower layer (IOHIDManager) and that would be a pain because it wouldn't come through the normal event loop. The Qt and Firefox developers have had the same problem (https://bugzilla.mozilla.org/show_bug.cgi?id=712535, https://bugreports.qt.io/browse/QTBUG-46549).

The 'Gaming' keyboard layout works around the problem in jsbeeb, of course.

from jsbeeb.

murkle avatar murkle commented on May 20, 2024

Another solution :)
http://bbc.godbolt.org/?autoboot&disc=sth%3AAardvark%2FZalaga.zip&KEY.A=CAPSLOCK&KEY.S=CTRL&keyLayout=physical#

from jsbeeb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.