Grabbing touchscreen input privately

Is there a way to directly use a touchscreen as a private device in a patch, so it is not affecting Windows? In effect to directly get the touch/mouse data from a specific HID without Windows getting it? I suspect it will involve some kind of driver, but I have not turned up anything yet.

I’ve found that when I try to remotely access a machine that is being used by the public, it is impossible to do anything as the cursor is constantly getting stolen. Even when I’m doing development it’s obnoxious.