Hi all: We have tested our panels using JNI to get touch data instead of MotionEvent or other native SDK. It won't show the problems of "Pointer Location". Here is the result: http://www.youtube.com/watch?v=Te8RaMo4Uo8 And the same panels have been tested and passed under windows 7. Is there any commment about it? Thanks
On 7月21日, 上午4時55分, Joseph Earl <joseph.w.e...@gmail.com> wrote: > It is most likely a combination of the touch APIs and hardware. > Android has gone from no official multi-touch (1.5-1.6), multi-touch > with indistinguishable points (2.0, 2.1) to multiple distinguishable > points in 2.2, but I would be ensure as to how good the code is, > although it does officially support up to 256 points I think. > > You'll have to do some extra event processing to get around this as > best you can. > 1) Take a look at Luke Hutch's MultiTouchController for a good idea of > how to do event filtering well. > 2) Apply your own extra logic. Consider the following example: > > 1) A user places down their first finger, followed by their second > finger and then their third. > Android will give you pointer ids for these, record them but also > assign your own id to each finger (e.g. 1, 2, 3 in the order you got > them) > > 2) The user drags in a line across the screen (something like finger > painting) and lifts their middle finger half way in the drag. > Android will give you a pointer up event with the pointer ID it thinks > went up, let's call this X. Record this and the fact a finger went up, > but don't respond to the event just yet. > > 3) Wait till you receive the next touch event and take a look at the > x,y coordinates of the points. > If, for example, the value of X in step 2 that Android gave you made > you think the user had lifted their third finger (although they > actually lifted their middle one) then you can check if this is > correct: it will appear that the position of the middle finger > (according to your ID system) has jumped to somewhere near where the > third one is. > > That is only a brief example to demonstrate - but essentially based on > event history you need to determine how probable the current event you > receive is, and if it's unlikely figure out what you think happened > instead. I'd start off small, get 4 fingers working well first, then > try moving up. > > On Jul 20, 5:08 am, J_kim <kimk...@gmail.com> wrote: > > > > > Hi, all: > > We have touch panels for 10.1 inches that support up to ten > > fingers and set it on EeePC. We use Android 2.2 SDK to develop a > >drawerto show 10 fingers' gesture. But there are some problems > > about different finger's id. If we leave fingers in differnet > > order, the 2.2 SDK can't decide the right order and pass the wrong > > leave event for thedrawer. We also can find those problems on > > "DevTools > > => Pointer Location" application. Please refer to the following > > link:http://www.youtube.com/watch?v=ZFPnjAyZqyo > > > Anyone has the same problem with us? Or it's the problem on our > > hardware? > > Thanks.- 隱藏被引用文字 - > > - 顯示被引用文字 - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en