Mapping Touch Input

I’m trying to set up a touch screen with my device. It works fine most of the time, but when I plug in my secondary display (non-touchscreen) the touch-input goes weird and tries to span both displays. Is there any way to map the touch input to just my primary display?