Added joystick button press and release detection.
When a joystick button is pressed or released, it is now detected. The 1 and 2 joystick buttons have been mapped to KEY_X_ and KEY_Z_ respectively. Joystick-specific enumerations should be put into consideration. Let it also be noted, however, that the button mapping is different for each joystick.