Game Development Reference
In-Depth Information
Customizing the input and settings page
Just about every modern game lets the player customize the input according to their own
preferences. This recipe will rely on jMonkeyEngine to do the work for us, and we will use
Nifty GUI as a visual aid. We'll use
RawInputListener
to work out which keys have
been pressed and divide them between key codes and characters using the
Keyboard
class.