read input from joystick 1 and 2. Closes #3.