I\'m writing a program to implement chiral scrolling on a touchpad. I have the code to read the raw touchpad data, and I have a rough idea of how I want to implement the ges