multi-touch

How to listen for both tap and gestures at the same time in Adobe AIR for iOS?

允我心安 提交于 2019-12-19 04:12:29
问题 I am making an iOS game and I need a detection for both simple tapping and gestures (swipe etc) simultaneously . In AIR, I can only see one setting for the Multitouch input mode: TOUCH_POINT (which works for basic tapping) and GESTURE. But I need both at the same time so changing the mode isn't an option. How can I listen to both at the same time? Thanks, Can. 回答1: You can use standard mouse events for tap. This would maintain gesture multitouch input mode. Otherwise, Gestouch framework: NUI

How do I enable touch on multiple buttons simultaneously in react native?

◇◆丶佛笑我妖孽 提交于 2019-12-19 03:15:19
问题 I need that when I am touching and holding one button then I should also be able to touch on the button 1. <View> <View onStartShouldSetResponder={()=>this.console("Button 2 Clicked")}> <Text>BUTTON 2</Text> </View> <TouchableOpacity onPressIn={()=>this.console('Button 1 pressed')} onPressOut={()=>this.console('Button 1 released')}> <View> <Text>BUTTON 1</Text> </View> </TouchableOpacity> </View> Basically, I have a screen where I can record a video by tapping and holding the record button

WPF Drag and Drop with Adorner using mouse and touch

一世执手 提交于 2019-12-18 13:36:50
问题 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)

Pressing multiple buttons simultaneously

走远了吗. 提交于 2019-12-18 12:36:11
问题 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. 回答1: 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

Detect multitouch with Ontouch listener Android

旧城冷巷雨未停 提交于 2019-12-18 09:26:59
问题 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? 回答1: 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

C# Simulating multitouch with Kinect

拟墨画扇 提交于 2019-12-18 06:53:40
问题 I have a Kinect application that I can generate 1-4 distinct screen points (Left/Right hands for up to 2 people) and I would like to be able to send each Point to the application with focus as a multi touch message. I'm currently using SendInput to send mouse move, mouse down, and mouse up messages, but AFAIK, it doesn't support the WM_TOUCH messages. Does anyone know of an easy way to send multi touch messages in C#? As a test I would like to be able to use the Kinect in MS Paint, and paint

C# Simulating multitouch with Kinect

为君一笑 提交于 2019-12-18 06:52:54
问题 I have a Kinect application that I can generate 1-4 distinct screen points (Left/Right hands for up to 2 people) and I would like to be able to send each Point to the application with focus as a multi touch message. I'm currently using SendInput to send mouse move, mouse down, and mouse up messages, but AFAIK, it doesn't support the WM_TOUCH messages. Does anyone know of an easy way to send multi touch messages in C#? As a test I would like to be able to use the Kinect in MS Paint, and paint

Android - How do I get raw touch screen information?

倾然丶 夕夏残阳落幕 提交于 2019-12-17 19:46:42
问题 I'm working on a painting application for Android and I'd like to use raw data from the device's touch screen to adjust the user's paint brush as they draw. I've seen other apps for Android (iSteam, for example) where the size of the brush is based on the size of your fingerprint on the screen. As far as painting apps go, that would be a huge feature. Is there a way to get this data? I've googled for quite a while, but I haven't found any source demonstrating it. I know it's possible, because

pointerIndex out of range Android multitouch

主宰稳场 提交于 2019-12-17 10:36:23
问题 I have a touch event exception that is causing my game to crash on tablets (or more specifically, honeycomb)... My game works fine on my phone and I haven't heard of this happening to anyone that isn't running Android 3.0 or higher. Here is the relevant log info... E/AndroidRuntime(26487): java.lang.IllegalArgumentException: pointerIndex out of range E/AndroidRuntime(26487): at android.view.MotionEvent.nativeGetAxisValue(Native Method) E/AndroidRuntime(26487): at android.view.MotionEvent.getX

How to disable multitouch?

℡╲_俬逩灬. 提交于 2019-12-17 09:22:13
问题 My app has several buttons which trigger different events. The user should NOT be able to hold down several buttons. Anyhow, holding down several buttons crashes the app. And so, I'm trying to disable multi-touch in my app. I've unchecked 'Multiple Touch' in all the xib files, and as far as I can work out, the properties 'multipleTouchEnabled' and 'exclusiveTouch' control whether the view uses multitouch. So in my applicationDidFinishLaunching I've put this: self.mainViewController.view