U create a zero point, where u save the cursorposition when u press for example the left mouse button.
When u created the zeropoint and pressing the left mouse button u maybe change the handling of the vehicle, i mean the steering (steeringLock handling) by the difference from zeroPointX and mousePosX
lastly u set the pedControlState.