The calculation of cursor position and orientation on outputs rotations other
than 0° and 180° was faulty.
This patch fixes both.
Just tested the patches with my test device. Works okay. +1 on the series, haven't looked at the code just yet.
A similar patch to this one will be necessary for touch since mouse works but touch is off.