Recently, a multi-touch scaling function is required. Then I checked the information online and summarized it as follows:
First, the android SDK version is very important. For example, if you specify Android: minsdkversion = "4" in androidmanifest. xml and select Android 2.2 when creating the project, your application is compatible with android1.6 ~ Android2.2
. However, the
Top one
According to foreign media reports, Mozilla has finally released the long-awaited Firefox 4 beta 3 Web browser. According to reports, in terms of functionality, the Firefox 4 beta 3 browser is first available to MicrosoftWindows 7 users have a big surprise, because the browser has finally made full use of the multi-touch Input Function of Microsoft's latest operating system. Of course, if you wan
Enable multi-touch under Cocos2d-x3.2 iOS
Multi-touch is disabled by default in iOS. The following content is required for use:
Under the iOS Folder: AppController. mm
Add a line of code:
// You only need to add such a line of code to use multi-
Recently, after studying Silverlight programming in WP7, I sorted the learned knowledge points into logs so that I can understand them deeply and take notes and memos. If there is any unreasonable or wrong information, I would like to correct it.
WP7 supports multi-touch and has two different programming modes: 1. Low-Level touch. framereported event 2. Use the
Get the multi-Touch point core code:Get the number and position of touch pointspublic boolean OnTouch (View V, motionevent event) {switch (event. Getaction()) {case Motionevent. ACTION_down:system. out. println("Down"); Break;Case Motionevent. ACTION_up:system. out. println("Number of touch points:"
Case: Draw paths and clear paths based on multi-touch images.Gets the coordinates of the main coordinate set ImageView.The view does not support multi-touch by default: set to support multitouch:[Self. View setmultipletouchenabled:YES]; 1. Looping Create ImageView4- (void) touchesmoved: (Nsset *) touches withev
Fixed scaleform multi-touch (make a note for later people)Scaleform version number 4.2.24 (estimated that this is the last mobile version, no update)began to think that Scaleform did not do more touch and gesture. In fact, they are already encapsulated. Only the PC-side emulator is not supported. (Debugging compared to the egg pain can only use the real machine)B
The realization of multi-touch is achieved by using the method of the input class.From Edit-project settings-input You can see the axes that input can get.To read an axis you can use the Input.getaxis method to get the following default axes: "Horizontal" and "Vertical" are mapped to the joystick, A, W, S, D, and arrow keys (direction keys). "Mouse X" and "Mouse Y" are mapped to the mouse, "Fire1", "Fire2"
Is a terrain system and multi-touch map editor,
It will be very comfortable and completely different from the Operation Experience of the mouse.
About the terrain, alas... Windows Phone 7 Open shader is still nowhere in the future, vertextexture solution first put there.
Implement a map method suitable for CPU, such as war3, poor war3, just stole the Model Animation of the watcher and began to imitate hi
Http://kb.cnblogs.com/page/71478/author: gnie Source: blog site Release Date: Reading: 443 Original article link full screen reading [favorites]
Abstract: No matter which kind of touch screen operations, developers need to write them one by one
Code This article will introduce you to an efficient multi-point touch screen development mode.
Previous articlesArti
Quo JS is a lightweight, modular, object-oriented JavaScript library that defines a variety of touch gestures that can be used to simplify HTML file traversal, event handling, and Ajax interactions in mobile web development, making it easy for developers to write efficient cross-browser code.Quo JS IntroductionQuo JS is designed to simplify the amount of code for your mobile development projects, optimize code for your current mobile device, and suppo
When customizing some controls, or using custom controls written by someone else, there are occasional multi-touch problems, so you need to disable Multitouch in some places, here are the two simple ways I found:1. Use the custom theme theme directly to modify the entire app's style to prohibit global multitouch: style name="Mythemestyle"> item NBSP; name = "Android:windowenablesplittouch" >
The gallery provided by the android source code does not support multi-touch features such as scaling images with two fingers, so you have to add the image by yourself.
The added code is simple. Just modify the rootlistener in/packages/apps/Gallery/src/COM/Android/camera/viewimage. java.
The following code calculates the scaling ratio based on the change of the distance length between two points:
Float sca
public class Scalegesturedetector extends Object
Java.lang.Object
Android.view.ScaleGestureDetector
class overviewDetects deformation gestures caused by multiple contacts (Multitouch), based on the received motionevent. The callback method Scalegesturedetector.onscalegesturelistener notifies the user when a specific gesture event occurs。 This class can only be used in conjunction with the motionevent triggered by the Touch
[1]: What is the difference between this and spof?
1. Differences in usage.
In some cases, we need multi-touch to achieve better results, such as fruit cutting.
2. Differences from spof
[1]. The single-point monitoring class is CCtargetedTouchDelegate, while the multi-point monitoring class is CCtangardTouchDelegate.
[2]. You also need to register
In the development of Android UI, we often encounter this requirement:Two components that support sliding, such as the ListView nested multiple Listview,listview item is a Viewpager or gallary? or ScrollView nested ScrollView and so on.In general, you may also need to support several features such as:¤ Two-layer components can slide¤ Do not let two components slide at the same time, or let two components sliding simultaneously and can adjust themselves¤ Click events that do not affect the sub vi
Recently, a website named Giz-China suddenly showed several photos of a 10 inch tablet computer. The untunetbook10.10 operating system was officially launched on the system. According to the website description, the product has not been fully developed yet and supports multi-touch. The tablet is equipped with an IntelAtom processor (1.6 GHz clock speed) and comes standard with 2 GB memory and 32 GB solid st
Reprint Please specify source: http://blog.csdn.net/zhaokaiqiang1992The open source project that we are going to introduce to you today is the Photoview project from GitHub, the main function of this project is to achieve the reduction of the image of the common ImageView control, including single touch and multi touch.PhotoView's GitHub project address: Https://github.com/chrisbanes/PhotoViewThe directory
1Click-UITapGestureRecognizeroverridefuncviewdidload () { super.viewdidload () letrect=cgrect (x:80,y:200,width:200,height:200); varview1=uiview (Frame:rect) view1.backgroundcolor=uicolor.redcolor () self.view.addsubview (View1) NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;//1, creating gesture recognizers vargesture=uitapgesturerecognizer (target:self,action: "viewAction:") # warning If you want the recognizer to recognize a variety of touches, such as 1 points and 2 points, build 2 uitapg
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.