multi-touch

Android MotionEvent.getActionIndex() and MultiTouch

爷,独闯天下 提交于 2019-12-22 11:23:18
问题 I am trying to get the pointer id whene the event MotionEvent.ACTION_MOVE happens. I am doing it by calling event.getActionIndex() but it always returns 0 for the second, the third, the forth and the fifth finger. i am using Gingerbread 2.3.3 on Galaxy S I9000 here is my code switch (event.getActionMasked()) { case MotionEvent.ACTION_MOVE: { Log.d("D"," getActionIndex()="+event.getActionIndex()); };break; } This is the debug results 05-02 19:20:08.628: DEBUG/D(4534): getActionIndex()=0

Differentiate between finger touch and hand/palm rest

笑着哭i 提交于 2019-12-22 09:29:01
问题 Is there any technique to differentiate between finger touch and palm rest on surface while drawing on touch surface in iOS touch based os? Edit : Added android tag as question is relevant for any touch based os. Thanks 回答1: I can't speak for Android systems, but on iOS I do not believe there is any definitive distinction as all touches, regardless of surface area' are resolved to individual points. That said, there are ways you could determine whether a specific touch is a palm or finger. If

Detecting various touch events in a winforms app

*爱你&永不变心* 提交于 2019-12-22 08:38:11
问题 I have a touch screen monitor with 5 touch points. I would like to do some touch work in a new windows forms app but I'm having trouble finding resouces for this. Is it possible to handle touch events in a winforms app? Im not just talking about Tapping, either. I mean things like Pinching, Swiping (two finger swiping), grabbing and twisting/rotating and zooming? How can we detect a pinch? 回答1: Take a look at WM_GESTURE message, I think you can get some info here, this could also be good and

Android Libraries for easy Multi Touch implementation that includes Twist/Rotate etc?

此生再无相见时 提交于 2019-12-21 19:24:24
问题 Has anyone run across a good implementation in library or package form that implements MULTI touch processing that includes pinch-zoom, rotate, two finger swipe etc. and is relatively easy to extend? I wrote the code for pinch-zoom and two finger swipe, but it's been awhile and I am tired of relearning this somewhat messy API with all of it's gotcha's every time I need to extend my actions. 回答1: The best I can find at this point is Howto use - Multi Touch Controller from Luke Hutchison's

Android Libraries for easy Multi Touch implementation that includes Twist/Rotate etc?

六眼飞鱼酱① 提交于 2019-12-21 19:22:49
问题 Has anyone run across a good implementation in library or package form that implements MULTI touch processing that includes pinch-zoom, rotate, two finger swipe etc. and is relatively easy to extend? I wrote the code for pinch-zoom and two finger swipe, but it's been awhile and I am tired of relearning this somewhat messy API with all of it's gotcha's every time I need to extend my actions. 回答1: The best I can find at this point is Howto use - Multi Touch Controller from Luke Hutchison's

two finger or pinc zoom to mapview in osmdroid

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 17:42:38
问题 I need help I'm trying to zoom to mapview by getting users multi touch points (firstly 2 finger touch) I know there is setMultiTouchControls() function but this is not what I want to do. I tried to explain with a picture :) it was easier than writting; The black bold arrows show the fingers' movement directions. The same situation can be considered for opposite directions.(zoom in) 回答1: Finally, In osmdroid 3.0.10 this feature had been implemented. mapView.setBuiltInZoomControls(true);

WPF 4 multi-touch drag and drop

坚强是说给别人听的谎言 提交于 2019-12-21 17:19:16
问题 I have a WPF 4 application where I have implemented Drag and Drop using the standard DragDrop.DoDragDrop approach, but Im doing it using touch instead of Mouse events. My XAML for my Grid (that Im dragging) is as follows: <Grid x:Name="LayoutRoot" ManipulationStarting="ManipulationStarting" ManipulationDelta="ManipulationDelta" ManipulationCompleted="ManipulationCompleted" IsManipulationEnabled="True"> <!-- children in here --> </Grid> Now the code behind is like this: private void

Programmatically find how many fingers in multitouch Android device supports

拜拜、爱过 提交于 2019-12-21 09:10:31
问题 On Android, it is possible to check programmatically if the device supports multitouch or not wth http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_TOUCHSCREEN_MULTITOUCH. Is it also possible to check exactly how many fingers the device can recognize in multitouch? E.g. from what I know, a 2-finger multitouch is supported starting with 2.x, but 3-finger multitouch from 4.0. But our customer reports having some new devices with 4.x which still don't support

How to bring up the Windows 8 on-screen keyboard in a desktop app

試著忘記壹切 提交于 2019-12-21 02:24:04
问题 I have a fullscreen DirectX desktop app, and would like to display the on-screen keyboard when the user taps a textbox in my game. Is there a way to do this while in fullscreen mode? 回答1: Executing osk.exe will pop up the more old-fashioned on-screen keyboard. The Windows 8 touch keyboard will pop up by executing C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe I just figured that out, since I'm working on a fullscreen desktop app that is running on a tablet PC without keyboard

WM_TOUCH vs WM_POINTER

橙三吉。 提交于 2019-12-19 10:19:25
问题 Which one should I use? I'm only using Windows 8.x, so I don't care about the fact that WM_POINTER is not backwards compatible with Windows 7 etc. I also don't care about gestures; only about raw touches. WM_POINTER's only clear advantage seems to be that it unifies touch and mouse input (but that's easy to work around with WM_TOUCH because mouse events can be checked with GetMessageExtraInfo()). Ease of use is also not an issue; I've been using WM_TOUCH already and I'm just wondering if I