Fixed bug in gamepad dpad processing, removed old unused trackball code, random 64-bit fixes