How can I keep the mouse in one place?

Hi.
I am trying to make a shortcut combination, where the player presses ctrl+moves the mouse, in order to move a slider.

In order to do this, I need to somehow read how much the player is moving their mouse, without atctually letting the cursor move. Can anyone think how i would do this?