Various problems on Linux machines
I made a game in Java using NetBeans 5.0. It works fine on my computer, and a few other people's, but I recently found out from a Linux user that it has two problems on that OS:
The file extension capitalization, which doesn't normally matter, was causing it not to find certain files (using the constructor of an ImageIcon).
and second
The keyboard did nothing. Mouse actions worked, but not the keyboard, so the game was unplayable.
For keyboard input I used addKeyListener and in the keyPressed and keyReleased events I store a boolean to a position in an array corresponding to the key that was pressed. In some cases I also perform a special action in addition to storing the boolean.
publicvoid keyPressed(KeyEvent e)
{
int key = e.getKeyCode();// Determines the key that was pressed
kpd[key] =true;// Stores the value in the array
/* More stuff here */
}
and I had a similar section with false instead of true for the keyReleased event.
Why is it not working?

