move stuff from gfx and input to ui (so qt joystick can access gfx context) and fix up a bunch of physics