Hi all,
I am having a problem with a
java game I have made, where some users are reporting that they can't play because the game won't recognize keypresses. It seems that the users who are reporting this are exclusively using either Mac or, once, Ubuntu. The game runs on both desktop and as an
applet but it's only available right now as an applet.
I have tested the game with four different browsers (Chrome, Firefox, Safari, IE) from Windows 7 and the first two from Windows XP. I cannot replicate the problem because I do not have a Mac to
test from (although it just occurred to me that with some effort, I may be able to secure a Linux machine). At any rate, I cannot provide all of my code (it's pretty large anyway, I doubt anyone would want to comb through it) and it's rather difficult to "dumb down" the problem because as I said, I cannot replicate it myself. I will try, but in the meantime I'd really just like to put out feelers for whether anybody has encountered this sort of thing before? (So please, no insisting that you can't help me without my posting code. Right now, I'm just hoping there's somebody who doesn't need the code; who reads this and says, "That happened to me!" I will provide code as soon as I am able.)
To reiterate, the problem appears to be that the KeyListener, which works fine on desktop & every browser I can test it on from Windows, fails when run as an applet from a Mac, on at least Firefox and Chrome, presumably Safari too. It has not been tested as an application on a Mac. At least one person has reported it failing from Ubuntu.
(If it helps, I have MouseListeners all over the place that *are* working, including in the class whose KeyListener is failing).