Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touchscreen Values incorrect on PLATFORM_PANDORA #2

Open
pokeparadox opened this issue Jun 18, 2011 · 2 comments
Open

Touchscreen Values incorrect on PLATFORM_PANDORA #2

pokeparadox opened this issue Jun 18, 2011 · 2 comments

Comments

@pokeparadox
Copy link
Owner

It seems that current TS code for Pandora(not SDL_INPUT version) reports TS coords of the physical screen, and thus, if the application doesn't use the full 800x480 screen in fullscreen, the coords are wrong!

SimpleJoy needs to compensate for Window offset on screen and for lower than 800x480 resolutions!

@foxblock
Copy link
Collaborator

Is that maybe related to this: http://blogs.distant-earth.com/wp/?p=293 (and thus can be fixed by the workaround described there).
I recall LemmingsSDL (using a 640x480 resolution) had the same problem when one moved the cursor outside the bounds of the app, but it was nicely fixed by the above workaround.

@pokeparadox
Copy link
Owner Author

Well this fix also needs applying, but this is actually a different bug.
This bug is related to tslib. Calaculating the screen position from the raw
data only gives us the physical screen position. The code doesn't compensate
for window placement and lower resolution.

The bug you are linking is where the cursor drifts in SDL, so equally
important to fix but not the same! :)

On 18 June 2011 10:16, foxblock <
[email protected]>wrote:

Is that maybe related to this: http://blogs.distant-earth.com/wp/?p=293(and thus can be fixed by the workaround described there).
I recall LemmingsSDL (using a 640x480 resolution) had the same problem when
one moved the cursor outside the bounds of the app, but it was nicely fixed
by the above workaround.

Reply to this email directly or view it on GitHub:
#2 (comment)

Kevin Winfield-Pantoja,
Pirate Games - pirategames.co.uk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants