How to assign the rotation of a hinge joint by Y mouse inpout

I have tried just about everything to get a a hinge joint to reflect the movement of the mouse Y axis input. basically, when the mouse stops the hinge motor stops as well. or something similar.

Nm Got it! Use the joints target position property mapped to the vertical Mouse input axis!