Drag Gestures - fractional delta values
Posted
by
Den
on Game Development
See other posts from Game Development
or by Den
Published on 2012-10-30T23:21:31Z
Indexed on
2012/11/01
23:23 UTC
Read the original article
Hit count: 327
I have an issue with objects moving roughly twice as far as expected when dragging them.
I am comparing my application to the standard TouchGestureSample sample from MSDN.
For some reason in my application gesture samples have fractional positions and deltas.
Both are using same Microsoft.Xna.Framework.Input.Touch.dll, v4.0.30319.
I am running both apps using standard Windows Phone Emulator.
I am setting my break point immediately after this line of code in a simple Update method:
GestureSample gesture = TouchPanel.ReadGesture();
Typical values in my app:
Delta = {X:-13.56522 Y:4.166667}
Position = {X:184.6956 Y:417.7083}
Typical values in sample app:
Delta = {X:7 Y:16}
Position = {X:497 Y:244}
Have anyone seen this issue? Does anyone have any suggestions?
Thank you.
© Game Development or respective owner