1

I have a winphone app with several buttons on a page. I want to be able to press them two (or more) at a time. Unfortunately when I press two buttons (with 2 fingers), only one of them gets the click or tap events and the other one does not. How can I know that 2 buttons are pressed?

Z .
  • 12,657
  • 1
  • 31
  • 56
  • are you going to have different events occurring for each and every button? – Kulasangar Sep 18 '14 at 17:52
  • same event handler for all buttons, but I need 2 separate events if I press 2 buttons – Z . Sep 18 '14 at 18:02
  • possible duplicate of [Pressing multiple buttons simultaneously](http://stackoverflow.com/questions/11286229/pressing-multiple-buttons-simultaneously) – Z . Sep 18 '14 at 18:14

2 Answers2

1

According to the post below, you could achieve this by using Touch.FrameReported event.

Pressing multiple buttons simultaneously

Community
  • 1
  • 1
Kulasangar
  • 9,046
  • 5
  • 51
  • 82
0

What underlying framework are you using ? Is it C++ or C# ? XNA or WPF/XAML ? WP7 or WP8?

As Kulasangar pointed Touch.FrameReported should be the way to do it in C#.

For XNA you will have to enable the MultiTouch and then use the TouchCollection class. That will give you access to multiple touches.

In DirectX you might have to use managed C++ and listen to one of the system events. Things might change based on the platform ( WP7 or WP8 )

Rushabh
  • 651
  • 5
  • 15