Today's mobile phones all support multi-touch function (can be image stretching, changing position), but how do we programmers to combine the hardware to achieve this function?Follow me to learn this functionInternational practice: First on demo free: http://download.csdn.net/detail/cnwutianhao/9443667Example Picture:I recorded with Genymotion, no real-world multi
It's been more than a month since we started using the alexp driver. on the Windows platform, we were able to get the camera and deep data, and then put it on a friend's Xbox for a few days, it's really powerful. I wanted to write a multi-touch software for it. To be precise, it should be an air-gap operation, like the one reported by the dispatcher. It is easy to write:
1) threshold value for deep data;
2)
MultiTouch ---- multi-touch, scaling images, changing image positions,
Today's mobile phones support multi-touch functions (images can be scaled and positions can be changed). But how can we use hardware to implement this function?
Follow me to learn this function
International practice: first DEMO free: http://downloa
This article describes the implementation of Multi-Touch (Multitouch) for Android programming. Share to everyone for your reference, specific as follows:
If you are interested in developing a multi-touch program, then this article will be a good start, Android application development, the
Address: http://blog.csdn.net/makefish/archive/2010/06/03/5645475.aspx
InLinxuIn the kernel, the finger information is abstracted into one by the kernelABSData packets are sent to the application in the driving sequence.
Multi-touchABSData packets are usually composedAbs_mtFlag. Driver callInput_mt_syncSendSyn_mt_reportTo indicateABSThe packet ends. Application ReceivedSyn_mt_reportAfter the event, the system processes the current data packet a
According to Linuxdevices, the French ENAC development team has developed a multi-touch (multi-touch) technology similar to the IPhone for the Linux kernel. The development team provides a video of the multi-touch technology used
Article title: Linux supports multi-touch operations. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Although most people do not buy a device with a touch screen, touch operations
. desireddeceleration = 10.0*96.0/(1000.0*1000.0); E. expansionbehavior = New Inertiaexpansionbehavior (); E. expansionbehavior. initialvelocity = E. initialvelocities. expansionvelocity; E. expansionbehavior. desireddeceleration = 0.1*96/1000 .0*1000.0; E. rotationbehavior = New Inertiarotationbehavior (); E. rotationbehavior. initialvelocity = E. initialvelocities. angularvelocity; E. rotationbehavior. desireddeceleration = 720/(1000.0*1000.0 );}
Program Demo
The following video shows that
After more exploration, there is no way to re-return to the Silverlight low-level touch event. However, gesturelistener is still reluctant to handle. After all, that operation is convenient. I can't help it now. I only need to write it myself. Just simulate it.
Now rewrite the previous live direction control disk.
First, complete the interface:
Interface is not available. It is basically the same as the previous interface, that is, the color is not
Android multi-touch is essentially supported by LCD drivers and programming. Currently, mobile phones that use capacitive screen touch can support multi-touch multitouch technology, provides a better user experience for webpage scaling and gesture operations. On the Android
During project development, a big map can be dragged by pressing and sliding with one finger. The two fingers can be opened or closed to zoom in and out the map.
To achieve this function, you need to use the cocos2d-x multi-touch function.
The multi-touch event does not mean that when you press two fingers and execute
Knowledge points involved in Android multi-touch1, Scalegesturedetector2, Onscalegesturelistener3. Matrix4, OntouchlistenerFour knowledge points need to understand, it should be noted that the matrix in memory is a one-dimensional array, manipulating the image of the matrxi is a 3x3 matrix, in memory is a size 9 of a one-dimensional array.Achieve multi-touch, fre
I wrote it some time ago and I will share it for your reference.
I have studied the source code of the image library, but it is too complicated for me to understand! I have also referred to some source code on the Internet, but many functions are incomplete. They are not what I want! I wrote a Class Based on the online code and some source code of the Image Library.
Unimplemented functions-step-by-step amplification, this matrix transformation will make me dizzy, and the project will not be used
need to use Getviewtreeobserver (). Addongloballayoutlistener () to get the width or height. This is one way to get the width and height of a view.2, then realized the Onscalegesturelistener and Ontouchlistener interfaceTo talk about their role:Create a scalegesturedetector for view, which provides the gesture change information for multi-touch, and requires onscalegesturelistener as an argument when insta
It's easy on iOS, in appcontroller.mm.[Eaglview Setmultipletouchenabled:yes]Set to No, is a single touch, no need to change the cocos underlying code;The practice on Android is to find the Cocos engine files referenced by the project:Cocos2dxglsurfaceview.java, find the Ontouchevent method, in the switch statementMotionevent.action_pointer_down Motionevent.action_downThe first line of the two case is written on: if return false;When the number of cur
Directory:About flash multi-touch development
This topic aims to develop a map case that supports multi-touch. As progress notes only
import flash.events.TransformGestureEvent; import flash.events.TouchEvent;import flash.text.TextField; var pointA_id:Number=0;var pointB_id:Number=0; addEventListener(TouchEvent.T
Still reading study and practice, but the book of mistakes really ...The first is Cclayer, which has written a class that inherits from Ccsprite, implements a single touch with the finger, overrides the begin,moved and end functions, and then sets and cancels the proxy in OnEnter and Oneixt. The example in the book is directly to the HelloWorld, not only rewrite the three functions, but also rewrite the Registerwithtouchdispatcher function, I write al
This articleArticleDescribes how to process gesture events in multi-touch web development.Gesture in fruit devices, broadly speaking, includes click, flick, double-click, and scale) rotate and so on. IOS has designed a series of gestures to simulate and extend mouse operations. For example, a click event is triggered when a finger is put down, the mouse slides up and stops, and the onscroll event of the bod
you have to report two times, the code setting delay is already 2ms, plus a pair of code, absolutely more than 3ms. so the delay from 1ms to 500us is reported when the packet is divided into 2 packets as follows: Else // other packages, set to 0 { delay_us (+); reportbuf[0; }finally still can not 5 points, 5 points directly disorderly report. It seems that the real firmware does not support 5 points, so read only 4 pointsFor (i=0;i{i
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.