multi-touch

WPF Drag and Drop with Adorner using mouse and touch

我怕爱的太早我们不能终老 提交于 2019-11-30 10:20:58
I want this to be good question, so I'll write in details what I would like to achieve, what I've found on the internet and I show what I've done so far and what I've tried. I need to add drag and drop functionality to my application. I have Images (basically controls) that I want to drag to items of listbox. Here is sample UI: And here is usage I have now: As You can see I'm able to drag one of four images and drop it over listbox item. If I move image over correct target (listbox image) image near cursor disappears and everything works fine, but when I don't drop image on list item (I

Getting the number of touch points supported

谁都会走 提交于 2019-11-30 09:24:27
问题 I know that the number of touch points supported is different from device to device, but is there a way through the API or through code to get that number for the device? 回答1: You can distinguish between various broad classes of multitouch (none, pinch gestures only, true 2-point multitouch, true 5-point multitouch) by searching the result of PackageManager#getSystemAvailableFeatures() for the various "android.hardware.touchscreen.*" features listed here. If you want to know exactly how many

Pressing multiple buttons simultaneously

空扰寡人 提交于 2019-11-30 07:31:38
In my WP 7.1 app I have a page with multiple buttons. I noticed that while any one button is being pressed, no other button can be pressed. How can I overcome this? I need to be able to allow users to press multiple buttons at the same time. You can't handle multiple button clicks at once unfortunately. There is a way around it though. You can use the Touch.FrameReported event to get the position of all the points a user is touching on the screen (I read somewhere before that on WP7 it's limited to two but I can't verify that). You can also check if the action the user is taking (e.g. Down,

android: how can I verify, that device support multitouch?

落爺英雄遲暮 提交于 2019-11-30 01:17:43
问题 How can I verify, that device support multitouch event? If device have resistent display, multitouch is not possible. Is that way to find out, what kind of display is in device, or if device support multitouch? Thanks. 回答1: If you need multitouch, include: <uses-feature android:name="android.hardware.touchscreen.multitouch" /> in your manifest. Your application will not be listed in the Market for devices that lack multitouch. If you wish to conditionally support multitouch, use

Capturing all multitouch trackpad input in Cocoa

让人想犯罪 __ 提交于 2019-11-30 00:44:52
Using touchesBeganWithEvent, touchesEndedWithEvent, etc you can get the touch data from the multitouch trackpad, but is there a way to block that touch data from moving the mouse/activating the system-wide gestures (similar to what is done in the chinese text input)? As noted by valexa, using NSEventMask for CGEventTap is a hack. Tarmes also notes that Rob Keniger's answer no longer works (OS X >= 10.8). Luckily, Apple has provided a way to do this quite easily by using kCGEventMaskForAllEvents and converting the CGEventRef to an NSEvent within the callback: NSEventMask eventMask =

How to perform zoom in/out ,rotation together in Android

只谈情不闲聊 提交于 2019-11-29 23:19:20
问题 I want to apply drag,zoom in/out,rotate using multitouch to two images .one image is placed on the top of the other. after applying these action Create a image from above two images after changes made by applying actions. I succeed in apply zoom/drag to top image ,created new image from that. main problem is 1.How to apply action to two images, one image at a time ? 2.How to switch to another image from currently showing image (which layout I should use)? 3.How user can have a facility to

How to set electron UserAgent

我怕爱的太早我们不能终老 提交于 2019-11-29 17:38:41
问题 I need to set the UserAgent in electron to include the touch flag since I am writing the application for touch screens and it doesn't seem to auto detect that it is running on a touch screen. Any help would be nice, I already tried setting it in the BrowserWindow.loadURL options param. 回答1: You can set the User-Agent header in the main process using onBeforeSendHeaders: import { session } from 'electron'; session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => { details

Detect multitouch with Ontouch listener Android

浪子不回头ぞ 提交于 2019-11-29 17:27:32
I currently have an imageview element that upon being touched, that tests if the action is an actiondown event, and if it is, it gets the coordinates of the touch with getraw(x or y) and then carries out an action based on those coordinates. How would I implement this to get two sets of coordinates from a two finger multitouch event? Take a look at the ACTION_POINTER_DOWN action define in MotionEvent . This is the event that will get called when additional fingers come down after the first ACTION_DOWN triggers. You can use methods like getActionMasked() to assist you in determining which

Touch events available in Safari?

爱⌒轻易说出口 提交于 2019-11-29 15:42:44
A friend and I were discussing Mozilla's latest touch support and got on the question of what Safari provides for this. Searches seem to turn up nothing. Do you know of anything that provides touch events to Safari on desktop, either via multitouch trackpad or direct screen interaction (I guess a Windows multitouch environment would be the only relevant case here.)? No, there is currently no support for touch events in the desktop version of Safari. According to this documentation it is only supported on iOS 2.0 or later. 来源: https://stackoverflow.com/questions/3472889/touch-events-available

Getting the number of touch points supported

若如初见. 提交于 2019-11-29 15:28:48
I know that the number of touch points supported is different from device to device, but is there a way through the API or through code to get that number for the device? You can distinguish between various broad classes of multitouch (none, pinch gestures only, true 2-point multitouch, true 5-point multitouch) by searching the result of PackageManager#getSystemAvailableFeatures() for the various "android.hardware.touchscreen.*" features listed here . If you want to know exactly how many touches may be present, you'll just have to watch MotionEvents as they come in. 来源: https://stackoverflow