Rotating PC Camera with Android Input

Hey developers, the idea is simple. I am trying to rotate the camera of PC project with android tilt input. Somehow I want to connect Android to PC with USB and read the inputs to rotate camera. Can somebody help me? Thanks.