locked
PointerExited not firing

    Question

  • We are developing a Metro/DirectX app in C++, and we need great support for both mouse, stylus and multi-touch finger and allow the user to switch between them at ease. To do this, we keep an internal state of the current input state. However, sometimes when we stress-test this (multiple input methods at the same time) we get a PointerEntered event without a matching PointerExited event, which messes things up. Should we be able to rely on always getting a PointerExited event for each PointerEntered? I've also tried to listen to PointerCaptureLost to see if that was the issue, but no luck.

    Also, found this issue that looks a bit similar (but not quite, as it's talking about PointerPressed/Released)
    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/1744118e-734b-47d5-bd15-4bd0d4fac923?prof=required

     

    Wednesday, June 13, 2012 12:23 AM

All replies

  • I am also seeing this issue. In a simple application I don't have this issue, but when the CPU is getting pegged I end up with missing PointerExited events. The docs don't mention the possibility of a PointerEntered without a matching PointerExited, and in our case it's causing a bug in our application. I can't reproduce this in WPF or Silverlight, so I'm thinking it's specifically a WinRT bug and not by design. Please advise.

    Wednesday, June 13, 2012 1:45 AM
  • Hello,

     

    Would you please provide us the whole codes to reproduce this issue,

     

    You can upload your project to skydriver

    http://skydrive.live.com/

     

    It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.

     

    Best regards,

    Jesse



    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, June 14, 2012 10:51 AM