CN107229406A - Embedded device touch-screen gesture processing method - Google Patents
Embedded device touch-screen gesture processing method Download PDFInfo
- Publication number
- CN107229406A CN107229406A CN201710433815.2A CN201710433815A CN107229406A CN 107229406 A CN107229406 A CN 107229406A CN 201710433815 A CN201710433815 A CN 201710433815A CN 107229406 A CN107229406 A CN 107229406A
- Authority
- CN
- China
- Prior art keywords
- touch
- screen
- event
- information
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of embedded device touch-screen gesture processing method, comprise the following steps:The interrupt event of control, preserves and sends interrupt event on the touch-screen and touch-screen monitored to event handling center registration screen;The gesture information obtained on touch-screen is monitored in real time;Compare the interrupt event that gesture information is sent with event handling center, obtain the click event or the rolling event of touch-screen of control.Whether the present invention can be clicked with any control on real-time perception touch-screen, or whether have rolling event, its maximum innovation is can flexibly to define the interrupt event of touch-screen, the touch effective range of control can be changed, so that control obtains bigger touch area, and icon area is no longer limited to, it is especially suitable for the user having defective vision.In addition, some small rollings in the present invention can also be handled as click event.
Description
Technical field
The present invention relates to intelligent touch screen technology field, more particularly, to a kind of embedded device touch-screen gesture processing side
Method.
Background technology
, it is necessary to which the level change for capturing color screen produces and interrupts to notify in the hardware device for carrying capacitive touch screen
The gesture touch event of system.Color screen is provided solely for the level change touched, can only obtain the coordinate of current finger, it is impossible to obtain
The touch event of gesture, the present invention is researched and developed based on this.
The content of the invention
The present invention overcomes color screen presence in existing capacitive touch screen to obtain current finger coordinate, can not obtain gesture
Touch event the problem of, propose a kind of embedded device touch-screen gesture processing method, existing capacitance touch can be caused
Screen has the function that coordinate is obtained, gesture judges concurrently.
The concrete technical scheme of the present invention is as follows:
A kind of embedded device touch-screen gesture processing method, comprises the following steps:
The interrupt event of control, preserves and sends on the touch-screen and touch-screen monitored to event handling center registration screen
Interrupt event;
The gesture information obtained on touch-screen is monitored in real time;
Compare the interrupt event that gesture information and event handling center are sent, obtain the click event or touch-screen of control
Rolling event.
It is preferred that register the interrupt event method of control as:
Coordinate, width, height, the id information of each control icons are obtained, and is held in event handling center.
It is preferred that the gesture information on touch-screen includes:
(1), whether there is the information of touch;
(2), touch point abscissa;
(3), touch point ordinate.
It is preferred that the gesture information on the touch-screen is separately stored in three registers.
It is preferred that it is described compare the interrupt event that gesture information is sent with event handling center method be:
Last time monitors the gesture information obtained and compared with current gesture information:
If there is touch the last time and not touched currently, and last identical with current coordinate information, then it represents that triggering
Click event, compares coordinate, width, the elevation information of changing coordinates information and each control, and acquisition is clicked control id information simultaneously
Trigger the click event of the control;
If there is touch the last time and currently also has touch, and coordinate information is different twice, then it represents that triggering touch-screen rolling
Dynamic event.Using above-mentioned technical proposal, whether the present invention can be clicked with any control on real-time perception touch-screen, or whether
There is rolling event, its maximum innovation is can flexibly to define the interrupt event of touch-screen, thus it is possible to vary the touch of control is effective
Scope, so that control obtains bigger touch area, and is no longer limited to icon area, is especially suitable for the use having defective vision
Family.In addition, some small rollings in the present invention can also be handled as click event.
Brief description of the drawings
Fig. 1 is principle flow chart of the invention;
Fig. 2 is the definition figure of Wait events in Fig. 1;
Fig. 3 is event handling central flow figure in the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, invention is described in detail.
Referring to figs. 1 to Fig. 3, the present invention provides a kind of embedded device touch-screen gesture processing method, comprised the following steps:
The interrupt event of control, preserves and sends on the touch-screen and touch-screen monitored to event handling center registration screen
Interrupt event;
The gesture information obtained on touch-screen is monitored in real time;
Compare the interrupt event that gesture information and event handling center are sent, obtain the click event or touch-screen of control
Rolling event.
With continued reference to shown in Fig. 1, particularly, interrupt event first is monitored to system registry screen, that is, when finger is touched
When touching screen, the change of screen electric capacity will be caused, system kernel in time can come out this message transmission.Due to interrupting
Event it is especially fast, so we open a thread here, for preserving and sending these interrupt events, then open in addition
One endless loop is used for receiving these events (shown in the Wait events of reference picture 2), when application layer receives this message, will
The content of wherein 3 registers is read, a register is the number touch_pointers_ for preserving current screen touch point
Counts (being represented if value is 1 has a touch point 0 not have with regard to representing), two other is to preserve corresponding x coordinate and y to sit
Mark (being represented with point_x and point_y):
(1) if, be click on event, then corresponding determination methods are, last register data is saved,
If current touch_pointers_counts=0 and touch_pointers_counts=1 before, and this two
Individual coordinate is the same, then trigger click event with regard to representing.So how to know which control currently click on is, that
It is accomplished by registering this control click event (1:Coordinate 2:Width 3:Highly 4:Control id), when there is these data can
It is which control is clicked to calculate.
(2), if roll event, then solution be if current touch_pointers_counts=1 simultaneously
And touch_pointers_counts=1 and two coordinate before is changed, then it is determined that being rolling event.
Specific rotating direction is exactly that x the and y values for combining the two coordinates calculate left cunning or right cunning or upper cunning or downslide.
It is exemplified below the pre-ferred embodiment according to inventive concept:
Shown in reference picture 1 and Fig. 3, one piece of 100*100 touch-screen will do graphic interface above.Wherein there is one
Positioned at coordinate (x1, y1), the icon of wide a height of (w, h), present we will monitor its click event.
First register this click event to event handling center first, x=x1, y=y1, width=w, heigh=h, this
When processing center keep this data in list.
When receiving a click event from event processing center, current finger click coordinate, x=x2, y=can be provided
Y2, now the data and can keep data to be compared, if x2>x1&&x2<x1+w&&y2>y1&&y2<Y2+h, then
Just trigger the click event of the control.
Event is clicked on for above-mentioned self-defined registration control, the interrupt event of touch-screen can be flexibly defined, thus it is possible to vary
The touch effective range of control, so that control obtains bigger touch area, and is no longer limited to icon area, is especially suitable for
The user having defective vision.In addition, some small rollings in the present invention can also be handled as click event.
The foregoing is only a preferred embodiment of the present invention, but protection scope of the present invention be not limited thereto,
Any one skilled in the art in the technical scope of present disclosure, technique according to the invention scheme and its
Inventive concept is subject to equivalent substitution or change, should all be included within the scope of the present invention.
Claims (5)
1. a kind of embedded device touch-screen gesture processing method, it is characterised in that comprise the following steps:
The interrupt event of control, preserves and sends interruption on the touch-screen and touch-screen monitored to event handling center registration screen
Event;
The gesture information obtained on touch-screen is monitored in real time;
Compare the interrupt event that gesture information is sent with event handling center, obtain click event or the rolling of touch-screen of control
Event.
2. embedded device touch-screen gesture processing method according to claim 1, it is characterised in that in registration control
Disconnected event methods are:
Coordinate, width, height, the id information of each control icons are obtained, and is held in event handling center.
3. embedded device touch-screen gesture processing method according to claim 1, it is characterised in that the hand on touch-screen
Gesture information includes:
(1), whether there is the information of touch;
(2), touch point abscissa;
(3), touch point ordinate.
4. embedded device touch-screen gesture processing method according to claim 3, it is characterised in that on the touch-screen
Gesture information be separately stored in three registers.
5. embedded device touch-screen gesture processing method according to claim 4, it is characterised in that described to compare gesture
The method for the interrupt event that information is sent with event handling center is:
Last time monitors the gesture information obtained and compared with current gesture information:
If there is touch the last time and not touched currently, and last identical with current coordinate information, then it represents that triggering is clicked on
Event, compares coordinate, width, the elevation information of changing coordinates information and each control, and acquisition is clicked control id information and triggered
The click event of the control;
If there is touch the last time and currently also has touch, and coordinate information is different twice, then it represents that triggering touch-screen rolls thing
Part.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710433815.2A CN107229406A (en) | 2017-06-09 | 2017-06-09 | Embedded device touch-screen gesture processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710433815.2A CN107229406A (en) | 2017-06-09 | 2017-06-09 | Embedded device touch-screen gesture processing method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107229406A true CN107229406A (en) | 2017-10-03 |
Family
ID=59934812
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710433815.2A Pending CN107229406A (en) | 2017-06-09 | 2017-06-09 | Embedded device touch-screen gesture processing method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107229406A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107765918A (en) * | 2017-10-18 | 2018-03-06 | 广州视源电子科技股份有限公司 | Method and system for optimizing edge touch effect of capacitive touch screen |
| CN114270298A (en) * | 2019-10-08 | 2022-04-01 | 深圳市欢太科技有限公司 | Touch event processing method and device, mobile terminal and storage medium |
| WO2025011093A1 (en) * | 2023-07-10 | 2025-01-16 | 荣耀终端有限公司 | Anomaly event processing method, electronic device, and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101840299A (en) * | 2010-03-18 | 2010-09-22 | 华为终端有限公司 | Touch operation method, device and mobile terminal |
| CN105425966A (en) * | 2015-12-14 | 2016-03-23 | 珠海全志科技股份有限公司 | Gesture control method and device based on Android system |
| US20160132181A1 (en) * | 2014-11-12 | 2016-05-12 | Kobo Incorporated | System and method for exception operation during touch screen display suspend mode |
-
2017
- 2017-06-09 CN CN201710433815.2A patent/CN107229406A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101840299A (en) * | 2010-03-18 | 2010-09-22 | 华为终端有限公司 | Touch operation method, device and mobile terminal |
| US20160132181A1 (en) * | 2014-11-12 | 2016-05-12 | Kobo Incorporated | System and method for exception operation during touch screen display suspend mode |
| CN105425966A (en) * | 2015-12-14 | 2016-03-23 | 珠海全志科技股份有限公司 | Gesture control method and device based on Android system |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107765918A (en) * | 2017-10-18 | 2018-03-06 | 广州视源电子科技股份有限公司 | Method and system for optimizing edge touch effect of capacitive touch screen |
| CN114270298A (en) * | 2019-10-08 | 2022-04-01 | 深圳市欢太科技有限公司 | Touch event processing method and device, mobile terminal and storage medium |
| WO2025011093A1 (en) * | 2023-07-10 | 2025-01-16 | 荣耀终端有限公司 | Anomaly event processing method, electronic device, and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10866730B2 (en) | Touch screen-based control method and apparatus | |
| US9436379B2 (en) | Control method and electronic device | |
| US9182884B2 (en) | Pinch-throw and translation gestures | |
| CN103238135B (en) | Gesture support for shared sessions | |
| CN104007930B (en) | A kind of mobile terminal and realize the method and apparatus of one-handed performance | |
| US20110205169A1 (en) | Multi-touch input apparatus and its interface method using hybrid resolution based touch data | |
| EP2825955B1 (en) | Input data type profiles | |
| CN106201207B (en) | A kind of virtual reality exchange method and device | |
| US20160283054A1 (en) | Map information display device, map information display method, and map information display program | |
| US9785289B2 (en) | GUI control improvement using a capacitive touch screen | |
| KR20120072932A (en) | Method and apparatus for providing touch interface | |
| CN103092525B (en) | A kind of screenshotss method of mobile terminal and the mobile terminal based on this screenshotss method thereof | |
| JP6128363B2 (en) | Data reporting method and apparatus, and terminal device | |
| US9582094B2 (en) | Information processing device, display device with touch panel, information processing method, and program | |
| US20150109209A1 (en) | Method, Air Mouse, and Set Top Box for Controlling Air Mouse | |
| CN104571693A (en) | Information processing method and electronic equipment | |
| JP2015504219A (en) | Pan animation | |
| CN105607853B (en) | A kind of information processing method and electronic equipment | |
| CN107229406A (en) | Embedded device touch-screen gesture processing method | |
| CN108073334A (en) | A kind of suspension touch control method and device based on vector calculus | |
| CN107273009A (en) | A kind of method and system of the quick screenshotss of mobile terminal | |
| US10656746B2 (en) | Information processing device, information processing method, and program | |
| CN103984478B (en) | Dynamic icon displaying method and system | |
| CN103761027B (en) | The realization method and system that a kind of icon rotates | |
| CN103164142B (en) | The method of adjustment of a kind of screen touch point position of picture-in-picture interface and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171003 |
|
| RJ01 | Rejection of invention patent application after publication |