fehaar / FFWD

This is the FFWD framework for XNA, that allows you to port Unity3D games to XNA for use on WP7 or XBox360 (XBLIG)
Microsoft Public License
133 stars 36 forks source link

Input Touch Issue #69

Closed stanleyjoy closed 11 years ago

stanleyjoy commented 11 years ago

I have used these codes and tested on my Lumia 610 and Lumia 900. I found a really strange bug. The count value that I am getting is not consistent. When i place a finger on the device the count value can go upto 4 during certain intervals. Do you have any clue as to why this is happening???

XNA Code: protected override void Update(GameTime gameTime) { TouchCollection touches = TouchPanel.GetState(); System.Diagnostics.Debug.WriteLine("COUNT: "+touches.Count); }

Unity Code: public override void Update () { int count = Input.touchCount; Debug.Log("COUNT: "+count); }

Stan

fehaar commented 11 years ago

I reckon that the count from Game1 is consistantly 1 while the other one goes mad? That is a very good repro case to find the bug.

It might be some of the code that cleans up after the touches in Input.Update that has issues. I know this has been working at some point. Maybe some of the later updates has broken this code. There has been some XBox controller changes that were merged in not made by me.

stanleyjoy commented 11 years ago

I have used these in separate instances I found this issue when it was automatically calling functions like "tap to continue". At that time only Unity had the touch input. I just checked it on XNA with the Unity Script disabled and I still got the same result. To fry your noodle even more, it was even happening on a New Windows Phone 7.1 game project. Looks like the only hope is gestures. Stan P.S. Gestures still have issues.

fehaar commented 11 years ago

If it is happening in a clean XNA project, it is nothing that we can fix in FFWD. Either there is a bug in XNA or there is an issue with the device.

stanleyjoy commented 11 years ago

Can you please have look at this issue. https://github.com/fehaar/FFWD/issues/53