Raw input without RelativeMouseMode/RelativeMouseMode without confined cursor

RelativeMouseMode seems to be the only way to enable raw input, so i’m wondering whether there is another way to enable raw input by itself, or if there is a way to enable RelativeMouseMode without confining the cursor to the window.

note: By raw input i mean that the mouse movement is exactly as the physical mouse movement, no acceleration, no smoothing, etc.