[go: up one dir, main page]

CN103353804A - Cursor control method and device based on touch tablet - Google Patents

Cursor control method and device based on touch tablet Download PDF

Info

Publication number
CN103353804A
CN103353804A CN2013102774835A CN201310277483A CN103353804A CN 103353804 A CN103353804 A CN 103353804A CN 2013102774835 A CN2013102774835 A CN 2013102774835A CN 201310277483 A CN201310277483 A CN 201310277483A CN 103353804 A CN103353804 A CN 103353804A
Authority
CN
China
Prior art keywords
cursor
touch
buffer memory
touch sensible
touch pad
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.)
Granted
Application number
CN2013102774835A
Other languages
Chinese (zh)
Other versions
CN103353804B (en
Inventor
何俊宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Rapoo Technology Co Ltd
Original Assignee
Shenzhen Rapoo Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Rapoo Technology Co Ltd filed Critical Shenzhen Rapoo Technology Co Ltd
Priority to CN201310277483.5A priority Critical patent/CN103353804B/en
Publication of CN103353804A publication Critical patent/CN103353804A/en
Application granted granted Critical
Publication of CN103353804B publication Critical patent/CN103353804B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The invention discloses a cursor control method and device based on a touch tablet. The method includes the steps that touch sensitive data on the touch tablet are collected and stored in a cache which is allocated in advance, wherein the touch sensitive data are position coordinates of touch sensitive cases in the touch tablet; whether the cache is full is detected, and if yes, current cursor reference position coordinates are calculated through a preset conversion rule according to all the touch sensitive data stored in the cache; the cursor moving offset of a display system is obtained according to the current cursor reference position coordinates and the cursor position coordinates calculated last time; the cursor moving offset is uploaded to the display system so that moving of a cursor in a display screen can be controlled according to the cursor moving offset. By means of the cursor control method and device based on the touch tablet, the DPI value when a user controls the cursor of the display screen to move through the touch tablet can adapt to the size of the display screen, and convenience is brought the user.

Description

A kind of cursor control method and device based on touch pad
Technical field
The present invention relates to the touch pad field, relate in particular to a kind of cursor control method based on touch pad and device.
Background technology
DPI (the Dots Per Inch) meaning is dots per inch, i.e. one inch corresponding cursor of pointer of the every movement of mouse is in mobile the counting of screen.The mouse of 1000DPI for example, in mobile one inch, the cursor on the screen can move 1000 points.That is to say when the user need mouse screen mobile one section fixing apart from the time, the mouse moving distance of high DPI is shorter.Simultaneously, when the mouse translational speed was accelerated, the cursor moving speed on the screen also can be accelerated thereupon, that is to say that the translational speed of DPI and mouse is directly proportional.
Along with the fast development of computer technology, touch pad has replaced mouse to become widely cursor input mode of a kind of use.Touch pad (TouchPad) essence is a kind of on level and smooth Trackpad, and the slide of the device of utilization finger or induction pen and so on moves or locating and displaying is shielded the input media of the position of upper cursor.Realize that by touch pad the cursor input is based on contact induction, device to finger or induction pen and so on contacts mobile the detection, and be converted to the computer cursor data, to realize the position of control cursor on the computer equipment display, for the user, very convenient by the cursor movement on the touch pad control display screen, need not external access of mouse, reduced the wiring complexity of equipment.
Existing touch pad is fixed at the DPI of control during cursor movement, if the user needs to regulate the speed of cursor movement, can only be undertaken or the cursor setting of the arrangement of computer devices of manually making amendment by design driven software.Large or hour when the computer equipment display screen, and the cursor that can't change equipment is when arranging, the user is then very not convenient by the cursor movement of touch pad control display screen.In addition, because touch pad is quick on the draw, translational speed is fast, may cause the user lower to the bearing accuracy of cursor, especially when relating to some to the higher application operating of positioning accuracy request, has brought inconvenience to the user.
Therefore, prior art is still waiting to improve.
Summary of the invention
The object of the present invention is to provide a kind of cursor control method based on touch pad and device, provide convenience for the user accurately controls cursor movement.
For reaching this purpose, the present invention by the following technical solutions:
One aspect of the present invention provides a kind of cursor control method based on touch pad, comprising:
Gather the touch sensible data on the touch pad, described touch sensible data are stored in the pre-assigned buffer memory, confirm that described buffer memory is full, then calculate current cursor reference position coordinate according to whole touch sensible data of storing in the described buffer memory;
Draw the cursor movement side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate that calculates;
Use the cursor movement in the described cursor movement side-play amount control display screen;
Wherein, described touch sensible data are the position coordinates of touch sensible event in the X of touch pad Y coordinate system.
Wherein, described pre-assigned buffer memory is the buffer memory that capacity can be stored the first in first out of 3 touch sensible data at least;
Described described touch sensible data are stored in the pre-assigned buffer memory, are specially:
Described touch sensible data are stored in the pre-assigned buffer memory by first in first out.
Wherein, describedly then calculate current cursor reference position coordinate according to whole touch sensible data of storing in the described buffer memory, comprising:
curX=(X0+X1……+Xn)/DB;
curY=(Y0+Y1……+Yn)/DB;
Wherein, X0, X1 ..., Xn is respectively the X value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory;
Y0, Y1 ..., Yn is respectively the Y value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory;
N is the amount of capacity of described buffer memory;
DB is default radix;
CurX is the X value of the current cursor reference position coordinate that draws;
CurY is the Y value of the current cursor reference position coordinate that draws.
Wherein, the described cursor reference position coordinate that calculates according to current cursor reference position coordinate and last time draws the cursor movement side-play amount, comprising:
If the coordinate system of system is opposite with the X Y coordinate system of touch pad, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
If the coordinate system of system is identical with the X Y coordinate system seat of touch pad, but the XY opposite direction, then:
cursorX=lastX-curX;
cursorY=lastY-curY;
If the coordinate system of system is identical with the X Y coordinate system of touch pad, X, Y-direction is identical, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates;
CursorX, cursorY are respectively X side-play amount, the Y side-play amount of the cursor movement side-play amount that draws.
Wherein, the touch sensible data on the described collection touch pad are specially: periodically gather touch sensible data on the touch pad by the default time interval.
Wherein, the described time interval is 8MS, 10MS or 16MS.
The present invention provides a kind of cursor movement control device based on touch pad on the other hand, comprising:
The touch sensible data acquisition module, be used for gathering the touch sensible data on the touch pad, described touch sensible data are stored in the pre-assigned buffer memory, confirm that described buffer memory is full, then calculate current cursor reference position coordinate according to whole touch sensible data of storing in the described buffer memory;
The side-play amount computing module is used for drawing the cursor movement side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate that calculates;
The cursor control module is used for the cursor movement that uses described cursor movement side-play amount control display to shield;
Wherein, described touch sensible data are the position coordinates of touch sensible event in the X of touch pad Y coordinate system.
Wherein, described pre-assigned buffer memory is the buffer memory that capacity can be stored the first in first out of 3 touch sensible data at least;
Described touch sensible data acquisition module specifically also is used for storing described touch sensible data into pre-assigned buffer memory by first in first out.
Wherein, described touch sensible data acquisition module specifically also is used for, and confirms that described buffer memory is full, then according to whole touch sensible data of storing in the described buffer memory, calculates current cursor reference position coordinate according to following formula:
curX=(X0+X1……+Xn)/DB;
curY=(Y0+Y1……+Yn)/DB;
Wherein, X0, X1 ..., Xn is respectively the X value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory;
Y0, Y1 ..., Yn is respectively the Y value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory;
N is the amount of capacity of described buffer memory;
DB is default radix;
CurX is the X value of the current cursor reference position coordinate that draws;
CurY is the Y value of the current cursor reference position coordinate that draws;
Described side-play amount computing module, concrete being used for draws the cursor movement side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate that calculates, and comprising:
If the coordinate system of system is opposite with the X Y coordinate system of touch pad, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
If the coordinate system of system is identical with the X Y coordinate system seat of touch pad, but the XY opposite direction, then:
cursorX=lastX-curX;
cursorY=lastY-curY;
If the coordinate system of system is identical with the X Y coordinate system of touch pad, X, Y-direction is identical, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates;
CursorX, cursorY are respectively X side-play amount, the Y side-play amount of the cursor movement side-play amount that draws.
Wherein, described touch sensible data acquisition module is also for the touch sensible data that periodically gather by the default time interval on the touch pad;
Wherein, the described time interval is 8MS, 10MS or 16MS.
Implement the embodiment of the invention, have following beneficial effect:
The embodiment of the invention is by providing a kind of cursor control method based on touch pad and device, calculate current cursor reference position coordinate according to a plurality of touch sensible data on the touch pad, and then draw cursor movement side-play amount in the corresponding display screen, so that the cursor movement precision is higher, linear track is more stable, and is rounder and more smooth; Simultaneously, the DPI value that makes things convenient for the user to adjust flexibly the mouse function of touch pad according to size and the individual use habit of display screen provides users with the convenient.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, the accompanying drawing that the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of a kind of cursor control method embodiment based on touch pad of the present invention.
Fig. 2 is the schematic diagram of the buffer memory data of a kind of cursor control method based on touch pad of the present invention.
Fig. 3 is the structural representation of a kind of cursor movement control device based on touch pad of the present invention.
Embodiment
Below in conjunction with accompanying drawing of the present invention technical scheme in the embodiment of the invention is carried out clear, complete description, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment of China of the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work belongs to the scope of protection of the invention.
A kind of cursor control method based on touch pad of the embodiment of the invention, be applicable to PC, panel computer, mobile phone, PDA(Personal Digital Assistant, palm PC), electronic reader, notebook computer, intelligent television, car-mounted terminal etc. are by the cursor movement of touch pad control display screen and the electronic equipment of location.
Below in conjunction with accompanying drawing 1-accompanying drawing 2, the cursor control method based on touch pad that the embodiment of the invention is provided describes in detail.
See also Fig. 1, Fig. 1 is the process flow diagram of the first embodiment of a kind of cursor control method based on touch pad of the present invention, and the method specifically comprises the steps S1-S4:
Step S1 gathers the touch sensible data on the touch pad, and described touch sensible data are stored in the pre-assigned buffer memory.Wherein, described touch sensible data are the position coordinates of touch sensible event in the X of touch pad Y coordinate system.
The touch sensible event comprises the event of the event of user's finger touch touch pad or the device click touch pad that the user uses induction pen and so on, and the touch sensible data on the collection touch pad namely gather the position coordinates on the corresponding touch pad of touch event.
Preferably, the embodiment of the invention periodically gathers touch sensible data on the touch pad by the default time interval, and the described time interval can be set as 8MS, 10MS or 16MS.The acquisition time interval that arranges is larger, and is just larger by the time-delay of the cursor movement in the touch pad control display screen, for the sensitivity of user's cursor movement, is convenient to the movement that the user accurately controls cursor.
Step S2 confirms that described buffer memory is full, then calculates current cursor reference position coordinate according to whole touch sensible data of storing in the described buffer memory.
Buffer memory is a memory chip on the hard disk controller, has the access rate that is exceedingly fast, and it is the impact damper between hard disk storage inside and the extraneous interface.According to wherein data storage method can be categorized as that last in, first out type and first-in first-out type.Because will be to the Tracking Recognition of carrying out of user's finger or induction pen motion, therefore need to gather at least 3 touch sensible data, and according to this 1st to the 3rd or touch sensible data more than three are deposited in the buffer memory of pre-assigned first-in first-out, therefore pre-assigned buffer memory is the buffer memory that capacity can be stored the first in first out of 3 touch sensible data at least described in this enforcement, and described buffer memory capacity is larger, storable touch sensible data are more, the quantity of touch sensible data that then participate in to calculate current cursor reference position coordinate is larger, the cursor reference position coordinate that draws is more accurate, can reduce thus the jitter phenomenon of cursor movement; But along with the increase of buffer memory capacity, also can cause the time-delay of cursor reaction to strengthen.The touch sensible data that the user can distribute suitable cache size to arrive with storage of collected in advance according to actual needs.
Preferably, in the present embodiment, current cursor reference position coordinate is designated as (CurX, CurY), described whole touch sensible data according to storing in the described buffer memory calculate current cursor reference position coordinate, are specially:
curX=(X0+X1……+Xn)/DB;
curY=(Y0+Y1……+Yn)/DB;
Wherein, X0, X1 ..., Xn is respectively the X value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory; Y0, Y1 ..., Yn is respectively the Y value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory; N is the amount of capacity of described buffer memory, and should be worth more than or equal to 3, shown that further the storable touch sensible data of pre-assigned buffer memory are more, be that n is larger, participate in touch sensible data more of conversion, the cursor position coordinate that corresponding conversion goes out is more stable, can reduce thus the jitter phenomenon of cursor movement.DB is the radix of the DPI value of the mouse function of default realization adjusting touch pad; CurX is the X value of the current cursor reference position coordinate that draws; CurY is the Y value of the current cursor reference position coordinate that draws.
Step S3 draws the cursor movement side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate that calculates.
As from the foregoing, the embodiment of the invention uses variable curX to preserve the X value of the current cursor reference position coordinate that calculates, use variable curY to preserve the Y value of the current cursor reference position coordinate that calculates, the X value of using variable last X to preserve the last current cursor reference position coordinate that calculates, the Y value of using variable last Y to preserve the last current cursor reference position coordinate that calculates.
Preferably, draw the cursor movement side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate that calculates in the present embodiment, specifically be divided into following 3 kinds of situations.
Situation one, if the coordinate system of system is opposite with the X Y coordinate system of touch pad, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates; CursorX, cursorY are respectively X side-play amount, the Y side-play amount of the cursor movement side-play amount that draws.
Situation two, if the coordinate system of system is identical with the X Y coordinate system seat of touch pad, but the XY opposite direction, then:
cursorX=lastX-curX;
cursorY=lastY–curY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates; CursorX, cursorY are respectively X side-play amount, the Y side-play amount of the cursor movement side-play amount that draws.
Situation three, if the coordinate system of system is identical with the X Y coordinate system of touch pad, X, Y-direction is identical, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates; CursorX, cursorY are respectively X side-play amount, the Y side-play amount of the cursor movement side-play amount that draws.
As seen, described radix DB is less, and corresponding DPI value is larger, and user's finger is only needing mobile a bit of distance can control the movement of the larger side-play amount of cursor on display screen on the touch pad; Radix DB is larger, and corresponding DPI value is less, comparatively speaking, user's finger mobile formed objects distance on touch pad, corresponding cursor diminishes in the mobile side-play amount of display screen.The value of concrete radix DB can be set according to actual conditions, and then makes things convenient for the user to pass through cursor in the display screen of touchpad operation different size.
And, according to current cursor reference position coordinate and on after the cursor position coordinate that once calculates draws the cursor movement side-play amount, also need upgrade the cursor reference position coordinate that the described last time calculates, be specially: with the value assignment of described variable curX, curY to variable last X, last Y.
Step S4 uses the cursor movement in the described cursor movement side-play amount control display screen.Be specially, upload described cursor movement side-play amount to system, system is according to the cursor movement in the described cursor movement side-play amount control display screen.
In the present embodiment, when described buffer memory is filled with, whole touch sensible data of wherein storage is carried out equalization process, divided by the radix of default reaction DPI value, can so that the current cursor reference position coordinate that calculates is more accurate, prevent jitter phenomenon again.。
Preferably, the described time interval is set to 8MS in the embodiment of the invention.And as shown in Figure 2, preferentially, the capacity of buffer memory described in the present embodiment is for can store 3 touch sensible data, and the touch sensible data of namely having stored front 3 8MS in described buffer memory are labeled as after the data 0,1,2 according to this; When next acquisition time arrives, when namely next 8MS arrives, shift out first data 0, the touch sensible data that will newly gather again deposit in, are labeled as data 3; In like manner, when next 8MS arrives again, shift out first data 1, the new touch sensible data that gather of restoring are labeled as data 4, by that analogy.
The cursor control method based on touch pad of the above embodiment of the present invention can be by regulating the DPI value that is worth different touch pad of DB, and below the act instantiation is explained.
The coordinate system of supposing device systems is identical with the X Y coordinate system of touch pad, X, and Y-direction is identical; Described buffer memory can be stored 3 touch sensible data, and namely buffer memory is the buffer memory that can store the touch sensible data of 3*8MS, and position coordinates corresponding to described touch sensible data is designated as (X0, Y0), (X1, Y1) and (X2, Y2), and has:
X0=10,X1=30,X2=20;
Y0=0,Y1=20,Y2=30;
The cursor reference position coordinate that the last time of storing in the system calculates is: lastX=10, lastY=12;
When default radix DB=1, draw current cursor side-play amount and be calculated as follows:
curX=(X0+X1+X3)/DB=(10+30+20)/1=60;
curY=(Y0+Y1+Y3)/DB=(0+20+30)/1=50;
cursorX=curX–lastX=60–10=50;
cursorY=curY–lastY=50–12=38;
As seen the cursor movement side-play amount is directions X 50 in display screen corresponding to active user's touchpad operation, Y-direction 38.
When default described radix DB=2, the cursor side-play amount is calculated as:
curX=(X0+X1+X3)/DB=(10+30+20)/2=30;
curY=(Y0+Y1+Y3)/DB=(0+20+30)/2=25;
cursorX=curX–lastX=30–10=20;
cursorY=curY–lastY=25–12=13;
As seen the side-play amount of cursor movement is directions X 20 in display screen corresponding to the same touchpad operation of active user, Y-direction 13.The side-play amount of the cursor movement during with respect to radix DB=1 diminishes.The user provides the value of regulating radix DB, realizes the purpose of the DPI value of adjusting touch pad.
The cursor control method based on touch pad by above-described embodiment, calculate the position coordinates of current cursor according to a plurality of touch sensible data on the touch pad, and then draw the side-play amount of cursor in the corresponding display screen, so that the cursor movement precision is higher, linear track is more stable, and is rounder and more smooth; Simultaneously, the DPI value that makes things convenient for the user to adjust flexibly the mouse function of touch pad according to size and the individual use habit of display screen provides users with the convenient.
Below the embodiment based on the cursor movement control device of touch pad that provides for the embodiment of the invention.The embodiment of described device and above-mentioned embodiment of the method belong to same design, and the detail content of detailed description not in device embodiment can be with reference to said method embodiment.
Below in conjunction with accompanying drawing 3, the cursor movement control device based on touch pad that the embodiment of the invention is provided describes in detail.
See also Fig. 3, the cursor movement control device based on touch pad of the embodiment of the invention comprises touch sensible data acquisition module 310, side-play amount computing module 320 and cursor control module 330.
Touch sensible data acquisition module 310, be used for gathering the touch sensible data on the touch pad, described touch sensible data are stored in the pre-assigned buffer memory, confirm that described buffer memory is full, then calculate current cursor reference position coordinate according to whole touch sensible data of storing in the described buffer memory.
Side-play amount computing module 320 is used for drawing the cursor movement side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate that calculates.
Cursor control module 330 is used for the cursor movement that uses described cursor movement side-play amount control display to shield.
Preferably, wherein, described pre-assigned buffer memory is the buffer memory that capacity can be stored the first in first out of 3 touch sensible data at least.Described touch sensible data acquisition module 310 specifically also is used for storing described touch sensible data into pre-assigned buffer memory by first in first out.
Described touch sensible data acquisition module 310 is also for the touch sensible data that periodically gather by the default time interval on the touch pad; The described time interval is 8MS, 10MS or 16MS.The preferred time interval is 8MS in the present embodiment.
Further, described touch sensible data acquisition module 310 also is used for confirming that described buffer memory is full, then according to following formula, calculates current cursor reference position coordinate according to whole touch sensible data of storing in the described buffer memory:
curX=(X0+X1……+Xn)/DB;
curY=(Y0+Y1……+Yn)/DB;
Wherein, X0, X1 ..., Xn is respectively the X value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory; Y0, Y1 ..., Yn is respectively the Y value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory; N is the amount of capacity of described buffer memory, and should be worth more than or equal to 3, shown that further the storable touch sensible data of pre-assigned buffer memory are more, be that n is larger, the touch sensible data of participate in calculating more, the cursor reference position coordinate that correspondence draws is more stable, can reduce thus the jitter phenomenon of cursor movement.DB is the radix of default reaction DPI value; CurX is the X value of the current cursor reference position coordinate that draws; CurY is the Y value of the current cursor reference position coordinate that draws.
As seen, described radix DB is less, and corresponding DPI value is larger, and user's finger is only needing mobile a bit of distance can control the movement of the larger side-play amount of cursor on display screen on the touch pad; Described radix DB is larger, and corresponding DPI value is less, comparatively speaking, user's finger mobile formed objects distance on touch pad, corresponding cursor diminishes in the mobile side-play amount of display screen.The value of concrete radix DB can be set according to actual conditions, and then makes things convenient for the user to pass through cursor in the display screen of touchpad operation different size.
Described side-play amount computing module 320 specifically is used for, if the coordinate system of system is opposite with the X Y coordinate system of touch pad, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates; CursorX, cursorY are respectively X side-play amount, the Y side-play amount that draws the photometry mark and move side-play amount.
If the coordinate system of system is identical with the X Y coordinate system seat of touch pad, but the XY opposite direction, then:
cursorX=lastX-curX;
cursorY=lastY-curY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates; CursorX, cursorY are respectively X side-play amount, the Y side-play amount of the cursor movement side-play amount that draws.
If the coordinate system of system is identical with the X Y coordinate system of touch pad, X, Y-direction is identical, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates; CursorX, cursorY are respectively X side-play amount, the Y side-play amount of the cursor movement side-play amount that draws.
By implementing a kind of cursor control method and the device based on touch pad of the above embodiment of the present invention, calculate the position coordinates of current cursor according to a plurality of touch sensible data on the touch pad, and then draw the side-play amount of cursor in the corresponding display screen, so that the cursor movement precision is higher, linear track is more stable, and is rounder and more smooth; Simultaneously, the DPI value that makes things convenient for the user to adjust flexibly the mouse function of touch pad according to size and the individual use habit of display screen provides users with the convenient.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to finish by the relevant hardware of computer program instructions, described program can be stored in the computer-readable access media, when this program is carried out, can comprise the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (random access memory, RAM) etc.
Above disclosed only is preferred embodiment of the present invention, certainly can not limit with this claim scope of the present invention, therefore, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., still belong to the scope that the present invention is contained.

Claims (10)

1. the cursor control method based on touch pad is characterized in that, comprising:
Gather the touch sensible data on the touch pad, described touch sensible data are stored in the pre-assigned buffer memory, confirm that described buffer memory is full, then calculate current cursor reference position coordinate according to whole touch sensible data of storing in the described buffer memory;
Draw the cursor movement side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate that calculates;
Use the cursor movement in the described cursor movement side-play amount control display screen;
Wherein, described touch sensible data are the position coordinates of touch sensible event in the X of touch pad Y coordinate system.
2. the cursor control method based on touch pad according to claim 1 is characterized in that, described pre-assigned buffer memory is the buffer memory that capacity can be stored the first in first out of 3 touch sensible data at least;
Described described touch sensible data are stored in the pre-assigned buffer memory, are specially:
Described touch sensible data are stored in the pre-assigned buffer memory by first in first out.
3. the cursor control method based on touch pad according to claim 2 is characterized in that, describedly then calculates current cursor reference position coordinate according to whole touch sensible data of storing in the described buffer memory, comprising:
curX=(X0+X1……+Xn)/DB;
curY=(Y0+Y1……+Yn)/DB;
Wherein, X0, X1 ..., Xn is respectively the X value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory;
Y0, Y1 ..., Yn is respectively the Y value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory;
N is the amount of capacity of described buffer memory;
DB is default radix;
CurX is the X value of the current cursor reference position coordinate that draws;
CurY is the Y value of the current cursor reference position coordinate that draws.
4. the cursor control method based on touch pad according to claim 2 is characterized in that, the described cursor reference position coordinate that calculates according to current cursor reference position coordinate and last time draws the cursor movement side-play amount, comprising:
If the coordinate system of system is opposite with the X Y coordinate system of touch pad, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
If the coordinate system of system is identical with the X Y coordinate system seat of touch pad, but the XY opposite direction, then:
cursorX=lastX-curX;
cursorY=lastY-curY;
If the coordinate system of system is identical with the X Y coordinate system of touch pad, X, Y-direction is identical, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates;
CursorX, cursorY are respectively X side-play amount, the Y side-play amount of the cursor movement side-play amount that draws.
5. the cursor control method based on touch pad according to claim 2 is characterized in that, the touch sensible data on the described collection touch pad are specially: periodically gather touch sensible data on the touch pad by the default time interval.
6. the cursor control method based on touch pad according to claim 5 is characterized in that, the described time interval is 8MS, 10MS or 16MS.
7. the cursor movement control device based on touch pad is characterized in that, comprising:
The touch sensible data acquisition module, be used for gathering the touch sensible data on the touch pad, described touch sensible data are stored in the pre-assigned buffer memory, confirm that described buffer memory is full, then calculate current cursor reference position coordinate according to whole touch sensible data of storing in the described buffer memory;
The side-play amount computing module is used for drawing the cursor movement side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate that calculates;
The cursor control module is used for the cursor movement that uses described cursor movement side-play amount control display to shield;
Wherein, described touch sensible data are the position coordinates of touch sensible event in the X of touch pad Y coordinate system.
8. device according to claim 7 is characterized in that, wherein, described pre-assigned buffer memory is the buffer memory that capacity can be stored the first in first out of 3 touch sensible data at least;
Described touch sensible data acquisition module specifically also is used for storing described touch sensible data into pre-assigned buffer memory by first in first out.
9. device according to claim 8, it is characterized in that, described touch sensible data acquisition module specifically also is used for, and confirms that described buffer memory is full, then according to whole touch sensible data of storing in the described buffer memory, calculate current cursor reference position coordinate according to following formula:
curX=(X0+X1……+Xn)/DB;
curY=(Y0+Y1……+Yn)/DB;
Wherein, X0, X1 ..., Xn is respectively the X value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory;
Y0, Y1 ..., Yn is respectively the Y value of the position coordinates of touch sensible event in touch pad XY coordinate system that is stored in each touch sensible data in the described buffer memory;
N is the amount of capacity of described buffer memory;
DB is default radix;
CurX is the X value of the current cursor reference position coordinate that draws;
CurY is the Y value of the current cursor reference position coordinate that draws;
Described side-play amount computing module, concrete being used for draws the cursor movement side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate that calculates, and comprising:
If the coordinate system of system is opposite with the X Y coordinate system of touch pad, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
If the coordinate system of system is identical with the X Y coordinate system seat of touch pad, but the XY opposite direction, then:
cursorX=lastX-curX;
cursorY=lastY-curY;
If the coordinate system of system is identical with the X Y coordinate system of touch pad, X, Y-direction is identical, then:
cursorX=curX–lastX;
cursorY=curY–lastY;
Wherein, lastX, lastY are respectively CurX, the CurY that the last time calculates;
CursorX, cursorY are respectively X side-play amount, the Y side-play amount of the cursor movement side-play amount that draws.
10. device according to claim 8 is characterized in that, described touch sensible data acquisition module is also for the touch sensible data that periodically gather by the default time interval on the touch pad;
Wherein, the described time interval is 8MS, 10MS or 16MS.
CN201310277483.5A 2013-07-03 2013-07-03 A kind of cursor control method based on touch pad and device Expired - Fee Related CN103353804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310277483.5A CN103353804B (en) 2013-07-03 2013-07-03 A kind of cursor control method based on touch pad and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310277483.5A CN103353804B (en) 2013-07-03 2013-07-03 A kind of cursor control method based on touch pad and device

Publications (2)

Publication Number Publication Date
CN103353804A true CN103353804A (en) 2013-10-16
CN103353804B CN103353804B (en) 2016-06-22

Family

ID=49310183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310277483.5A Expired - Fee Related CN103353804B (en) 2013-07-03 2013-07-03 A kind of cursor control method based on touch pad and device

Country Status (1)

Country Link
CN (1) CN103353804B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808873A (en) * 2014-01-29 2015-07-29 原相科技股份有限公司 Method for Determining Adaptive DPI Curve and Touch Device Using the Method
WO2017114257A1 (en) * 2015-12-31 2017-07-06 青岛海尔股份有限公司 Method and device for displaying interface
CN108762554A (en) * 2018-05-18 2018-11-06 北京硬壳科技有限公司 touch event response method and device
CN108744508A (en) * 2018-05-18 2018-11-06 北京硬壳科技有限公司 touch event response method and device
CN109117063A (en) * 2017-06-22 2019-01-01 广州市动景计算机科技有限公司 A kind of method for down loading and device, a kind of terminal and storage medium
US10379638B2 (en) 2014-01-23 2019-08-13 Pixart Imaging Inc. Method of determining adaptive DPI curve
CN116185210A (en) * 2021-11-26 2023-05-30 海信集团控股股份有限公司 Smart device and method for controlling movement of mouse cursor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1782975A (en) * 2004-12-03 2006-06-07 三星电子株式会社 Apparatus and method of processing information input using a touchpad
CN101520697A (en) * 2009-03-26 2009-09-02 埃派克森微电子(上海)有限公司 Trajectory smoothing method for optical indicator device
US20110231796A1 (en) * 2010-02-16 2011-09-22 Jose Manuel Vigil Methods for navigating a touch screen device in conjunction with gestures
CN102999192A (en) * 2011-09-08 2013-03-27 原相科技股份有限公司 Touch system and touch method with track detection function

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1782975A (en) * 2004-12-03 2006-06-07 三星电子株式会社 Apparatus and method of processing information input using a touchpad
CN101520697A (en) * 2009-03-26 2009-09-02 埃派克森微电子(上海)有限公司 Trajectory smoothing method for optical indicator device
US20110231796A1 (en) * 2010-02-16 2011-09-22 Jose Manuel Vigil Methods for navigating a touch screen device in conjunction with gestures
CN102999192A (en) * 2011-09-08 2013-03-27 原相科技股份有限公司 Touch system and touch method with track detection function

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10379638B2 (en) 2014-01-23 2019-08-13 Pixart Imaging Inc. Method of determining adaptive DPI curve
CN104808873A (en) * 2014-01-29 2015-07-29 原相科技股份有限公司 Method for Determining Adaptive DPI Curve and Touch Device Using the Method
CN104808873B (en) * 2014-01-29 2018-05-11 原相科技股份有限公司 Method for determining adaptive DPI curve and touch device using same
CN108681421A (en) * 2014-01-29 2018-10-19 原相科技股份有限公司 Adaptive DPI (deep Power inspection) determination method and touch device using same
CN108681421B (en) * 2014-01-29 2021-07-06 原相科技股份有限公司 Determination method of adaptive DPI and touch device using the method
WO2017114257A1 (en) * 2015-12-31 2017-07-06 青岛海尔股份有限公司 Method and device for displaying interface
CN109117063A (en) * 2017-06-22 2019-01-01 广州市动景计算机科技有限公司 A kind of method for down loading and device, a kind of terminal and storage medium
CN108762554A (en) * 2018-05-18 2018-11-06 北京硬壳科技有限公司 touch event response method and device
CN108744508A (en) * 2018-05-18 2018-11-06 北京硬壳科技有限公司 touch event response method and device
CN116185210A (en) * 2021-11-26 2023-05-30 海信集团控股股份有限公司 Smart device and method for controlling movement of mouse cursor

Also Published As

Publication number Publication date
CN103353804B (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN103353804A (en) Cursor control method and device based on touch tablet
US10452188B2 (en) Predictive compensation for a latency of an input device
KR101424294B1 (en) A computer implemented method and computer readable medium for performing an operation in response to an input and a gesture received from a user of a touch screen device
US10496193B1 (en) Digital pen with three-dimensional input interface
CN102760026B (en) A kind of touch screen interface display packing, display device and a kind of touch panel device
US9612675B2 (en) Emulating pressure sensitivity on multi-touch devices
JP5422724B1 (en) Electronic apparatus and drawing method
US20100321337A1 (en) Method for detecting touch position
US20050052427A1 (en) Hand gesture interaction with touch surface
EP2840471A1 (en) Method, device, and electronic terminal for unlocking
CN103092518B (en) A kind of mobile accurate touch control method of cloud desktop based on RDP agreement
EP2874063A2 (en) Method and apparatus for allocating computing resources in touch-based mobile device
CN205050078U (en) A wearable apparatus
CN104182144A (en) Mobile terminal interface browsing method and system
CN105975119A (en) Multi-target tracking method, and touch screen control method and system
US20110216014A1 (en) Multimedia wireless touch control device
CN110764652A (en) Infrared touch screen and touch point prediction method thereof
US20140071038A1 (en) Method for generating movement position coordinate and human-machine interface input system using the same
EP2669783A1 (en) Virtual ruler for stylus input
CN119292470A (en) Intelligent mouse auxiliary control method, device, electronic device and storage medium
US20120147050A1 (en) Method of entering a command for zooming image shown on touch screen and touch screen device reading such command
CN101799796A (en) Touch-screen calculator and method thereof for performing multi-step operation on input data
CN102486689A (en) Input method and terminal
CN102298465B (en) The implementation method and device of a kind of click of touch screen, positioning operation
CN114415857B (en) Terminal operation method and device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160622

Termination date: 20180703

CF01 Termination of patent right due to non-payment of annual fee