Custom Shift Lock

Does the right mouse button need to be held down to turn the screen, when doing this?