Inserted joystick processing functionality for debugging.