forked from TouchScript/TouchScript
-
Notifications
You must be signed in to change notification settings - Fork 1
Remapping Coordinates From an Input Source
Erich Querner edited this page Mar 7, 2023
·
1 revision
Every Input Source has a CoordinatesRemapper property which allows you to add an object implementing ICoordinatesRemapper interface to change touch positions before they go into the system.
A Coordinates Remapper must define one method: Vector2 Remap(Vector2 input), which remaps incoming coordinates to whatever you feel necessary.
This way you will be able to change coordinates on the fly if your input device and display device are not aligned properly. This happens from time to time when you work with projection walls and touch frames or foils.