[summary of the invention]
Based on this, be necessary to provide a kind of accurately cursor assisted location method.
A kind of cursor assisted location method may further comprise the steps:
Follow the tracks of and detect the position of cursor on display screen, generate the cursor event that shifts out when cursor is positioned at the edge of target input field, described target input field is used for cursor and enters rear input instruction;
Detect the described cursor event that shifts out, detect simultaneously the slip behavior of mouse, the slip behavior of described mouse makes cursor have the mobile vector acceleration; Within the locking time of setting, be locked in the target input field cursor mobile according to described mobile vector acceleration.
Preferably, described within the locking time of setting, according to described mobile vector acceleration cursor is locked in that mobile step is specially in the target input field:
Be in the parallel parallel component of acceleration of the tangent line of cursor position and the vertical acceleration component vertical with described tangent line with the edge of described target input field with described mobile vector acceleration decomposition;
Within the locking time of setting, if the direction of vertical acceleration component is away from described target input field, then cursor is locked in edge, described target input field, and only by described parallel component of acceleration positioning cursor.
Preferably, described with described mobile vector acceleration decomposition for also comprising after the step of the parallel parallel component of acceleration of the tangent line of cursor position and the vertical acceleration component vertical with described tangent line with the edge of described target input field:
Judge that described direction is to shift out the vertical acceleration component of described target input field whether greater than default accekeration, if then be made as 0 described locking time.
Preferably, described tracking detection cursor also comprised before the step of the position on the display screen:
Extend around in described target input field the auxiliary positioning district is set;
Also comprise after the step of the position of described tracking detection cursor on display screen:
When entering described auxiliary positioning district by the outward flange in described auxiliary positioning district, cursor generates the cursor event that moves into; Detect described immigration cursor event, cursor is reoriented to the center of described target input field.
Preferably, the described step that cursor is reoriented to the center of described target input field is specially:
Detect the sliding speed of mouse, whether judge described sliding speed less than the pre-set velocity value, if the cursor that then will be positioned at described auxiliary positioning district is reoriented to the center of described target input field.
Preferably, the described step that cursor is reoriented to described target input field is specially:
Postpone to judge again whether cursor position is positioned at described auxiliary positioning district behind the Preset Time, if then cursor is reoriented to the center of described target input field
Based on this, be necessary to provide a kind of accurately cursor aided positioning system.
A kind of cursor aided positioning system comprises a lower module:
The position tracking module is used for following the tracks of and detects the position of cursor on display screen, generates the cursor event that shifts out when cursor is positioned at the edge of target input field, and described target input field is used for cursor and enters rear input instruction;
Locating module for detection of the described cursor event that shifts out, detects the slip behavior of mouse simultaneously, and the slip behavior of described mouse makes cursor have the mobile vector acceleration; Within the locking time of setting, be locked in the target input field cursor mobile according to described mobile vector acceleration.
Preferably, to be used for described mobile vector acceleration decomposition be in the parallel parallel component of acceleration of the tangent line of cursor position and the vertical acceleration component vertical with described tangent line with the edge of described target input field to described locating module; Within the locking time of setting, if the direction of vertical acceleration component is away from described target input field, then cursor is locked in edge, described target input field, and only by described parallel component of acceleration positioning cursor.
Preferably, described locating module also is used for judging that described direction is to shift out the vertical acceleration component of described target input field whether greater than default accekeration, if then be made as 0 described locking time.
Preferably, also comprise initialization module, extension arranged the auxiliary positioning district around described initialization module was used in described target input field;
Described position tracking module also is used for generating immigration cursor event when cursor enters described auxiliary positioning district by the outward flange in described auxiliary positioning district;
Described locating module is reoriented to cursor at the center of described target input field also for detection of described immigration cursor event.
Preferably, whether described locating module judges described sliding speed less than the pre-set velocity value also for detection of the sliding speed of mouse, if the cursor that then will be positioned at described auxiliary positioning district is reoriented to the center of described target input field.
Preferably, described locating module also be used for to postpone to judge again whether cursor position is positioned at described auxiliary positioning district behind the Preset Time, if then cursor is reoriented to the center of described target input field.
After having adopted above-mentioned cursor assisted location method and system, when the user enters into the input instruction of target input field at the control cursor that slides by mouse, cursor can be because of the shake of hand or other disturbance factors and breakaway input field easily, but are locked in the target input field cursor mobile according to mouse slip behavior to the mobile vector acceleration that cursor produces.Thereby so that the location of cursor is more accurate, thereby so that user's input is convenient.
[embodiment]
In one embodiment, as shown in Figure 1, a kind of cursor assisted location method may further comprise the steps:
Step S102 follows the tracks of and detects the position of cursor on display screen, generates the cursor event that shifts out when cursor is positioned at the edge of target input field, and described target input field is used for cursor and enters rear input instruction.
In the present embodiment, as shown in Figure 2, be provided with circular icon on the display screen 10, icon is target input field 20 in the zone that display screen 10 occupies.The user is by mobile cursor target approach input field 20, and the function key on then clicking the mouse can be inputted command operating.For example, left mouse button is double-clicked 20 instructions of inputting " executive routine " in target input field, clicks the instruction that " popup menu " inputted in 20 of target input fields by mouse right button.
In the present embodiment, follow the tracks of first and detect the position of cursor on display screen, when the position that detects cursor is positioned at the edge of target input field 20, then generate the cursor event that shifts out.Shift out the cursor event and can use symbol, electric signal or coded representation, and will shift out the cursor event and send to disposal system.
In the present embodiment, the step that follow the tracks of to detect the position of cursor on display screen also comprises: whether the current location of judging cursor is positioned at target input field 20, if, then change the display effect of target input field 20, otherwise, the display effect of recovery target input field 20.For example, be positioned at target input field 20 if detect cursor, then target input field 20 is highlighted and/or amplify and/or vibrations, if when detecting cursor and being in other positions on the display screen 10, then will stop highlighted and/or amplify and/or vibrations.When the icon 20 on the display screen 10 was a lot, above-mentioned way can make the user can know easily the position of the icon 20 of choosing, and experienced thereby improve the user.
Step S104 detects the described cursor event that shifts out, and detects simultaneously the slip behavior of mouse, and the slip behavior of described mouse makes cursor have the mobile vector acceleration; Within the locking time of setting, be locked in the target input field cursor mobile according to described mobile vector acceleration.
In the present embodiment, as shown in Figure 2, the slip of mouse makes cursor have mobile vector acceleration a, when cursor was in the edge of target input field 20, the mobile vector acceleration can be decomposed into target input field 20 in the parallel parallel component of acceleration of the tangent line of cursor position and the vertical acceleration component vertical with described tangent line.
For example in the present embodiment, in certain input, when cursor is positioned at the position of C on the edge of target input field 20, has detected and shifted out the cursor event, and recorded cursor in the initial movable speed of C position.Simultaneously, the slip that detects mouse makes cursor at the mobile vector acceleration a of display screen 10 generations, and a has x and two components of y.Wherein, x is parallel to target input field 20 at the parallel component of acceleration of the tangent line of C position, and y is perpendicular to the vertical acceleration component of target input field 20 at the tangent line of C position.
If move into the vertical acceleration component y of target input field 20 directions and be on the occasion of, the vertical acceleration component y that shifts out target input field 20 directions is negative value.Within the locking time of setting, when vertical acceleration component y is negative value, cursor is locked in the edge of target input field 20, soon the initial movable speed vertical velocity component parallel with vertical acceleration component y of cursor is set to 0 this moment, and allows cursor move along 20 edges, target input field with the initial movable speed PARALLEL VELOCITY component vertical with vertical acceleration component y; Then only by parallel component of acceleration x positioning cursor.When vertical acceleration component y be on the occasion of the time, allow cursor move freely with this moment initial movable speed, then by mobile vector acceleration a positioning cursor, even cursor moves freely in target input field 20.After locking time, cursor moves freely.
For example, in the present embodiment, please also refer to Fig. 3 and Fig. 4, the mouse slip that Fig. 3 represents makes the parallel component of acceleration x of cursor generation and the change curve of vertical acceleration component y, and what Fig. 4 represented is to be actually used in the parallel component of acceleration x of cursor location and the change curve of vertical acceleration component y.Wherein, t
0To t
2Time be locking time, the duration of locking time is predefined parameter.
At t
0To t
1Time interval, vertical acceleration component y is negative value, i.e. the slip of mouse makes the oriented vertical acceleration component y that shifts out the direction of target input field 20 of cursor.Then, according to mobile vector acceleration a positioning cursor the time, only the parallel component of acceleration x by a locates cursor.The method of the position of the cursor that moves take initial velocity according to acceleration location is as simple mathematical computations, do not do in detail at this and explains.
Because parallel component of acceleration x is parallel to target input field 20 through the tangent line of position C, so cursor must be mobile at the edge of target input field 20, moves so also can say the edge that cursor is locked in icon 20 herein.As shown in Figure 2, at process t
0To t
1Time period after, cursor movement is to the position of D.
At t
1To t
2Time interval, vertical acceleration component y become on the occasion of, i.e. the slip of mouse makes the oriented acceleration that moves towards the direction of icon 20 of cursor.Then, according to mobile vector acceleration a positioning cursor, namely cursor is from t
1Constantly rise, no longer the edge along target input field 20 moves, but moves at the internal freedom of target input field 20.
In another embodiment, if at t locking time
0To t
2Time interval in, the vertical acceleration component y of a is negative value, then at t
0To t
2Time interval in, cursor rotates at the edge of target input field 20 always.And t
2Constantly, then according to mobile vector acceleration a positioning cursor, namely cursor moves freely.
Therefore, in sum, at t locking time
0To t
2Time interval in, according to mobile vector acceleration a cursor is locked in the 20 interior movements of target input field.
In the present embodiment, when judging the direction of vertical acceleration component y, whether also to judge vertical acceleration component y greater than default accekeration, if, then will be set as 0 locking time, otherwise, will be set as the default time locking time.
That is to say before move the inside that cursor is locked in target input field 20, judge first whether cursor has the trend of leaving target input field 20 with larger acceleration, if, then stop locking, allow cursor freely leave, otherwise, continuing within locking time, the edge that cursor is locked in target input field 20 moves until cursor 20 interior movements or the enough large vertical acceleration component y that shifts out target input field 20 is arranged to the target input field.
In the present embodiment, extension is provided with auxiliary positioning district 30 around the icon 20.Auxiliary positioning district 30 is preferably annular, and its large I is regulated as required.
In the present embodiment, follow the tracks of to detect the position of cursor on display screen, when cursor enters auxiliary positioning district 30 by the outward flange in auxiliary positioning district 30, generate the cursor event that moves into.Move into the cursor event and can use symbol, electric signal or coded representation, and will move into the cursor event and send to disposal system.
When detecting immigration cursor event, cursor is reoriented to the center of target input field 20.
In the present embodiment, when detecting immigration cursor event, then detect simultaneously the sliding speed of mouse on mouse pad, and whether judge sliding speed less than the pre-set velocity value, if the cursor that then will be positioned at auxiliary positioning district 30 is reoriented to described target input field 20, otherwise, cursor is moved freely.
In other embodiments, when detecting immigration cursor event, also can postpone first Preset Time, and then judge whether cursor position is positioned at auxiliary positioning district 30, if be positioned at, then cursor is reoriented to the center of described target input field 20, otherwise, cursor is moved freely.
That is to say, after cursor enters auxiliary positioning district 30, will judge that also cursor is whether take the target input field 20 of auxiliary positioning district 30 correspondences as moving target position.When the user by sliding mouse so that cursor when slipping over auxiliary positioning district 30 with larger speed, generally is because it is not target input field 20 that the user controls the moving target position of cursor movement, but other zones on the display screen 10.Added judge that whether cursor slips over auxiliary positioning district 30 these steps with larger speed after, so that when on the display screen a plurality of icon being arranged, the user can choose wherein any one very easily, and can be because of because of carelessness cursor being moved into wrong auxiliary positioning district 30 and choosing wrong icon 20.
In one embodiment, as shown in Figure 5, a kind of cursor aided positioning system comprises with lower module:
Position tracking module 102 is used for following the tracks of and detects the position of cursor on display screen, generates the cursor event that shifts out when cursor is positioned at the edge of target input field, and described target input field is used for cursor and enters rear input instruction.
In the present embodiment, as shown in Figure 2, be provided with circular icon on the display screen 10, icon is target input field 20 in the zone that display screen 10 occupies.The user is by mobile cursor target approach input field 20, and the function key on then clicking the mouse can be inputted command operating.For example, left mouse button is double-clicked 20 instructions of inputting " executive routine " in target input field, clicks the instruction that " popup menu " inputted in 20 of target input fields by mouse right button.
In the present embodiment, position tracking module 102 is followed the tracks of first and is detected the position of cursor on display screen, when the position that detects cursor is positioned at the edge of target input field 20, then generates the cursor event that shifts out.Shift out the cursor event and can use symbol, electric signal or coded representation, and will shift out the cursor event and send to disposal system.
In the present embodiment, position tracking module 102 also is used for judging whether the current location of cursor is positioned at target input field 20, if, then change the display effect of target input field 20, otherwise, the display effect of recovery target input field 20.For example, be positioned at target input field 20 if detect cursor, then target input field 20 is highlighted and/or amplify and/or vibrations, if when detecting cursor and being in other positions on the display screen 10, then will stop highlighted and/or amplify and/or vibrations.When the icon 20 on the display screen 10 was a lot, above-mentioned way can make the user can know easily the position of the icon 20 of choosing, and experienced thereby improve the user.
Locating module 104 for detection of the described cursor event that shifts out, detects the slip behavior of mouse simultaneously, and the slip behavior of described mouse makes cursor have the mobile vector acceleration; Within the locking time of setting, be locked in the target input field cursor mobile according to described mobile vector acceleration.
In the present embodiment, as shown in Figure 2, the slip of mouse makes cursor have mobile vector acceleration a, when cursor was in the edge of target input field 20, the mobile vector acceleration can be decomposed into target input field 20 in the parallel parallel component of acceleration of the tangent line of cursor position and the vertical acceleration component vertical with described tangent line.
For example in the present embodiment, in certain input, when cursor was positioned at the position of C on the edge of target input field 20, locating module 104 had detected the cursor event that shifts out that position tracking module 102 generates, and records cursor in the initial movable speed of C position.The slip that locating module 104 detects mouse simultaneously makes cursor at the mobile vector acceleration a of display screen 10 generations, and a has x and two components of y.Wherein, x is parallel to target input field 20 at the parallel component of acceleration of the tangent line of C position, and y is perpendicular to the vertical acceleration component of target input field 20 at the tangent line of C position.
If move into the vertical acceleration component y of target input field 20 directions and be on the occasion of, the vertical acceleration component y that shifts out target input field 20 directions is negative value.Within the locking time of setting, when vertical acceleration component y is negative value, cursor is locked in the edge of target input field 20, soon the initial movable speed vertical velocity component parallel with vertical acceleration component y of cursor is set to 0 this moment, and allows cursor move along 20 edges, target input field with the initial movable speed PARALLEL VELOCITY component vertical with vertical acceleration component y; Then only by parallel component of acceleration x positioning cursor.When vertical acceleration component y be on the occasion of the time, allow cursor move freely with this moment initial movable speed, then by mobile vector acceleration a positioning cursor, even cursor moves freely in target input field 20.After locking time, cursor moves freely.
For example, in the present embodiment, please also refer to Fig. 3 and Fig. 4, the mouse slip that Fig. 3 represents makes the parallel component of acceleration x of cursor generation and the change curve of vertical acceleration component y, and what Fig. 4 represented is to be actually used in the parallel component of acceleration x of cursor location and the change curve of vertical acceleration component y.Wherein, t
0To t
2Time be locking time, the duration of locking time is predefined parameter.
At t
0To t
1Time interval, vertical acceleration component y is negative value, i.e. the slip of mouse makes the oriented vertical acceleration component y that shifts out the direction of target input field 20 of cursor.Then, when locating the cursor that moves with initial velocity according to mobile vector acceleration a, only the parallel component of acceleration x by a locates cursor.Method according to the position of acceleration positioning cursor is simple mathematical computations, does not do in detail at this and explains.
Because parallel component of acceleration x is parallel to target input field 20 through the tangent line of position C, so cursor must be mobile at the edge of target input field 20, moves so also can say the edge that cursor is locked in icon 20 herein.As shown in Figure 2, at process t
0To t
1Time period after, cursor movement is to the position of D.
At t
1To t
2Time interval, vertical acceleration component y become on the occasion of, i.e. the slip of mouse makes the oriented acceleration that moves towards the direction of icon 20 of cursor.Then, according to mobile vector acceleration a positioning cursor, namely cursor is from t
1Constantly rise, no longer the edge along target input field 20 moves, but moves at the internal freedom of target input field 20.
In another embodiment, if at t locking time
0To t
2Time interval in, the vertical acceleration component y of a is negative value, then at t
0To t
2Time interval in, cursor rotates at the edge of target input field 20 always.And t
2Constantly, then locating module 104 is according to mobile vector acceleration a positioning cursor, and namely cursor moves freely.
Therefore, in sum, at t locking time
0To t
2Time interval in, according to mobile vector acceleration a cursor is locked in the 20 interior movements of target input field.
In the present embodiment, when judging the direction of vertical acceleration component y, whether also to judge vertical acceleration component y greater than default accekeration, if then locating module 104 will be set as 0 locking time, otherwise, will be set as the default time locking time.
That is to say before move the inside that cursor is locked in target input field 20, judge first whether cursor has the trend of leaving target input field 20 with larger acceleration, if, then stop locking, allow cursor freely leave, otherwise, continuing within locking time, the edge that cursor is locked in target input field 20 moves until cursor 20 interior movements or the enough large vertical acceleration component y that shifts out target input field 20 is arranged to the target input field.
In the present embodiment, comprise that also initialization module (not marking among the figure) is provided with auxiliary positioning district 30 also extending of target input field 20 on every side.Auxiliary positioning district 30 is preferably annular, and its large I is regulated as required.
In the present embodiment, position tracking module 102 generates the cursor event that moves into when cursor enters auxiliary positioning district 30 by the outward flange in auxiliary positioning district 30.Move into the cursor event and can use symbol, electric signal or coded representation, and will move into the cursor event and send to disposal system.
When locating module 104 detects immigration cursor event, cursor is reoriented to the center of target input field 20.
In the present embodiment, when locating module 104 detects immigration cursor event, then detect simultaneously the sliding speed of mouse on mouse pad, and judge that whether sliding speed is less than the pre-set velocity value, if, the cursor that then will be positioned at auxiliary positioning district 30 is reoriented to described target input field 20, otherwise, cursor is moved freely.
In other embodiments, when locating module 104 detects immigration cursor event, also can postpone first Preset Time, and then judge whether cursor position is positioned at auxiliary positioning district 30, if be positioned at, then cursor is reoriented to the center of described target input field 20, otherwise, cursor is moved freely.
That is to say, after cursor entered auxiliary positioning district 30, locating module 104 will judge that also cursor is whether take the target input field 20 of auxiliary positioning district 30 correspondences as moving target position.When the user by sliding mouse so that cursor when slipping over auxiliary positioning district 30 with larger speed, generally is because it is not target input field 20 that the user controls the moving target position of cursor movement, but other zones on the display screen 10.Added judge that whether cursor slips over auxiliary positioning district 30 these steps with larger speed after, so that when on the display screen a plurality of icon being arranged, the user can choose wherein any one very easily, and can be because of because of carelessness cursor being moved into wrong auxiliary positioning district 30 and choosing wrong icon 20.
After having adopted above-mentioned cursor assisted location method and system, when the user enters into the input instruction of target input field at the control cursor that slides by mouse, cursor can be because of the shake of hand or other disturbance factors and breakaway input field easily, but are locked in the target input field cursor mobile according to mouse slip behavior to the mobile vector acceleration that cursor produces.Thereby so that the location of cursor is more accurate, thereby so that user's input is convenient.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.