Delipunch
Posts: 10
Joined: Tue Mar 31, 2015 11:21 pm

Touchpanel 180 deg. relative to screen

Tue Mar 31, 2015 11:30 pm

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

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Touchpanel 180 deg. relative to screen

Wed Apr 01, 2015 12:16 am

post your code?
marcus
:ugeek:

Delipunch
Posts: 10
Joined: Tue Mar 31, 2015 11:21 pm

Re: Touchpanel 180 deg. relative to screen

Wed Apr 01, 2015 12:30 am

MarkHaysHarris777 wrote:post your code?
What do you mean? The image? The programs?

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Touchpanel 180 deg. relative to screen

Wed Apr 01, 2015 12:34 am

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?
marcus
:ugeek:

Return to “Troubleshooting”