multi-touch

multitouch in WPF Not working

流过昼夜 提交于 2020-01-07 09:34:20
问题 I'm new to multi touch programming. im using windows7, VS-2010 and WPF to develop.I follow the tutorial in this link: http://surfacedeveloper.blogspot.in/2009/10/multi-touch-in-wpf-40-and-vs2010.html here i don't have the property ManipulationMode="All" . I don't know what I'm doing wrong. please help me!!! 回答1: ManipulationMode seemed to be a UIElement property in .NET 4.0 beta 1. I guess it was what now is IsManipulationEnabled. 来源: https://stackoverflow.com/questions/11931748/multitouch-in

UIView subclass ignores second touch

浪尽此生 提交于 2020-01-07 06:47:40
问题 I'm making an iOS game, and I've written a UIView subclass that's supposed to catch touch events, and it works as intended for a single touch. However, if I'm already touching the screen with one finger then touch it with a second finger elsewhere, "touchesBegan" doesn't get called for the second touch. Here's the implementation of the class: (Objective-C++) #import "BATouchInput.h" #include "BotsApp.h" @implementation BATouchInput - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *

Using Rect with touch coordinates

五迷三道 提交于 2020-01-06 03:46:44
问题 In my app whenever I place my second finger on the Screen. I should be able to show the center of the view shown in this post or below image at the point of touch of second finger. I am using the code shown below. The problem I face is the center of the mainarea is not at the second finger touch. public OnTouchListener mTouchlistener = new OnTouchListener() { @TargetApi(Build.VERSION_CODES.M) @Override public boolean onTouch(View v, MotionEvent event) { int pointerIndex = event.getActionIndex

handle taps in two different points at a same time via UIGestureRecognizer

走远了吗. 提交于 2020-01-05 04:56:34
问题 I have two labels in two different positions, when both labels are tapped at the same time i want another label to show a success message. How do I accomplish this? I can recognize a single tap or double tap with one or more finger touches but this is a different scenario. Please help. I tried this, but it does not work. UITapGestureRecognizer *tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)]; tapRecognizer.numberOfTapsRequired = 1;

Pinch zoom in android 2.1

前提是你 提交于 2020-01-02 06:43:10
问题 Is there a way we can achieve Pinch zoom ability to the imageview? 回答1: 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

How to simulate touch event?

ⅰ亾dé卋堺 提交于 2020-01-02 02:40:29
问题 I want to be able to invoke touch events without user interactions. Is this possible? 回答1: 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. 回答2: Have a look at UIResponder's touchesBegan:withEvent: and touchesEnded:withEvent: 来源: https://stackoverflow.com/questions/992299/how-to-simulate-touch-event

Detecting pinch in Android

大城市里の小女人 提交于 2020-01-01 08:24:30
问题 I would like to handle pinch events in my Android application to zoom in and out. I believe Android 2.0 has multi-touch functionality, and heard that Android 1.6 might or might not support it depending of the device. What's the best way to detect pinch events, while degrading gracefully for devices that don't support it? I'm targeting Android 1.5 upwards. 回答1: A great article by Ed Burnette (Hello Android Author) on multi touch (including pinch zoom) can be found here: http://www.zdnet.com

How to test multi-touch in Android Emulator [duplicate]

南笙酒味 提交于 2019-12-30 05:37:14
问题 This question already has answers here : Is there any way to test multi-touch on the Android Emulator? (7 answers) Closed 6 years ago . I'm trying to use multi-touch in an Android 2.0 app. How can I simulate this with an emulator using Eclipse? I can only seem to get the mouse to do one touch at a time. 回答1: Current version of emulator doesn't support multi-touch. You need device to do it! Update: The emulator supports multi-touch input, as an experimental feature in r17 Read more 回答2: Since

Programmatically enable / disable multitouch finger input?

走远了吗. 提交于 2019-12-30 05:19:10
问题 I have a multitoch-enabled tablet PC running Windows 7. However, when using the stylus pen and getting too far away from the display, I often accidently hit it with my fingers which causes unwanted mouse-clicks. The solution is navigating to "Control Panel - Pen- and Finger Input - Finger Input" and deactivate the checkbox "Use the finger as an input device" (all titles translated so they might be different on an English windows). Now I am wondering whether I can do this programmatically, too

Is there a built in API for handling pinch-zoom functionality in Android

南笙酒味 提交于 2019-12-28 05:53:06
问题 I just wanted to know if there is some kind of class to use the multitouch features of android 2.1. Specifically I am trying to implement pinch-zoom and was wondering if I always have to measure the distance between two touch events and calculate the zoom level on my own? Thanks, chris 回答1: I'm trying to do the same thing, and as usual my first instinct was to look into the Android source code itself. The interesting bits seem to be in class ScaleGestureDetector, which is not public but its