Page 1 of 1

Touchpanel 180 deg. relative to screen

Posted: Tue Mar 31, 2015 11:30 pm
by Delipunch
I am using a sainsmart 320x240px screen w/ touchpanel, and when I run OpenTTD, the touch panel input is rotated 180 degrees relative to the actual image: meaning when I hit exit, the cursor goes to move the window, vice versa, Y and X axes (axises?) are flipped, etc.

Here's the kicker: Xwindows is not affected!

Specs:
OS: modified raspbian supplied w/ screen
Powersupply: 5VDC @ 1A max 2.2Ah battery
Raspi Models: A+, B
more available upon request

Re: Touchpanel 180 deg. relative to screen

Posted: Wed Apr 01, 2015 12:16 am
by MarkHaysHarris777
post your code?

Re: Touchpanel 180 deg. relative to screen

Posted: Wed Apr 01, 2015 12:30 am
by Delipunch
MarkHaysHarris777 wrote:post your code?
What do you mean? The image? The programs?

Re: Touchpanel 180 deg. relative to screen

Posted: Wed Apr 01, 2015 12:34 am
by MarkHaysHarris777
The code you are using to access OpenTTD. Either the screen is functioning normally, in which case you don't have a problem, you just need to understand how the screen works, or it is malfunctioning in which case you are access the library incorrectly, or the device is broken, or your code is not working as intended because you have a logical error someplace... How would you like help?