[summary of the invention]
Based on this, be necessary to provide one cursor assisted location method accurately.
A kind of cursor assisted location method, comprises the following steps:
Tracing detection cursor position on a display screen, generates when cursor is positioned at the edge of target input field and shifts out cursor event, and described target input field is used for cursor and enters rear input instruction;
Shift out cursor event described in detection, detect the slip behavior of mouse simultaneously, the slip behavior of described mouse makes cursor have mobile vector acceleration; Within the locking time of setting, according to described mobile vector acceleration cursor is locked in target input field and moves.
Preferably, described within the locking time of setting, according to described mobile vector acceleration, cursor is locked in mobile step in target input field and is specially:
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 by described mobile vector acceleration decomposition with the edge of described target input field;
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 by means of only described parallel component of acceleration positioning cursor.
Preferably, described by described mobile vector acceleration decomposition be the step of the parallel component of acceleration parallel at the tangent line of cursor position with the edge of described target input field and the vertical acceleration component vertical with described tangent line after also comprise:
Judge described direction is whether the vertical acceleration component shifting out described target input field is greater than predetermined acceleration value, if so, then described locking time is set to 0.
Preferably, also comprise before the step of described tracing detection cursor position on a display screen:
In the extended auxiliary positioning district of surrounding, described target input field;
Also comprise after the step of described tracing detection cursor position on a display screen:
Generate when cursor is entered described auxiliary positioning district by the outward flange in described auxiliary positioning district and move into cursor event; Detect described immigration cursor event, cursor is reoriented to the center of described target input field.
Preferably, described step cursor being reoriented to the center of described target input field is specially:
Detect the sliding speed of mouse, judge whether described sliding speed is less than pre-set velocity value, if so, then the cursor being positioned at described auxiliary positioning district is reoriented to the center of described target input field.
Preferably, described step cursor being reoriented to described target input field is specially:
Again judge whether cursor position is positioned at described auxiliary positioning district after postponing Preset Time, if so, then cursor is reoriented to the center of described target input field
Based on this, be necessary to provide one cursor aided positioning system accurately.
A kind of cursor aided positioning system, comprises a lower module:
Position tracking module, for tracing detection cursor position on a display screen, generate shift out cursor event when cursor is positioned at the edge of target input field, described target input field is used for cursor and enters rear input instruction;
Locating module, shifts out cursor event described in detecting, and detects the slip behavior of mouse simultaneously, and the slip behavior of described mouse makes cursor have mobile vector acceleration; Within the locking time of setting, according to described mobile vector acceleration cursor is locked in target input field and moves.
Preferably, described locating module is used for being with the edge of described target input field in the parallel parallel component of acceleration of the tangent line of cursor position and the vertical acceleration component vertical with described tangent line by 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 by means of only described parallel component of acceleration positioning cursor.
Preferably, described locating module is also for judging described direction is whether the vertical acceleration component shifting out described target input field is greater than predetermined acceleration value, if so, then described locking time is set to 0.
Preferably, also comprise initialization module, described initialization module is used in the extended auxiliary positioning district of surrounding, described target input field;
Described position tracking module also moves into cursor event for generating when cursor is entered described auxiliary positioning district by the outward flange in described auxiliary positioning district;
Cursor also for detecting described immigration cursor event, is reoriented to the center of described target input field by described locating module.
Preferably, described locating module, also for detecting the sliding speed of mouse, judges whether described sliding speed is less than pre-set velocity value, if so, then the cursor being positioned at described auxiliary positioning district is reoriented to the center of described target input field.
Preferably, described locating module also again judges whether cursor position is positioned at described auxiliary positioning district after postponing Preset Time, if so, then cursor is reoriented to the center of described target input field.
After have employed above-mentioned cursor assisted location method and system, user is when the control cursor that slided by mouse enters into the input instruction of target input field, cursor can not because of the shake of hand or other disturbance factors breakaway input field easily, but cursor is locked in target input field and moves by the mobile vector acceleration produced cursor according to mouse slip behavior.Thus make the location of cursor more accurate, thus make the input of user convenient.
[embodiment]
In one embodiment, as shown in Figure 1, a kind of cursor assisted location method, comprises the following steps:
Step S102, tracing detection cursor position on a display screen, generates when cursor is positioned at the edge of target input field and shifts out cursor event, and described target input field is used for cursor and enters rear input instruction.
In the present embodiment, as shown in Figure 2, display screen 10 is provided with circular icon, the region that icon occupies on the display screen 10 is target input field 20.User is by mobile cursor target approach input field 20, and the function key on then clicking the mouse can carry out input command operating.Such as, left mouse button double-clicks the instruction that 20, target input field have input " executive routine ", clicks the instruction that 20, target input field have input " popup menu " by mouse right button.
In the present embodiment, first tracing detection cursor position on a display screen, when detecting that the position of cursor is positioned at the edge of target input field 20, then generates and shifts out cursor event.Shift out cursor event and can use symbol, electric signal or coded representation, and cursor event will be shifted out send to disposal system.
In the present embodiment, the step of tracing detection cursor position on a display screen also comprises: judge whether the current location of cursor is positioned at target input field 20, if so, then changes the display effect of target input field 20, otherwise, recover the display effect of target input field 20.Such as, if detect, cursor is positioned at target input field 20, then by highlighted for target input field 20 and/or amplify and/or vibrations, during other positions that cursor is on display screen 10 if detect, then will stop highlighted and/or amplify and/or shake.When the icon 20 on display screen 10 is a lot, above-mentioned way can make user can know the position of the icon 20 chosen easily, thus improves Consumer's Experience.
Step S104, shifts out cursor event described in detection, detect the slip behavior of mouse simultaneously, and the slip behavior of described mouse makes cursor have mobile vector acceleration; Within the locking time of setting, according to described mobile vector acceleration cursor is locked in target input field and moves.
In the present embodiment, as shown in Figure 2, the slip of mouse makes cursor have mobile vector acceleration a, when cursor is in the edge of target input field 20, 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.
Such as, in the present embodiment, in certain input, on the edge that cursor is positioned at target input field 20 during the position of C, detect and shift out cursor event, and record the initial movable speed of cursor in C position.Meanwhile, the mobile vector acceleration a that the slip of mouse makes cursor produce on the display screen 10 detected, a has x and y two components.Wherein, x is the parallel component of acceleration being parallel to the tangent line of target input field 20 in 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 in direction, target input field 20 be on the occasion of, the vertical acceleration component y shifting out direction, target input field 20 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, the vertical velocity component being about to the initial movable speed of cursor this moment parallel with vertical acceleration component y is set to 0, and allows cursor move along edge, target input field 20 with the PARALLEL VELOCITY component that initial movable speed is vertical with vertical acceleration component y; Then by means of only parallel component of acceleration x positioning cursor.When vertical acceleration component y be on the occasion of time, allow cursor move freely with initial movable speed this moment, then by mobile vector acceleration a positioning cursor, even if cursor moves freely in target input field 20.After locking time, cursor moves freely.
Such as, in the present embodiment, please also refer to Fig. 3 and Fig. 4, the mouse that Fig. 3 represents slides the change curve of the parallel component of acceleration x and vertical acceleration component y that cursor is produced, the change curve of what Fig. 4 represented the is parallel component of acceleration x and vertical acceleration component y being actually used in cursor location.Wherein, t
0to t
2time be locking time, the duration of locking time is the parameter preset.
At t
0to t
1time interval, vertical acceleration component y is negative value, and namely the slip of mouse makes the oriented vertical acceleration component y shifting out the direction of target input field 20 of cursor.Then, when according to mobile vector acceleration a positioning cursor, cursor is located by the parallel component of acceleration x by means of only a.Locating according to acceleration with the method for the position of the cursor of initial velocity movement is simple mathematical computations, is not explained in detail explanation at this.
Because parallel component of acceleration x is parallel to the tangent line of target input field 20 through position C, therefore cursor necessarily moves on the edge of target input field 20, so the edge alternatively cursor being locked in icon 20 herein moves.As shown in Figure 2, through t
0to t
1time period after, cursor moves to the position of D.
At t
1to t
2time interval, vertical acceleration component y become on the occasion of, namely the slip of mouse makes the acceleration of the oriented direction movement towards icon 20 of cursor.Then, according to mobile vector acceleration a positioning cursor, namely cursor is from t
1moment rises, and the edge no longer 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
2after moment, 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, cursor is locked in target input field 20 mobile according to mobile vector acceleration a.
In the present embodiment, when judging the direction of vertical acceleration component y, also to judge whether vertical acceleration component y is greater than predetermined acceleration value, if so, then will be set as 0 locking time, otherwise, the time of presetting will be set as locking time.
That is before inside cursor being locked in target input field 20 is moved, first judge whether cursor has the trend leaving target input field 20 with larger acceleration, if, then stop locking, cursor is allowed freely to leave, otherwise continue within locking time, edge cursor being locked in target input field 20 moves until cursor moves or has the enough large vertical acceleration component y shifting out target input field 20 in target input field 20.
In the present embodiment, the surrounding of icon 20 is extended auxiliary positioning district 30.Auxiliary positioning district 30 is preferably annular, and its large I regulates as required.
In the present embodiment, tracing detection cursor position on a display screen, generates when cursor is entered auxiliary positioning district 30 by the outward flange in auxiliary positioning district 30 and moves into cursor event.Move into cursor event and can use symbol, electric signal or coded representation, and immigration cursor event is sent to disposal system.
When immigration cursor event being detected, cursor is reoriented to the center of target input field 20.
In the present embodiment, when immigration cursor event being detected, then detect the sliding speed of mouse on mouse pad simultaneously, and judge whether sliding speed is less than pre-set velocity value, if so, then the cursor being positioned at auxiliary positioning district 30 is reoriented to described target input field 20, otherwise, cursor is moved freely.
In other embodiments, when immigration cursor event being detected, also first Preset Time can be postponed, 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, after cursor enters auxiliary positioning district 30, also to judge cursor whether with the target input field 20 of auxiliary positioning district 30 correspondence for moving target position.When user makes cursor slip over auxiliary positioning district 30 with larger speed by sliding mouse, be because user controls the moving target position of cursor movement and non-targeted input field 20 under normal circumstances, but other regions on display screen 10.After adding and judging whether cursor slips over this step of auxiliary positioning district 30 with larger speed, when making display screen there is multiple icon, user can choose very easily wherein any one, and can not because of careless by cursor move into mistake auxiliary positioning district 30 and choose mistake 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, for tracing detection cursor position on a display screen, generate shift out cursor event when cursor is positioned at the edge of target input field, described target input field is used for cursor and enters rear input instruction.
In the present embodiment, as shown in Figure 2, display screen 10 is provided with circular icon, the region that icon occupies on the display screen 10 is target input field 20.User is by mobile cursor target approach input field 20, and the function key on then clicking the mouse can carry out input command operating.Such as, left mouse button double-clicks the instruction that 20, target input field have input " executive routine ", clicks the instruction that 20, target input field have input " popup menu " by mouse right button.
In the present embodiment, the first tracing detection cursor position on a display screen of position tracking module 102, when detecting that the position of cursor is positioned at the edge of target input field 20, then generates and shifts out cursor event.Shift out cursor event and can use symbol, electric signal or coded representation, and cursor event will be shifted out send to disposal system.
In the present embodiment, position tracking module 102, also for judging whether the current location of cursor is positioned at target input field 20, if so, then changes the display effect of target input field 20, otherwise, recover the display effect of target input field 20.Such as, if detect, cursor is positioned at target input field 20, then by highlighted for target input field 20 and/or amplify and/or vibrations, during other positions that cursor is on display screen 10 if detect, then will stop highlighted and/or amplify and/or shake.When the icon 20 on display screen 10 is a lot, above-mentioned way can make user can know the position of the icon 20 chosen easily, thus improves Consumer's Experience.
Locating module 104, shifts out cursor event described in detecting, and detects the slip behavior of mouse simultaneously, and the slip behavior of described mouse makes cursor have mobile vector acceleration; Within the locking time of setting, according to described mobile vector acceleration cursor is locked in target input field and moves.
In the present embodiment, as shown in Figure 2, the slip of mouse makes cursor have mobile vector acceleration a, when cursor is in the edge of target input field 20, 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.
Such as, in the present embodiment, in certain input, on the edge that cursor is positioned at target input field 20 during the position of C, what locating module 104 detected that position tracking module 102 generates shifts out cursor event, and records the initial movable speed of cursor in C position.Locating module 104 detects the mobile vector acceleration a that the slip of mouse makes cursor produce on the display screen 10 simultaneously, and a has x and y two components.Wherein, x is the parallel component of acceleration being parallel to the tangent line of target input field 20 in 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 in direction, target input field 20 be on the occasion of, the vertical acceleration component y shifting out direction, target input field 20 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, the vertical velocity component being about to the initial movable speed of cursor this moment parallel with vertical acceleration component y is set to 0, and allows cursor move along edge, target input field 20 with the PARALLEL VELOCITY component that initial movable speed is vertical with vertical acceleration component y; Then by means of only parallel component of acceleration x positioning cursor.When vertical acceleration component y be on the occasion of time, allow cursor move freely with initial movable speed this moment, then by mobile vector acceleration a positioning cursor, even if cursor moves freely in target input field 20.After locking time, cursor moves freely.
Such as, in the present embodiment, please also refer to Fig. 3 and Fig. 4, the mouse that Fig. 3 represents slides the change curve of the parallel component of acceleration x and vertical acceleration component y that cursor is produced, the change curve of what Fig. 4 represented the is parallel component of acceleration x and vertical acceleration component y being actually used in cursor location.Wherein, t
0to t
2time be locking time, the duration of locking time is the parameter preset.
At t
0to t
1time interval, vertical acceleration component y is negative value, and namely the slip of mouse makes the oriented vertical acceleration component y shifting out the direction of target input field 20 of cursor.Then, when locating according to mobile vector acceleration a with the cursor of initial velocity movement, cursor is located by the parallel component of acceleration x by means of only a.Method according to the position of acceleration positioning cursor is simple mathematical computations, is not explained in detail explanation at this.
Because parallel component of acceleration x is parallel to the tangent line of target input field 20 through position C, therefore cursor necessarily moves on the edge of target input field 20, so the edge alternatively cursor being locked in icon 20 herein moves.As shown in Figure 2, through t
0to t
1time period after, cursor moves to the position of D.
At t
1to t
2time interval, vertical acceleration component y become on the occasion of, namely the slip of mouse makes the acceleration of the oriented direction movement towards icon 20 of cursor.Then, according to mobile vector acceleration a positioning cursor, namely cursor is from t
1moment rises, and the edge no longer 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
2after moment, 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, cursor is locked in target input field 20 mobile according to mobile vector acceleration a.
In the present embodiment, when judging the direction of vertical acceleration component y, also will judge whether vertical acceleration component y is greater than predetermined acceleration value, if so, then locating module 104 will be set as 0 locking time, otherwise, the time of presetting will be set as locking time.
That is before inside cursor being locked in target input field 20 is moved, first judge whether cursor has the trend leaving target input field 20 with larger acceleration, if, then stop locking, cursor is allowed freely to leave, otherwise continue within locking time, edge cursor being locked in target input field 20 moves until cursor moves or has the enough large vertical acceleration component y shifting out target input field 20 in target input field 20.
In the present embodiment, also comprise that initialization module (not marking in figure) is also extended around target input field 20 auxiliary positioning district 30.Auxiliary positioning district 30 is preferably annular, and its large I regulates as required.
In the present embodiment, position tracking module 102 generates when cursor is entered auxiliary positioning district 30 by the outward flange in auxiliary positioning district 30 and moves into cursor event.Move into cursor event and can use symbol, electric signal or coded representation, and immigration cursor event is sent 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 the sliding speed of mouse on mouse pad simultaneously, and judge whether sliding speed is less than pre-set velocity value, if, then the cursor being 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 first Preset Time can be postponed, 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, after cursor enters auxiliary positioning district 30, locating module 104 also to judge cursor whether with the target input field 20 of auxiliary positioning district 30 correspondence for moving target position.When user makes cursor slip over auxiliary positioning district 30 with larger speed by sliding mouse, be because user controls the moving target position of cursor movement and non-targeted input field 20 under normal circumstances, but other regions on display screen 10.After adding and judging whether cursor slips over this step of auxiliary positioning district 30 with larger speed, when making display screen there is multiple icon, user can choose very easily wherein any one, and can not because of careless by cursor move into mistake auxiliary positioning district 30 and choose mistake icon 20.
After have employed above-mentioned cursor assisted location method and system, user is when the control cursor that slided by mouse enters into the input instruction of target input field, cursor can not because of the shake of hand or other disturbance factors breakaway input field easily, but cursor is locked in target input field and moves by the mobile vector acceleration produced cursor according to mouse slip behavior.Thus make the location of cursor more accurate, thus make the input of user convenient.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It 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.