multi-touch

How do I detect multitouch actions in a Windows 8 metro app?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 15:02:48
I am working on a metro app right now and I'm looking to enable multitouch. I've browsed around google, but I can't seem to find any API to support it. Can someone point me in the right direction to support multitouch actions in a Windows 8 Metro app? What exactly are you trying to do? There are Touch, Pointer (an abstraction around touch/mouse/stylus), and Manipulation events on every UI element In JavaScript you can use the event.pointerId to detected multiple touch inputs. This identifier gives every new input an id. When you want to get multiplie touches for a move with the finger, you can

Pinch zoom in android 2.1

此生再无相见时 提交于 2019-12-05 14:04:00
Is there a way we can achieve Pinch zoom ability to the imageview? Following code works great! You just have to copy and paste: import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.PointF; import android.os.Handler; import android.util.AttributeSet; import android.util.FloatMath; import android.util.Log; import android.view.GestureDetector; import android.view.MotionEvent; import android.view.View; import android.view.GestureDetector.SimpleOnGestureListener; public

Faking WPF Manipulation Events

。_饼干妹妹 提交于 2019-12-05 05:29:10
问题 I want to fake manipulation (or touch) events using a mouse / keyboard. When I try to raise the events using: RoutedEventArgs e = new RoutedEventArgs(ManipulationStartedEvent,this); RaiseEvent(e); Gives me the error "Cannot convert RoutedEventArgs to ManipulationStartedEventArgs , and attempting to create a new ManipulationStartedEventArgs results in an error as there are no constructors for ManipulationStartedEventArgs . Is it possible to do this? 回答1: So the answer is to create a Custom

How to simulate touch event?

六眼飞鱼酱① 提交于 2019-12-05 03:09:36
I want to be able to invoke touch events without user interactions. Is this possible? you could manually call touches begin and touches end. I think there may be a better solution to whatever you are trying to do, This seems like a very unconventional thing to do. Have a look at UIResponder's touchesBegan:withEvent: and touchesEnded:withEvent: 来源: https://stackoverflow.com/questions/992299/how-to-simulate-touch-event

Get MotionEvent.getRawX/getRawY of other pointers

拟墨画扇 提交于 2019-12-05 01:38:39
Can I get the value of MotionEvent.getRawX()/getRawY() of other pointers ? MotionEvent.getRawX() api reference The api says that uses getRawX/getRawY to get original raw X/Y coordinate, but it only for 1 pointer(the last touched pointer), is it possible to get other pointer's raw X/Y coordinate ? Indeed, the API doesn't allow to do this, but you can compute it. Try that : public boolean onTouch(final View v, final MotionEvent event) { int rawX, rawY; final int actionIndex = event.getAction() >> MotionEvent.ACTION_POINTER_ID_SHIFT; final int location[] = { 0, 0 }; v.getLocationOnScreen(location

Android multi touch and double tap working together for an imageview

你离开我真会死。 提交于 2019-12-04 17:57:54
Hi I have two imageviews in a LinearLayout(Vertical orientation). I am setting setOnTouchListener for both the Imageviews. This way i am able to observe the Multi touch zoom as well as all the dragging of the ImageViews. The problem comes when i try to implement OnDoubletapListener. OnDoubleTapListener works only without the use of setOnTouchListener. However if i comment the setOnTouchListner then i am able to perform Double Tap.. Can't the two feartures work simultaneously????? If You want i can provide the source code as well.. Pl Help Ankit Verma I had also face that same type problem....I

How is google maps (web app) scaling so smooth on the iphone/ipad with the gesture/pinch?

懵懂的女人 提交于 2019-12-04 17:52:53
If you have used the Google Maps web app on your iphone or ipad you know what i am talking about. You can't see my fingers in this screen grab, but this is mid-pinch (if you will) zooming out. The detailed area was the initial map viewing area and the blurry bit outside is the extra map that has come into view mid-pinch. The pinch-to-zoom function that uses the gesture touch input scales the map currently in view live in a way that is so smooth it looks like magic. We are trying to scale images and reproduce this smooth scaling. Does anyone know how they do it? We don't know if it's a single

Zoom and Pan in GMap.net

馋奶兔 提交于 2019-12-04 14:42:05
I'm trying to make GMap.Net control multitouch enabled, using WPF build-in events but i wasn't successful. I found a series of articles about multitouch like this and this one. In all of them, ManipulationContainer is a canvas and movable controls placed on it, but in GMap issue ManipulationContainer is GMapControl and there is no control over it. how can i use e.ManipulationDelta data to Zoom and Move? The GMapControl has a Zoom property which by increase or decreasing it, you can zoom in or zoom out. A quick look at the code shows that the GMapControl is an ItemsContainer . You should be

How to webview swipe gesture detect with multitouch zooming enabled withing a flipper

孤街浪徒 提交于 2019-12-04 12:24:54
问题 So is there a way for a webview control to detect a swipe while capable of doing multitouch zoom and having build-in zoom controls? 回答1: YES!There is a way of doing that by implementing WebView and creating a custom Webview This way the custom WebView has build in swipe detection having at the same time multi touch and build in controls for zoom. //Declaring the custom Webview and put into a viewflipper MyWebView[] webview =new MyWebView[2]; flipper = (ViewFlipper) findViewById(R.id

Generate and post Multitouch-Events in OS X to control the mac using an external camera

百般思念 提交于 2019-12-04 11:44:25
问题 I am currently working on a research project for my university. The goal is to control a Mac using the Microsoft Kinect camera. Another student is writing the Kinect driver (which will be mounted somewhere on the ceiling or the wall behind the Mac and which outputs the position of all fingers on the Macs screen). It is my responsibility to use that finger-positions and react on them. The goal is to use one single finger to control the mouse and react on multiple fingers the very same way,