Incorporated joystick code into client program which caused a few bugs that need to be fixed.  I may need to put joystick code into separate thread to make it work.