CN103353804B - A kind of cursor control method based on touch pad and device - Google Patents

A kind of cursor control method based on touch pad and device Download PDF

Info

Publication number
CN103353804B
CN103353804B CN201310277483.5A CN201310277483A CN103353804B CN 103353804 B CN103353804 B CN 103353804B CN 201310277483 A CN201310277483 A CN 201310277483A CN 103353804 B CN103353804 B CN 103353804B
Authority
CN
China
Prior art keywords
cursor
touch pad
touch sensible
touch
buffer memory
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.)
Expired - Fee Related
Application number
CN201310277483.5A
Other languages
Chinese (zh)
Other versions
CN103353804A (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

Abstract

The invention discloses a kind of cursor control method based on touch pad and device, described method includes: gathers the touch sensible data on touch pad, and described touch sensible data is stored in pre-assigned buffer memory;Described touch sensible data are touch sensible event position coordinates in touch pad;Whether full detect described buffer memory, if so, then calculate current cursor reference position coordinate according to whole touch sensible data of storage in described buffer memory with the transformational rule preset;Show that the cursor of display system moves side-play amount according to current cursor reference position coordinate and the last cursor position coordinate calculated;Upload described cursor and move side-play amount to display system, move with the cursor moved in side-play amount control display screen according to described cursor。DPI value when the invention enables user to be moved by the cursor of touch pad control display screen is suitable for different display screen size, has passed through convenience for user。

Description

A kind of cursor control method based on touch pad and device
Technical field
The present invention relates to touch pad field, particularly relate to a kind of cursor control method based on touch pad and device。
Background technology
DPI (DotsPerInch) is meant to dots per inch, and what namely mouse often moved that the light corresponding to one inch of pointer is marked on screen movement counts。The mouse of such as 1000DPI, when mobile one inch, the cursor on screen can move 1000 points。That is, when user needs mouse to move distance one section fixing on screen, the mouse moving distance of high DPI is shorter。Meanwhile, when mouse translational speed is accelerated, the cursor moving speed on screen also can be accelerated therewith, 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 one using cursor input mode widely。Touch pad (TouchPad) is substantially a kind of on smooth Trackpad, utilizes the slide of the device of finger or induction pen etc to move or the input equipment of position of locating and displaying on-screen cursor。Realize cursor input by touch pad and be based on contact induction, the device of finger or induction pen etc is contacted mobile detection, and be converted to computer cursor data, with realize control light be marked on the position on computer equipment display, for a user, the cursor controlled on display screen by touch pad moves very convenient, it is not necessary to external access of mouse, reduces the wiring complexity of equipment。
The existing touch pad DPI when controlling cursor and moving is fixing, if user needs to regulate the speed that cursor moves, carries out or be performed manually by the cursor setting of amendment arrangement of computer devices only by design driven software。When computer equipment display screen bigger or less time, and when the cursor that cannot change equipment is arranged, the cursor that user controls display screen by touch pad moves then very not convenient。Further, since touch pad is quick on the draw, translational speed is fast, it is possible to causes that user is relatively low to light target positioning precision, particularly in when relating to some to the application operating that positioning accuracy request is higher, brings inconvenience to user。
Therefore, prior art need to improve。
Summary of the invention
It is an object of the invention to provide a kind of cursor control method based on touch pad and device, accurately control cursor for user and move and provide conveniently。
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, including:
Gather the touch sensible data on touch pad, described touch sensible data are stored in pre-assigned buffer memory, confirms that described buffer memory is full, then calculate current cursor reference position coordinate according to whole touch sensible data of storage in described buffer memory;
Show that cursor moves side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate calculated;
The cursor that described cursor moves in side-play amount control display screen is used to move;
Wherein, described touch sensible data are touch sensible event position coordinates in the XY coordinate system of touch pad。
Wherein, described pre-assigned buffer memory is the buffer memory that capacity at least can store the first in first out of 3 touch sensible data;
Described described touch sensible data are stored in pre-assigned buffer memory, particularly as follows:
Described touch sensible data are stored in pre-assigned buffer memory by first in first out。
Wherein, described, calculate current cursor reference position coordinate according to whole touch sensible data of storage in described buffer memory, including:
CurX=(X0+X1 ...+Xn)/DB;
CurY=(Y0+Y1 ...+Yn)/DB;
Wherein, the X value of the touch sensible event of each touch sensible data that X0, X1 ..., Xn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system;
The Y value of the touch sensible event of each touch sensible data that Y0, Y1 ..., Yn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system;
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 drawn;
CurY is the Y value of the current cursor reference position coordinate drawn。
Wherein, cursor reference position coordinate and the last cursor reference position coordinate calculated that described basis is current show that cursor moves side-play amount, including:
If the coordinate system of system is contrary with the XY coordinate system of touch pad, then:
CursorX=curX lastX;
CursorY=curY lastY;
If the coordinate system of system is identical with the XY coordinate system seat of touch pad, but XY is in opposite direction, then:
CursorX=lastX-curX;
CursorY=lastY-curY;
If the coordinate system of system is identical with the XY coordinate system of touch pad, X, Y-direction is identical, then:
CursorX=curX lastX;
CursorY=curY lastY;
Wherein, lastX, lastY respectively last curX, curY calculated;
The cursor that cursorX, cursorY respectively draw moves the X side-play amount of side-play amount, Y side-play amount。
Wherein, the touch sensible data on described collection touch pad, particularly as follows: the touch sensible data periodically gathered by the interval preset on touch pad。
Wherein, described interval is 8MS, 10MS or 16MS。
Another aspect of the present invention provides a kind of cursor movement control device based on touch pad, including:
Touch sensible data acquisition module, for gathering the touch sensible data on touch pad, described touch sensible data are stored in pre-assigned buffer memory, confirms that described buffer memory is full, then calculate current cursor reference position coordinate according to whole touch sensible data of storage in described buffer memory;
According to current cursor reference position coordinate and the last cursor reference position coordinate calculated, side-play amount computing module, for showing that cursor moves side-play amount;
Cursor controls module, for using the cursor that described cursor moves in side-play amount control display screen to move;
Wherein, described touch sensible data are touch sensible event position coordinates in the XY coordinate system of touch pad。
Wherein, described pre-assigned buffer memory is the buffer memory that capacity at least can store the first in first out of 3 touch sensible data;
Described touch sensible data acquisition module, is specifically additionally operable to store in pre-assigned buffer memory described touch sensible data by first in first out。
Wherein, described touch sensible data acquisition module is specifically additionally operable to, and confirms that described buffer memory is full, then according to whole touch sensible data of storage in described buffer memory, calculate current cursor reference position coordinate according to equation below:
CurX=(X0+X1 ...+Xn)/DB;
CurY=(Y0+Y1 ...+Yn)/DB;
Wherein, the X value of the touch sensible event of each touch sensible data that X0, X1 ..., Xn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system;
The Y value of the touch sensible event of each touch sensible data that Y0, Y1 ..., Yn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system;
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 drawn;
CurY is the Y value of the current cursor reference position coordinate drawn;
Described side-play amount computing module, specifically for showing that cursor moves side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate calculated, including:
If the coordinate system of system is contrary with the XY coordinate system of touch pad, then:
CursorX=curX lastX;
CursorY=curY lastY;
If the coordinate system of system is identical with the XY coordinate system seat of touch pad, but XY is in opposite direction, then:
CursorX=lastX-curX;
CursorY=lastY-curY;
If the coordinate system of system is identical with the XY coordinate system of touch pad, X, Y-direction is identical, then:
CursorX=curX lastX;
CursorY=curY lastY;
Wherein, lastX, lastY respectively last curX, curY calculated;
The cursor that cursorX, cursorY respectively draw moves the X side-play amount of side-play amount, Y side-play amount。
Wherein, described touch sensible data acquisition module, it is additionally operable to the touch sensible data periodically gathering on touch pad by default interval;
Wherein, described interval is 8MS, 10MS or 16MS。
Implement the embodiment of the present invention, have the advantages that
The embodiment of the present invention is by providing a kind of cursor control method based on touch pad and device, current cursor reference position coordinate is calculated according to the multiple touch sensible data on touch pad, and then show that in the display screen of correspondence, cursor moves side-play amount, make cursor mobile accuracy higher, linear track is more stable, rounder and more smooth;Meanwhile, facilitate user to adjust the DPI value of mouse function of touch pad flexibly according to the size of display screen and individual's use habit, provide users with the convenient。
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, drawings discussed below is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings。
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。
Detailed description of the invention
Technical scheme in the embodiment of the present invention is carried out clear, complete description by the accompanying drawing below in conjunction with the present invention, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments。Based on the embodiment of present invention China, the every other embodiment that those of ordinary skill in the art obtain under the premise not making creative work, broadly fall into the scope of protection of the invention。
A kind of cursor control method based on touch pad of the embodiment of the present invention, control, by touch pad, the electronic equipment that the cursor of display screen moves and positions suitable in PC, panel computer, mobile phone, PDA (PersonalDigitalAssistant, palm PC), electronic reader, notebook computer, intelligent television, car-mounted terminal etc.。
Below in conjunction with accompanying drawing 1-accompanying drawing 2, the cursor control method based on touch pad that the embodiment of the present invention is provided describes in detail。
Referring to the flow chart that Fig. 1, Fig. 1 are the first embodiments of a kind of cursor control method based on touch pad of the present invention, the method specifically includes following steps S1-S4:
Step S1, gathers the touch sensible data on touch pad, described touch sensible data is stored in pre-assigned buffer memory。Wherein, described touch sensible data are touch sensible event position coordinates in the XY coordinate system of touch pad。
Touch sensible event includes the event of user's finger touch pad or user uses the device of induction pen etc to click the event of touch pad, and namely the touch sensible data gathered on touch pad gather the position coordinates on the touch pad corresponding to touch event。
Preferably, the embodiment of the present invention periodically gathers the touch sensible data on touch pad by the interval preset, and described interval may be set to 8MS, 10MS or 16MS。The acquisition time interval arranged is more big, and the time delay moved by the cursor in touch pad control display screen is more big, the sensitivity decrease that cursor moves for a user, it is simple to user accurately controls light target and moves。
Step S2, confirms that described buffer memory is full, then calculate current cursor reference position coordinate according to whole touch sensible data of storage in described buffer memory。
Buffer memory is one piece of memory chip on hard disk controller, has the access rate being exceedingly fast, and it is the buffer between hard drive internal storage and extraneous interface。According to data storage method therein can be categorized as that last in, first out type and first-in first-out type。Owing to be tracked identification to what user's finger or induction pen moved, it is thus desirable at least gather 3 touch sensible data, and according to this touch sensible data of the 1st to the 3rd or more than three are stored in the buffer memory of pre-assigned FIFO, therefore pre-assigned buffer memory described in this enforcement is the buffer memory that capacity at least can store the first in first out of 3 touch sensible data, and described buffer memory capacity is more big, storable touch sensible data are more many, the quantity then participating in calculating the touch sensible data of current cursor reference position coordinate is more big, the cursor reference position coordinate drawn is more accurate, thus can reduce the jitter phenomenon that cursor moves;But along with the increase of buffer memory capacity, the time delay also resulting in cursor reaction strengthens。User can previously according to being actually needed the touch sensible data that the suitable cache size of distribution collects with storage。
It is preferred that in the present embodiment, be designated as (curX, curY) by current cursor reference position coordinate, described calculates current cursor reference position coordinate according to whole touch sensible data of storage in described buffer memory, particularly as follows:
CurX=(X0+X1 ...+Xn)/DB;
CurY=(Y0+Y1 ...+Yn)/DB;
Wherein, the X value of the touch sensible event of each touch sensible data that X0, X1 ..., Xn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system;The Y value of the touch sensible event of each touch sensible data that Y0, Y1 ..., Yn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system;N is the amount of capacity of described buffer memory, and this value is be more than or equal to 3, further demonstrate that pre-assigned buffer memory storable touch sensible data are more many, namely n is more big, participate in touch sensible data more many of conversion, the cursor position coordinate that corresponding conversion goes out is more stable, thus can reduce the jitter phenomenon that cursor moves。DB is the default radix realizing regulating the DPI value of the mouse function of touch pad;CurX is the X value of the current cursor reference position coordinate drawn;CurY is the Y value of the current cursor reference position coordinate drawn。
According to current cursor reference position coordinate and the last cursor reference position coordinate calculated, step S3, show that cursor moves side-play amount。
As from the foregoing, the embodiment of the present invention uses variable curX to preserve the X value of the current cursor reference position coordinate calculated, variable curY is used to preserve the Y value of the current cursor reference position coordinate calculated, use variable lastX to preserve the X value of the current cursor reference position coordinate that the last time calculates, use variable lastY to preserve the Y value of the current cursor reference position coordinate that the last time calculates。
It is preferred that according to current cursor reference position coordinate and the last cursor reference position coordinate calculated, the present embodiment show that cursor moves side-play amount, it is specifically divided into following 3 kinds of situations。
Situation one, if the coordinate system of system is contrary with the XY coordinate system of touch pad, then:
CursorX=curX lastX;
CursorY=curY lastY;
Wherein, lastX, lastY respectively last curX, curY calculated;The cursor that cursorX, cursorY respectively draw moves the X side-play amount of side-play amount, Y side-play amount。
Situation two, if the coordinate system of system is identical with the XY coordinate system seat of touch pad, but XY is in opposite direction, then:
CursorX=lastX-curX;
CursorY=lastY curY;
Wherein, lastX, lastY respectively last curX, curY calculated;The cursor that cursorX, cursorY respectively draw moves the X side-play amount of side-play amount, Y side-play amount。
Situation three, if the coordinate system of system is identical with the XY coordinate system of touch pad, X, Y-direction is identical, then:
CursorX=curX lastX;
CursorY=curY lastY;
Wherein, lastX, lastY respectively last curX, curY calculated;The cursor that cursorX, cursorY respectively draw moves the X side-play amount of side-play amount, Y side-play amount。
Visible, described radix DB is more little, and corresponding DPI value is more big, and user's finger only need to move a small distance and the movement of controllable cursor bigger side-play amount on a display screen on a touchpad;Radix DB is more big, and corresponding DPI value is more little, and comparatively speaking, user's finger moves formed objects distance on a touchpad, and the side-play amount that corresponding cursor moves on a display screen diminishes。The value of concrete radix DB can set according to practical situation, and then facilitates user to pass through the cursor in the various sizes of display screen of touchpad operation。
And, according to current cursor reference position coordinate and on after the cursor position coordinate that once calculates show that cursor moves side-play amount, also need to update the cursor reference position coordinate that the described last time calculates, particularly as follows: be assigned to variable lastX, lastY by the value of described variable curX, curY。
Step S4, uses the cursor that described cursor moves in side-play amount control display screen to move。Specifically, upload described cursor to move side-play amount to system, the cursor that system moves in side-play amount control display screen according to described cursor moves。
In the present embodiment, when described buffer memory is filled with, the whole touch sensible data wherein stored carrying out equalization process, then the radix divided by default reaction DPI value, the current cursor reference position coordinate that can make to calculate is more accurate, it is prevented that jitter phenomenon。。
It is preferred that described interval is set to 8MS by the embodiment of the present invention。Further, as shown in Figure 2, it may be preferable that the capacity of buffer memory described in the present embodiment is for can store 3 touch sensible data, namely when the touch sensible data storing front 3 8MS in described buffer memory, after being labeled as data 0,1,2 according to this;When next acquisition time arrives, when namely next 8MS arrives, first removal data 0, then the touch sensible data newly gathered are stored in, it is labeled as data 3;In like manner, when next one 8MS arrives, first removal data 1, the new touch sensible data gathered of restoring, it is labeled as data 4, by that analogy。
The cursor control method based on touch pad of the above embodiment of the present invention, can pass through to regulate DB worth go out different touch pad DPI value, below act instantiation is explained。
Assuming that the coordinate system of device systems is identical with the XY coordinate system of touch pad, X, Y-direction is identical;Described buffer memory can store 3 touch sensible data, and namely buffer memory is the buffer memory of the touch sensible data that can store 3*8MS, and position coordinates corresponding to described touch sensible data is designated as (X0, Y0), (X1, and (X2, Y2), and have Y1):
X0=10, X1=30, X2=20;
Y0=0, Y1=20, Y2=30;
The cursor reference position coordinate that in system, the last time of storage calculates is: lastX=10, lastY=12;
As default radix DB=1, show that current cursor side-play amount is 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;
In the display screen that the touchpad operation of visible active user is corresponding, cursor moves side-play amount is X-direction 50, Y-direction 38。
When presetting described radix DB=2, 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;
The side-play amount that in the display screen that the same touchpad operation of visible active user is corresponding, cursor moves is X-direction 20, Y-direction 13。The side-play amount that cursor during relative to radix DB=1 moves diminishes。User provides the value regulating radix DB, it is achieved regulate the purpose of the DPI value of touch pad。
By the cursor control method based on touch pad of above-described embodiment, calculate the position coordinates of current cursor according to the multiple touch sensible data on touch pad, and then draw light target side-play amount in the display screen of correspondence so that cursor mobile accuracy is higher, linear track is more stable, rounder and more smooth;Meanwhile, facilitate user to adjust the DPI value of mouse function of touch pad flexibly according to the size of display screen and individual's use habit, provide users with the convenient。
The embodiment of the cursor movement control device based on touch pad provided for the embodiment of the present invention below。The embodiment of described device and above-mentioned embodiment of the method belong to same design, the detail content of not detailed description in device embodiment, it is possible to 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 present invention is provided describes in detail。
Referring to Fig. 3, the cursor movement control device based on touch pad of the embodiment of the present invention includes touch sensible data acquisition module 310, side-play amount computing module 320 and cursor and controls module 330。
Touch sensible data acquisition module 310, for gathering the touch sensible data on touch pad, described touch sensible data are stored in 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 storage in described buffer memory.
According to current cursor reference position coordinate and the last cursor reference position coordinate calculated, side-play amount computing module 320, for showing that cursor moves side-play amount。
Cursor controls module 330, for using the cursor that described cursor moves in side-play amount control display screen to move。
It is preferred that wherein, described pre-assigned buffer memory is the buffer memory that capacity at least can store the first in first out of 3 touch sensible data。Described touch sensible data acquisition module 310, is specifically additionally operable to store in pre-assigned buffer memory described touch sensible data by first in first out。
Described touch sensible data acquisition module 310, is additionally operable to the touch sensible data periodically gathering on touch pad by default interval;Described interval is 8MS, 10MS or 16MS。In the present embodiment, preferred interval is 8MS。
Further, described touch sensible data acquisition module 310, it is additionally operable to confirm that described buffer memory is full, then according to equation below, calculates current cursor reference position coordinate according to whole touch sensible data of storage in described buffer memory:
CurX=(X0+X1 ...+Xn)/DB;
CurY=(Y0+Y1 ...+Yn)/DB;
Wherein, the X value of the touch sensible event of each touch sensible data that X0, X1 ..., Xn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system;The Y value of the touch sensible event of each touch sensible data that Y0, Y1 ..., Yn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system;N is the amount of capacity of described buffer memory, and this value is be more than or equal to 3, further demonstrate that pre-assigned buffer memory storable touch sensible data are more many, namely n is more big, participate in touch sensible data more many calculated, the cursor reference position coordinate that correspondence draws is more stable, thus can reduce the jitter phenomenon that cursor moves。DB is the radix presetting reaction DPI value;CurX is the X value of the current cursor reference position coordinate drawn;CurY is the Y value of the current cursor reference position coordinate drawn。
Visible, described radix DB is more little, and corresponding DPI value is more big, and user's finger only need to move a small distance and the movement of controllable cursor bigger side-play amount on a display screen on a touchpad;Described radix DB is more big, and corresponding DPI value is more little, and comparatively speaking, user's finger moves formed objects distance on a touchpad, and the side-play amount that corresponding cursor moves on a display screen diminishes。The value of concrete radix DB can set according to practical situation, and then facilitates user to pass through the cursor in the various sizes of display screen of touchpad operation。
Described side-play amount computing module 320 specifically for, if the coordinate system of system is contrary with the XY coordinate system of touch pad, then:
CursorX=curX lastX;
CursorY=curY lastY;
Wherein, lastX, lastY respectively last curX, curY calculated;CursorX, cursorY respectively show that light-metering mark moves the X side-play amount of side-play amount, Y side-play amount。
If the coordinate system of system is identical with the XY coordinate system seat of touch pad, but XY is in opposite direction, then:
CursorX=lastX-curX;
CursorY=lastY-curY;
Wherein, lastX, lastY respectively last curX, curY calculated;The cursor that cursorX, cursorY respectively draw moves the X side-play amount of side-play amount, Y side-play amount。
If the coordinate system of system is identical with the XY coordinate system of touch pad, X, Y-direction is identical, then:
CursorX=curX lastX;
CursorY=curY lastY;
Wherein, lastX, lastY respectively last curX, curY calculated;The cursor that cursorX, cursorY respectively draw moves the X side-play amount of side-play amount, Y side-play amount。
By implementing a kind of cursor control method based on touch pad and the device of the above embodiment of the present invention, the position coordinates of current cursor is calculated according to the multiple touch sensible data on touch pad, and then draw light target side-play amount in the display screen of correspondence, make cursor mobile accuracy higher, linear track is more stable, rounder and more smooth;Meanwhile, facilitate user to adjust the DPI value of mouse function of touch pad flexibly according to the size of display screen and individual's use habit, provide users with the convenient。
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, the hardware that can be by computer program instructions relevant completes, described program can be stored in a computer-readable access medium, when this program performs, it may include 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-OnlyMemory, ROM) or random store-memory body (randomaccessmemory, RAM) etc.。
Above disclosed it is only present pre-ferred embodiments, certainly the right of the present invention can not be limited with this, therefore, all any amendment, equivalent replacement and improvement etc. made within the spirit and principles in the present invention, still belong to the scope that the present invention contains。

Claims (9)

1. the cursor control method based on touch pad, it is characterised in that including:
Gather the touch sensible data on touch pad, described touch sensible data stored in pre-assigned buffer memory, confirms that described buffer memory is full, then calculate current cursor reference position coordinate according to whole touch sensible data of storage in described buffer memory:
CurX=(X0+X1 ...+Xn)/DB,
CurY=(Y0+Y1 ...+Yn)/DB;
Show that cursor moves side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate calculated;
The cursor that described cursor moves in side-play amount control display screen is used to move;
Wherein, described touch sensible data are touch sensible event position coordinates in the XY coordinate system of touch pad,
The X value of the touch sensible event of each touch sensible data that X0, X1 ..., Xn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system,
The Y value of the touch sensible event of each touch sensible data that Y0, Y1 ..., Yn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system,
DB is default radix,
CurX is the X value of the current cursor reference position coordinate drawn,
CurY is the Y value of the current cursor reference position coordinate drawn。
2. the cursor control method based on touch pad according to claim 1, it is characterised in that described pre-assigned buffer memory is the buffer memory that capacity at least can store the first in first out of 3 touch sensible data;
Described described touch sensible data are stored in pre-assigned buffer memory, particularly as follows:
Described touch sensible data are stored in pre-assigned buffer memory by first in first out。
3. the cursor control method based on touch pad according to claim 2, it is characterised in that cursor reference position coordinate and the last cursor reference position coordinate calculated that described basis is current show that cursor moves side-play amount, including:
If the coordinate system of system is contrary with the XY coordinate system of touch pad, then:
CursorX=curX lastX;
CursorY=curY lastY;
If the coordinate system of system is identical with the XY coordinate system seat of touch pad, but XY is in opposite direction, then:
CursorX=lastX-curX;
CursorY=lastY-curY;
If the coordinate system of system is identical with the XY coordinate system of touch pad, X, Y-direction is identical, then:
CursorX=curX lastX;
CursorY=curY lastY;
Wherein, lastX, lastY respectively last curX, curY calculated;
The cursor that cursorX, cursorY respectively draw moves the X side-play amount of side-play amount, Y side-play amount。
4. the cursor control method based on touch pad according to claim 2, it is characterised in that the touch sensible data on described collection touch pad, particularly as follows: the touch sensible data periodically gathered by the interval preset on touch pad。
5. the cursor control method based on touch pad according to claim 4, it is characterised in that described interval is 8MS, 10MS or 16MS。
6. the cursor movement control device based on touch pad, it is characterised in that including:
Touch sensible data acquisition module, for gathering the touch sensible data on touch pad, described touch sensible data are stored in 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 storage in described buffer memory:
CurX=(X0+X1 ...+Xn)/DB,
CurY=(Y0+Y1 ...+Yn)/DB;
According to current cursor reference position coordinate and the last cursor reference position coordinate calculated, side-play amount computing module, for showing that cursor moves side-play amount;
Cursor controls module, for using the cursor that described cursor moves in side-play amount control display screen to move;
Wherein, described touch sensible data are touch sensible event position coordinates in the XY coordinate system of touch pad,
The X value of the touch sensible event of each touch sensible data that X0, X1 ..., Xn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system,
The Y value of the touch sensible event of each touch sensible data that Y0, Y1 ..., Yn are respectively stored in described buffer memory position coordinates in touch pad XY coordinate system,
DB is default radix,
CurX is the X value of the current cursor reference position coordinate drawn,
CurY is the Y value of the current cursor reference position coordinate drawn。
7. device according to claim 6, it is characterised in that wherein, described pre-assigned buffer memory is the buffer memory that capacity at least can store the first in first out of 3 touch sensible data;
Described touch sensible data acquisition module, is specifically additionally operable to store in pre-assigned buffer memory described touch sensible data by first in first out。
8. device according to claim 6, it is characterised in that described side-play amount computing module, specifically for showing that cursor moves side-play amount according to current cursor reference position coordinate and the last cursor reference position coordinate calculated, including:
If the coordinate system of system is contrary with the XY coordinate system of touch pad, then:
CursorX=curX lastX;
CursorY=curY lastY;
If the coordinate system of system is identical with the XY coordinate system seat of touch pad, but XY is in opposite direction, then:
CursorX=lastX-curX;
CursorY=lastY-curY;
If the coordinate system of system is identical with the XY coordinate system of touch pad, X, Y-direction is identical, then:
CursorX=curX lastX;
CursorY=curY lastY;
Wherein, lastX, lastY respectively last curX, curY calculated;
The cursor that cursorX, cursorY respectively draw moves the X side-play amount of side-play amount, Y side-play amount。
9. device according to claim 7, it is characterised in that described touch sensible data acquisition module, is additionally operable to the touch sensible data periodically gathering on touch pad by default interval;
Wherein, described 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 CN103353804A (en) 2013-10-16
CN103353804B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI531938B (en) 2014-01-23 2016-05-01 原相科技股份有限公司 Determining method for adaptive dpi curve and touch apparatus using the same
CN104808873B (en) * 2014-01-29 2018-05-11 原相科技股份有限公司 The definite method of adaptive DPI curves and the touch device using the method
CN106610717B (en) * 2015-12-31 2023-11-28 北京一数科技有限公司 Interface display 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
CN108744508A (en) * 2018-05-18 2018-11-06 北京硬壳科技有限公司 touch event response method and device
CN108762554B (en) * 2018-05-18 2021-09-17 北京硬壳科技有限公司 Touch event response method and device

Citations (3)

* 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
CN102999192A (en) * 2011-09-08 2013-03-27 原相科技股份有限公司 Touch system and touch method with track detection function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110231796A1 (en) * 2010-02-16 2011-09-22 Jose Manuel Vigil Methods for navigating a touch screen device in conjunction with gestures

Patent Citations (3)

* 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
CN102999192A (en) * 2011-09-08 2013-03-27 原相科技股份有限公司 Touch system and touch method with track detection function

Also Published As

Publication number Publication date
CN103353804A (en) 2013-10-16

Similar Documents

Publication Publication Date Title
CN103353804B (en) A kind of cursor control method based on touch pad and device
US9996176B2 (en) Multi-touch uses, gestures, and implementation
US9612675B2 (en) Emulating pressure sensitivity on multi-touch devices
JP5422724B1 (en) Electronic apparatus and drawing method
US20050052427A1 (en) Hand gesture interaction with touch surface
CN101498973B (en) Touch control interpretation structure and method for executing touch control application program by multi-finger gesture
CN101196794A (en) Scrolling method and apparatus
CN103218044B (en) A kind of touching device of physically based deformation feedback and processing method of touch thereof
CN102402375A (en) Display terminal and display method
US20130321350A1 (en) Virtual ruler for stylus input
EP3043250A1 (en) Information processing device, information processing method, and program
CN105224089A (en) Gesture operation method and device, mobile terminal
CN205050078U (en) A wearable apparatus
EP2669783A1 (en) Virtual ruler for stylus input
JPS63285588A (en) Display scroll system
US20190361563A1 (en) Method for determining a force of a touch object on a touch device and for determining its related touch event
US20170017389A1 (en) Method and apparatus for smart device manipulation utilizing sides of device
CN106020471A (en) Operation method of mobile terminal and mobile terminal
CN113010130B (en) Remote large-screen interaction control method based on image stream
KR20150122021A (en) A method for adjusting moving direction of displaying object and a terminal thereof
CN106484101A (en) A kind of terminal control method and equipment
CN106371642A (en) Touch screen device processing method and apparatus
CN104503573A (en) Gesture operating method and gesture operating device
CN114415857B (en) Terminal operation method and device, terminal and storage medium
CN103870173A (en) Display method and electronic device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160622

Termination date: 20180703