Right-button drag to change the orientation. Drag P to rotate the cube about the axis, S to adjust the position of the axis of rotation.