人工触摸和触摸事件被注入系统 [英] Artificial Touch Down and Touch Up Events Being Injected into the System

查看:89
本文介绍了人工触摸和触摸事件被注入系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


< span style ="font-family:Calibri"> 自从我升级到SDK 2后,这种行为已经开始发生在我身上现在。



我很想知道是否还有其他人正在经历这个...... < span style ="color:black; font-family:" Verdana"," sans-serif" ;; font-size:6.5pt">



考虑这个简单的案例:



用一根手指触摸任何物体并将其保持在那里。我们将这个称为T1。现在用另一根手指触摸物体,我们将用这个T2来调用这个物体。此时你有两根手指触摸同一个物体。现在释放你的第二根手指。



如果我为上述情况挂钩TouchDown和TouchUp事件,我会看到这个序列:



            -
T1 Touch Down



            -
T2 Touch Down



            -
T2 Touch Up



            -
T1 Touch Up        



            -
T1 Touch Down  



我看到的是当第二根手指从物体上移开时第一根手指的人工触摸和触碰事件。
无论触摸次数多少,这似乎都在发生对象或它们放置在对象上的顺序。



这种行为导致了许多问题。一个容易看到的地方是GrandPiano项目,它是Surface 2 SDK附带的SDKSamples
的一部分。



运行GrandPiano,然后按住钢琴上的两个不同的按键,听到两个音符播放。请注意,两个键在向下位置显示
。现在将一个手指从表面抬起将另一只手指放在表面上。当你将手指从表面上抬起时,你会再次看到并听到另一个音符的声音。



所以对我来说这是一个主要问题,特别是在触摸期间触发并触及
事件时触发的许多功能。



是否还有其他人遇到过这种情况?或者我的硬件可能是特有的?我正在使用PQ Labs触摸屏运行。



 


解决方案

你好杰克


  可能我建议你使用输入模拟器重复测试?


我会在一段时间内尝试...


问候


This behaviour has started happening to me since I upgrade to the SDK 2 and it is stopping me in my tracks right now.

I would be very interested to know if anyone else is experiencing this...

Consider this simple case:

Touch any object with one finger and keep it there. We’ll call this T1. Now touch the object with a second finger, we’ll call this T2. At this point you have two fingers touching the same object. Now release your second finger.

If I hook into the TouchDown and TouchUp events for the above case I see this sequence:

            - T1 Touch Down

            - T2 Touch Down

            - T2 Touch Up

            - T1 Touch Up        !

            - T1 Touch Down   !

What I'm seeing is an artificial touch up and touch down event for the first finger when the second finger is removed from the object. This seems to be happening regardless of the number of touches on the object or the order that they are placed on and removed from the object.

This behaviour is leading to many problems. One place to easily see this is in the GrandPiano project that is part of the SDKSamples that ship with Surface 2 SDK.

Run GrandPiano, then press and hold down two different keys on the piano to hear both notes play. Notice that both keys are displayed in the down position. Now lift one finger off the surface whilst keeping the other finger on the surface. As you lift your finger off the surface you will see and hear the other note play again.

So for me this is a major problem, especially having implemented lots of functionality that triggers during touch down and touch up events.

Is anyone else experiencing this behaviour? Or is it perhaps peculiar to my hardware? I’m running with a PQ Labs touchscreen.

 

解决方案

Hi Jack

   may i suggest you to repeat the test using the input simulator?

I will try it in a while...

regards


这篇关于人工触摸和触摸事件被注入系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆