Input From the moblie movement

could i get the mobile device’s movement?
like move to the up,down,left,right, so i can controll the pitch and yaw param to controll the camera.
And How the tilt gravity acceleration effect the mobile movement?
I’m a newbie in ue4, thx for helping.