from: http://blog.chinaunix.net/uid-22030783-id-3023527.htmlThe kernel comes with s3c2440 touch-screen controller driver, which is the driver of input subsystem, the touch screen driver needs the support of ADC driver, the touch screen driver file is: DRIVERS/INPUT/TOUCHSCREEN/S3C2410_TS.Cadd support for touch-screen drivers in the mach-xc2440.c file to create S3c2410_ts_mach_info platform dataadd the necessary header files:#include xc2440_devices[] s
) {/TODO auto-generated m
Ethod stub toast.maketext (this, "Ondown", Toast.length_short). Show ();
return false; }//user Touch touch screen, has not yet loosened or dragged, by a 1 motionevent Action_down trigger//Note and Ondown () the difference, emphasis is not loosened or dragged state @Override public void Onsh Owpress (motionevent e) {//TODO auto-generated Method stub}//User (after touching the touchscreen) is released, triggered by a 1 mo
variables as follows: (or in shell form)
Export T_root=/mnt/yaffs/mytslib
Export Ld_library_path= $T _root/lib
Export Tslib_consoledevice=none
Export tslib_fbdevice=/dev/fb0
Export Tslib_tsdevice=/dev/input/event0
Export tslib_plugindir= $T _root/lib/ts
Export tslib_conffile= $T _root/etc/ts.conf
Export Tslib_calibfile=/mnt/yaffs/pointercal (#tslib配置文件内容) I did not get to this file and should not be set also line
Explain:
Tslib_tsdevice//Touch screen device file name
Default (no inputapi):/de
When I first started learning Android, I felt that Google's documents were not good, and when we studied gestures, I felt that Google's documents were too poor. A lot of constants, properties, and methods don't even have a description. There is no description, but there are so many gestures in ongesturelistener, it does not have a description, who can understand onlongpress and onshowpress before they try.Is there a difference between onscroll and onfling? Google really needs to do a big surgery
moment.Throw (onfling): The finger moves quickly on the touchscreen and releases the action.Long Press (onlongpress): The finger is pressed for a period of time and is not loosened.Scrolling (onscroll): Fingers slide on the touchscreen.Press and Hold (onshowpress): The finger is pressed on the touchscreen, its time range is pressed, and before the long press.Lift (Onsingletapup): The moment the finger leav
onlongpress (). I have written the meaning of the gesture represented by each method in the comments, and you can see it.User touches touch screen, triggered by 1 motionevent action_downJava code
@Override
Public Boolean ondown (Motionevent e) {
//TODO auto-generated method stub
Toast.maketext (This, "Ondown", Toast.length_short). Show ();
return false;
}
//user touches touch screen, not released or dragged, triggered by a 1 motionevent action_down
//Note and Ondown (),
Modern UI processingApple keeps the Mac computer's touchscreen-free configuration. The handheld device (IPHONE,IPAD) does not have a desktop configuration, which is perfect. While Microsoft tried to bring the touchscreen into Windows, we saw the dual-system landscape of Windows 8/windows 8.1, a traditional desktop version and a modern UI magnet system. The result? Touch screen using desktop mode, is very i
Modern UI processingApple keeps the Mac computer's touchscreen-free configuration. The handheld device (IPHONE,IPAD) does not have a desktop configuration, which is perfect. While Microsoft tried to bring the touchscreen into Windows, we saw the dual-system landscape of Windows 8/windows 8.1, a traditional desktop version and a modern UI tile system. The result? Touch screen using desktop mode, is very imp
/* The user presses the touchscreen, quickly moves after releasing the public boolean onfling (Motionevent E1, motionevent E2, float Velocityx, float velocityy) {//Parameter explanation://E1:1th Action_down motionevent//E2: Movement speed on the last action_move motionevent//velocityx:x axis, pixels per second//movement speed on velocityy:y axis, pixels per second//Trigger condition: The coordinate displacement of the x-axis is greater than fling_min_
interested in the tablet domain, so many things to compare the touch direction, so early many friends using Windows 8 system is not used to the Windows 7 or Windows XP system, But the use of time has been slowly accustomed to, the following into the subject bar.1. Lock screenAfter booting, the user will first see the Windows 8 lock screen, which appears whenever the system starts, resumes, or logs on. If you are using a touchscreen device, you can lo
replaced the Gesturedetector, the official explanation: There are two ways to instantiate Gesturedetectorcompat :the Gesturedetector class provides two external interfaces: Ongesturelistener,ondoubletaplistener, and an internal class Simpleongesturelistener The Simpleongesturelistener class is a more convenient class for Gesturedetector to respond to different gestures, which implements the above two interfaces, which is a static class, meaning that it is actually an external class, We can inh
ITOP-4412 Arm Embedded Development Board----main featuresiTOP-4412 development platform is an embedded Development Board platform designed by Beijing Xun for electronic research and development, the core board is equipped with 64-bit dual-channel 2GB DDR3,16GBEMMC storage, Samsung s5m8767 Power management chip, low power consumption. Backplane onboard high precision GPS module, WiFi Bluetooth module, can,rs485 and other industrial interfaces. Information, source all open source.ITOP-4412 Arm Emb
development.1.2. Ucgui Source codeThe author of Ucgui 3.98 This version of the transplant as a description, this version of the Ucgui is the highest version of open source, after the version only provides library files, no longer open source, about Ucgui overview, use, porting and other details, you can directly read Ucgui user manual.1.3. Ucgui Interface ImplementationUcgui according to the functions it uses, it must first implement its corresponding function interface. For Ucgui, both the dis
This document describes how to develop an I2C interface touch screen driver mounted on the friendly mini-2440 platform.
Kernel edition linux-2.6.32.2,The platform is a touch screen with the arm9-s3c2440 + I2C interface.
For exampleLinux I2C driver architectureDescriptionHttp://www.lupaworld.com/273398/viewspace-204237.html
To mount a new I2C device, you need to implement three parts:
1) adapter hardware driver:The kernel has implemented the mini2440, I2C Adapter Driver, you can see the r
If your computer is not only a screen, but also has a screen or a projector, then with the help of the Win8.1 system, your computer can use dual-screen operation, can also be used for projection, you can use this technology to share your computer operation, show slide show, Even play your favorite game on a bigger screen. So how do you connect an extra projector or monitor for Win8.1? Let's take a look.
Win8.1 How to connect an extra projector or monitor
You can use DVI, VGA, or HDMI cables to
Having a second screen can help you view multiple open applications at the same time. You can also connect the projector so that everyone in the room can see your screen.
You can use a DVI, VGA, or HDMI cable to connect most monitors and projectors. (Some devices can even connect wirelessly.) For information, see projecting to a wireless monitor using Miracast. Your computer may have one or more of the following ports.
DVI, VGA, and HDMI ports
After you connect a monitor or projector to your
When developing embedded applications on resistive touch screens, the combination of qt+tslib is common and is a classic combination. The Tslib library provides a number of test programs, such as Ts_calibrate,ts_test, that can be used to calibrate and test the touchscreen. A routine is also provided in Qt, which is also used for touch-screen calibration (http://doc.qt.io/qt-4.8/qt-qws-mousecalibration-calibration-cpp.html), QT Library of the touch scr
JS touch events, generally used to move the end of the touchscreen slide
Copy Code code as follows:
$ (function () {Document.addeventlistener ("Touchmove", _touch, False);}) function _touch (event) {alert (1);}
Touchstart: Triggers when the finger touches the screen, even if a finger is already on the screen.Touchmove: A continuous trigger when the finger slides on the screen. During this event, calling Preventdefault () prevent
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.