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

Ghost touches on windows phone 8 #1922

Closed
deluksic opened this issue Aug 10, 2013 · 14 comments
Closed

Ghost touches on windows phone 8 #1922

deluksic opened this issue Aug 10, 2013 · 14 comments

Comments

@deluksic
Copy link

I'm making a (very awesome) drawing app for windows phone, but I noticed that if I touch the screen with 3+ fingers, the TouchPanel.GetState() returns more and more touches. As if some ghost touches start to appear. There can be as many as 20+ ghost touches at a time.

@Nezz
Copy link
Member

Nezz commented Aug 18, 2013

Of the debugger is attached, WP8 touchpanel starts acting strange without any apparent reason. Do you experience this without the debugger too?

@deluksic
Copy link
Author

Yes, finally someone :) the app is already submitted but I need fix asap. Although, My app doesnt expect the user to tap with three fingers, the bug is annoying and is solvable only by home button to start and then back to app.

@deluksic
Copy link
Author

I know you guys are busy making the content pipeline, but can anyone look into this, please? This is a major issue!

@tomspilman
Copy link
Member

I know you guys are busy making the content pipeline

That isn't how things work. The team is all volunteers... usually working on parts of MonoGame for fun or because they have a need. Most of the latest WP8 fixes for instance came from @Nezz because he was porting for WP8.

The best thing you can do is make reproducing this issue easy. Setup a test project that reproduces the bug and link to it here. This way someone can download the project and immediately investigate the issue.

@deluksic
Copy link
Author

Oh, ok. Thanks for clearing that up. So Im making a test project then..

@deluksic deluksic reopened this Aug 20, 2013
@deluksic
Copy link
Author

sorry for closing/reopening, I was on mobile and pressed the wrong button.

Al right, so I made a test app for you to debug. The bug can be reproduced by tapping on the screen with two or more fingers. After few taps, you should see "fake" taps start appearing. It seems as if the touch collection cache is not clearing up. I also see that the TouchPanel.Clear() is not implemented.

Here is download link to my dropbox: https://www.dropbox.com/s/8wiiyy32oji8779/TouchPanelTest.zip
You can also download my app and try to do the same. When the false touches start appearing, the app becomes unresponsive: http://www.windowsphone.com/s?appid=56c51106-721c-4ad3-b6fd-17fb9a11edfd

EDIT: I did few touch tests and I got to a conclusion that the ghost thouches appear only if you try to touch the screen with two or more fingers in a same frame. You can touch the screen with 10 fingers at once if you touch one by one and nothing happens.

@deluksic
Copy link
Author

Update: ghost touches are actually touches that have been made before and are stuck on moving state.

@deluksic
Copy link
Author

Could be that the OnPointerReleased event of XamlGame never gets called so the touch stays where it is? Thats the only explanation for now..

@Nezz
Copy link
Member

Nezz commented Aug 27, 2013

That would be the only way to explain it. But I have to say that we never received reports of such an issue in our WP8 game.

@tomspilman
Copy link
Member

I don't remember the details of the WP8 touch events... but are you maybe capturing some pointer events yourself? Maybe via some XAML controls? Are those blocking MonoGame code from receiving some events? This has happened to others before on Win8.

@deluksic
Copy link
Author

Hmm.. Well it is a bit harder to reproduce, but possible nontheless. Maybe your app doesnt need multitouch so they never had problems with it?

@Nezz
Copy link
Member

Nezz commented Aug 28, 2013

It uses pinch to zoom.

@deluksic
Copy link
Author

Mine too.. Well, are you able to reproduce the problem, or is it just me?

@deluksic
Copy link
Author

@tomspilman thee are no controls except the drawingsurfacegrid.

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

3 participants