locked
Best way to know what type of device a PointerEventArgs is coming from

    Question

  • In our app we support pressure-sensitivity. By using the window->PointerMoved and similar functions we pipe that information into our application. However, depending on what input device the user is using, we need to be able to do some trickery to make sure it's handled correctly. For example, using a standard mouse, it seems that the args->CurrentPoint->Properties->Pressure reports 0.5, while we really want to handle devices without pressure sensitivity as them having maximum pressure (1.0).

    So, I want to know what type of device the PointerEventArgs is coming from. Is it coming from a mouse (which I will assume has no pressure sensitivity) or from a Stylus. I've been searching around for the best/easiest way to detect this, but I've come up short. Anyone has any suggestions?


    • Edited by Llerd1 Wednesday, June 13, 2012 1:57 AM Clarification
    Wednesday, June 13, 2012 1:50 AM

Answers