0

I'm writing a hybrid XNA + Silverlight app for WP7 and I'm trying to work out the touch splitting between them. I've got this halfway worked out: I can suppress XNA TouchPanel touches when the user clicks a Silverlight button. However I have not figured out how to throw out game-only touches for Silverlight. So if you're holding a touch point in the game space (say, for moving the player around), a second touch on a button won't work. It think it's picking it up as a multi-touch gesture and only allowing the first touch point to click buttons.

My question is: how can you suppress this touch point in Silverlight processing?

RandomEngy
  • 14,931
  • 5
  • 70
  • 113

1 Answers1

0

The simplest way woudl be to design your app so that you don't use both types of control in an interactive way on the same page.

Or, if you must, when you detect the first XNA touch disable touch on the Silverlight controls.

Matt Lacey
  • 65,560
  • 11
  • 91
  • 143
  • Well yeah, of course this would work if I just threw one of them out the window! But the question is about getting the hybrid approach to work. Disabling Silverlight touch on the first XNA touch would not help me because I want them to be treated as a single touch on each. – RandomEngy May 14 '12 at 09:36