Joint to mouse?

Quick question for a TPS in a human model would i unlock the spine bones  x & z rotation and set the orientation to values recieved from the mouse or joystick?