simphax / Touchmote

Touchmote
GNU General Public License v3.0
116 stars 31 forks source link

Flipped touch coordinate when using portrait screen orientation #52

Open thebitstudio opened 9 years ago

thebitstudio commented 9 years ago

I'm using this on Windows 7 x64. While setting the screen orientation to landscape, everything work perfectly fine. Though when setting the orientation to portrait the coordinate of the touch appear to be flipped between x and y. The cursor coordinate is still perfectly fine though.

For an example: Using screen resolution of 1050 * 1680. x = 0 is left side of the screen y = 0 is top of the screen

If I move my cursor to x=0 and y=840 then press B on wiimote (which is set to touch slave) the touch will appear at x=525 and y=0 instead.

I've tried compiled the codes so if there is a way to fix this easily please tell me.