-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keys for Asteroids Deluxe don't work #29
Comments
Keys work OK on my US laptop. |
http://bbc.godbolt.org/?disc=%7CAtarisoft%2FAsteroidsDeluxe.zip&autoboot |
That's the one he linked, yes -- I wonder what's going on. I'll get his Chrome version. |
" MacBook Pro Retina 16GB (Late 2013)
" |
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. |
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 :) |
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. |
Now jsbeeb will pop up a warning on Mac OS X. It seems intractable (have asked pals at Apple for help but don't expect much). Closing as "not planned" as I can't fix it generally. |
[from the author! yay] : "The only trouble is the keys don't quite work properly:
Ctrl turns right
Caps Lock turns left continuously when enabled but I think holding Shift should turn left - I can't quite remember.
] is thrust but I'm not sure that's right
...I've only tried it in Safari and Chrome on a MacBook with UK keyboard layout though. Elite and Defender seem to work OK.."
The text was updated successfully, but these errors were encountered: