Windows phone 8 确定Windows Phone 8上的触摸压力

Windows phone 8 确定Windows Phone 8上的触摸压力,windows-phone-8,Windows Phone 8,我还没有找到一种方法来确定手指在屏幕上的压力。 获取StylusPoints并使用这些点的PressureFactor属性似乎是最明显的: private void Image_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { var point = e.StylusDevice.GetStylusPoints(Image).Last(); Debug.WriteLine(po

我还没有找到一种方法来确定手指在屏幕上的压力。 获取StylusPoints并使用这些点的
PressureFactor
属性似乎是最明显的:

    private void Image_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    {
        var point = e.StylusDevice.GetStylusPoints(Image).Last();
        Debug.WriteLine(point.PressureFactor);
但压强因子始终为0.5,由此看来,设备类型必须是“触笔”才能工作

我还研究了哪些使用了
Touch.FrameReported+=新的TouchFrameEventHandler(Touch\u FrameReported)以捕获触摸事件。然后,事件处理程序可以访问
接触点
s,但它们没有
压力
属性


如何找到触控压力?

触控仅支持触笔,如您所见:


触摸屏仅支持触笔,如您在中看到的:


谢谢,但您所指的文章与Windows 8应用商店应用程序相关,而与Windows Phone 8无关。声明它不是为Windows Phone 8实现的。@JasonSteele-在文章的底部声明:
支持的最低限度的电话:Windows Phone 8
抱歉,确实如此。我的第一次尝试也证明了压力只能从触笔获得。我希望一些可供选择的触摸API(似乎有很多)可以支持它。如果不是,那么可能是压力的代理,如手指区域?这不是由于API,而是由于硬件!电容式触摸无法确定压力。因此,只要手机没有变为电阻式触摸屏,你就无法获得压力。唯一可能的方法是测量触摸点的大小(我越用力,我的手指越扁平,因此触摸区域越大)谢谢,但您所指的文章与Windows 8应用商店应用程序相关,而与Windows Phone 8无关。声明它不是为Windows Phone 8实现的。@JasonSteele-在文章的底部声明:
支持的最低限度的电话:Windows Phone 8
抱歉,确实如此。我的第一次尝试也证明了压力只能从触笔获得。我希望一些可供选择的触摸API(似乎有很多)可以支持它。如果不是,那么可能是压力的代理,如手指区域?这不是由于API,而是由于硬件!电容式触摸无法确定压力。因此,只要手机没有变为电阻式触摸屏,你就无法获得压力。唯一可能的方法是测量触摸点的大小(我越用力,我的手指越扁平,因此触摸区域越大)
 String queryPointer(PointerPoint ptrPt)
 {
     String details = "";

     switch (ptrPt.PointerDevice.PointerDeviceType)
     {
         case Windows.Devices.Input.PointerDeviceType.Mouse:
             details += "\nPointer type: mouse";
             break;
         case Windows.Devices.Input.PointerDeviceType.Pen:
             details += "\nPointer type: pen";
             if (ptrPt.IsInContact)
             {
                 details += "\nPressure: " + ptrPt.Properties.Pressure;
                 details += "\nrotation: " + ptrPt.Properties.Orientation;
                 details += "\nTilt X: " + ptrPt.Properties.XTilt;
                 details += "\nTilt Y: " + ptrPt.Properties.YTilt;
                 details += "\nBarrel button pressed: " + ptrPt.Properties.IsBarrelButtonPressed;
             }
             break;
         case Windows.Devices.Input.PointerDeviceType.Touch:
             details += "\nPointer type: touch";
             details += "\nrotation: " + ptrPt.Properties.Orientation;
             details += "\nTilt X: " + ptrPt.Properties.XTilt;
             details += "\nTilt Y: " + ptrPt.Properties.YTilt;
             break;
         default:
             details += "\nPointer type: n/a";
             break;
     }

....