Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment one, and as shown in Figure 1, the embodiment of the invention provides a kind of control method of trace ball, comprising:
Step 101: whether the pulse of judging this cycle is effective impulse, and whether umber of pulse reaches the acceleration threshold value, and whether this cycle pulse direction is consistent with last cycle pulse direction; If be is then to enter step 102;
Step 102: the climbing number of times that will write down adds one, when the climbing number of times reaches the first setting number, enters second boost phase.
Wherein, the climbing here can be understood as: when the umber of pulse of one-period has surpassed a predetermined value, think that then this cycle is the incident of once climbing.
Wherein, first sets number can be default climbing number of times, and for example Yu She climbing number of times is 5, when the number of times accumulative total of climbing reaches 5, just can enter boost phase.
In the foregoing description, the executive agent of each step can be for having the various device of trace ball, for example mobile phone.The foregoing description can obtain the tendency toward sliding of user to trace ball by judging each recurrent pulse number, thereby judge the demand that the user quickens to slide, and the demand of quickening to slide is quickened to handle, and can realize the effect of sliding fast.
Above-mentioned steps 101 judges whether the pulse in this cycle is effective impulse, and whether umber of pulse reaches the acceleration threshold value, can also comprise before whether the pulse of this cycle and last cycle pulse direction be consistent:
Whether judge that second before this cycle set comprised for the 3rd cycle of setting number in cycle of number; Wherein, the pulse in each cycle in the cycle of the 3rd setting number has equidirectional, and the above-mentioned the 3rd umber of pulse of setting the cycle of number surpasses the acceleration threshold value; If then enter first boost phase.
Need to prove, in the above-described embodiment, for the ease of follow-up elaboration boost phase, difference called after second boost phase and first boost phase, the speed of second boost phase can equal the speed of first boost phase, the speed of second boost phase also can be greater than the speed of first boost phase, and the embodiment of the invention is not limited thereto.
Alternatively, the speed of above-mentioned first boost phase is less than the speed of second boost phase.
First boost phase and second boost phase mentioned for the foregoing description all are boost phases, the mode of the concrete acceleration of its boost phase can for: report the 4th slip event of setting number continuously, or, the time of obtaining the cycle of trace ball pulse (is for example shortened, for first boost phase, can be shortened to first value of setting the time of obtaining the cycle of trace ball pulse; For second boost phase, can be shortened to second value of setting time in cycle of obtaining the pulse of trace ball).The concrete mode embodiment of the invention of which kind of acceleration that adopts will not limit.
Wherein, report the 4th slip event of setting number to be continuously: the slip event that reports the 4th setting number according to the delay rule of setting singly continuously.
If in one-period, report a plurality of slip event continuously, so just can in one-period, carry out repeatedly and slide, so just can improve slip speed; If shorten the time of obtaining the trace ball recurrence interval, in the time cycle that this is shortened, can report slip event so, than a long cycle, can in the shorter time, report more slip event, thereby improve slip speed.
In addition, report the slip event of setting number to enter first boost phase or second boost phase continuously if adopt, then all right after entering above-mentioned first boost phase or second boost phase: the time lengthening that will obtain the cycle of trace ball pulse.
Further, when above-mentioned first boost phase or second boost phase carry out, if occur with acceleration direction beyond the slip event of other directions, then stop above-mentioned first boost phase or second boost phase.
Further, above-mentionedly also comprise after entering first boost phase or second boost phase: the data that empty all directions of record.
Further, be to deny as if whether comprising the 3rd judged result of setting the cycle of number in the cycle of judging the second setting number that this cycle is preceding, also comprise:
If occur, the pulse of this cycle is that effective impulse and umber of pulse do not reach and quicken threshold value, the pulse of this cycle and last cycle pulse direction is inconsistent, the number of times of climbing does not reach the setting number, in any one or several the time, then judge whether to report slip event; If need report slip event, then report the data of the slip event and the direction in minute book cycle, empty the data of other directions.
If do not need to report slip event, and the pulse in this cycle is identical with the direction of last one-period pulse, then the data of minute book cycle direction; Or if do not need to report slip event, and the direction of the pulse in this cycle and last one-period pulse is inequality, and the data of minute book cycle direction then empty the data of other directions.
Slip event sometimes need report, and does not sometimes need to report, and also might not need to report slip event even reached in the umber of pulse in this cycle under the situation of setting value.For example following two kinds of situations just can not report slip event: 1, except that accelerator (first boost phase or second boost phase), two continuous cycles do not allow to report the slip event of same direction.2, continuous two cycles do not allow to occur quadrature key assignments (such as: this cycle glide direction is to the right, and then the next cycle glide direction is upwards or downwards, then can not report slip event).Above-mentioned what do not report slip event 1 and 2 is in order to solve in the actual use for example, because the problem that oblique slip causes lattice interface, nine palaces disorderly to be jumped.
More specifically, it is the control method of the realization trace ball of example with the mobile phone that the embodiment of the invention also provides, and with this above-mentioned embodiment is further described.As shown in Figure 2, may further comprise the steps:
Step 201: judge whether nearly 10 cycles (corresponding second sets the cycle of number) have the key assignments of 6 cycles (the corresponding the 3rd sets the cycle of number) (or claiming umber of pulse) to reach the acceleration threshold value, if, enter step 202, not, then enter step 203;
Step 202: enter slow boost phase (corresponding first boost phase); Empty the data of all directions of record;
In the above-mentioned steps 202 slow boost phases, each cycle can report 3 (the corresponding the 4th sets number) effectively slip event continuously.Even, do not do any restriction owing in each judgement cycle, all be effective key assignments, report 10 key assignments so in the 1s, 10 incidents can't be in time handled in application, moment moves on to another position from a position phenomenon can occur.Then, the above-mentioned slip event that reports continuously can be: first key assignments is to report after being judged as the 50ms of effective key assignments, and the time that next key assignments reports is the 100ms of first key assignments after reporting, and the 3rd is second 150ms after reporting, and the rest may be inferred.Report the speed of key assignments can also simulate slip effect from fast to slow in addition like this than comparatively fast.
After entering boost phase, the incident number that reports can expand to more, and in addition, the cycle of judgement can expand to longer; Judge whether that the condition and the periodicity that quicken can increase; The key assignments that reports acceleration period is more, reports the time interval between each key assignments longer.The benefit of doing like this is, at browser interface, more can analog subscriber uses the process of mouse browsing page.
Step 203: whether the pulse of judging this cycle is effective impulse, specifically can be whether the umber of pulse of judging this cycle reaches effective value, if then enter step 204, not, then enters step 209;
Step 204: whether the umber of pulse of judging this cycle reaches the acceleration threshold value, if, enter step 205, not, then enter step 209;
Step 205: whether the direction of judging the pulse of this cycle is consistent with the glide direction of last time, if, then enter step 206, if not, then enter step 209;
Step 206: this cycle is recorded as once climbing; Be specifically as follows: the climbing number of times that will write down adds 1.
Step 207: whether the climbing number of times of judging record has reached (corresponding first sets number) 3 times, if, then enter step 208, if not, then enter step 209;
Step 208: enter fast boost phase (corresponding second boost phase); Empty the data of all directions of record;
Acceleration can report 5 effective slip event continuously fast;
Step 209: judge whether to report slip event, if, then enter step 210, not, then enter step 211;
Step 210: the data that empty this cycle direction other directions in addition; The data of minute book cycle direction; Report slip event;
Step 211: whether the direction of judging this cycle is consistent with the direction of last one-period, if not, enters step 212, is then to enter step 213;
Step 212: the data that empty this cycle direction other directions in addition; The data of minute book cycle direction;
Step 213: the data of minute book cycle direction.
In addition, after having entered boost phase, if the slip event of other directions different with acceleration direction, (generally can be reciprocal slip event, certainly can also be the slip event of orthogonal directions, the embodiment of the invention will not limit), then stop accelerator.
In the foregoing description, the executive agent of each step can be for having the various device of trace ball, for example mobile phone.The foregoing description can obtain the tendency toward sliding of user to trace ball by judging each recurrent pulse number, thereby judge the slip demand that is used for, and the demand of quickening is quickened to handle, and can realize the effect of sliding fast.
Embodiment two, and as shown in Figure 3, the embodiment of the invention gives the control method of another kind of trace ball, comprising:
Whether step 301: judging that second before this cycle set comprised for the 3rd cycle of setting number in cycle of number; The pulse in each cycle in the cycle of above-mentioned the 3rd setting number has equidirectional and umber of pulse surpasses the acceleration threshold value; If then execution in step 302, if not, then execution in step 303;
Step 302: enter first boost phase;
Step 303: whether the pulse of judging this cycle is effective impulse, and whether umber of pulse reaches the acceleration threshold value, and whether the direction of this cycle pulse is consistent with last cycle pulse direction; If be is then to enter step 304;
Step 304: the climbing number of times that will write down adds one, when the climbing number of times reaches the first setting number, enters second boost phase.
Need to prove, in the above-mentioned embodiment, for the ease of follow-up elaboration boost phase, boost phase in the step 302 is called " second boost phase ", stage in the step 304 is called " first boost phase ", the speed of second boost phase can equal the speed of first boost phase, and the speed of second boost phase also can be greater than the speed of first boost phase, and the embodiment of the invention is not limited thereto.
In the foregoing description, the executive agent of each step can be for having the various device of trace ball, for example mobile phone.The foregoing description can obtain the tendency toward sliding of user to trace ball by judging each recurrent pulse number, thereby judge the demand that the user quickens to slide, and the demand of quickening to slide is quickened to handle, and can realize the effect of sliding fast.
Embodiment three, and as shown in Figure 4, the embodiment of the invention also provides a kind of device of control of trace ball, this device can be for using any device of trace ball, for example mobile phone is understandable that mobile phone is a kind of giving an example wherein, specifically is that what device embodiment of the invention will not limit.Comprise:
Judging unit 401 is used to judge whether the pulse in this cycle is effective impulse, and whether umber of pulse reaches the acceleration threshold value, and whether the direction of this cycle pulse is consistent with last cycle pulse direction;
Climbing record cell 402, being used for if judgment unit judges is is that the climbing number of times that then will write down adds one;
Accelerator module 403 is used for entering second boost phase when the climbing number of times reaches the first setting number.
Further, above-mentioned judging unit 401 is used for also judging whether the second preceding cycle of setting number of this cycle comprises the cycle of the 3rd setting number; The pulse in each cycle in the cycle of above-mentioned the 3rd setting number has equidirectional and umber of pulse surpasses the acceleration threshold value;
Above-mentioned accelerator module 403 also is used for then entering first boost phase if whether second cycle of setting number before this cycle comprises the cycle of the 3rd setting number.
Further, as shown in Figure 5, if above-mentionedly judge that second before this cycle set and whether comprise the 3rd in cycle of number and set the judged result in cycle of number for not, above-mentioned judging unit 402, also being used for if the pulse of this cycle occurs is that effective impulse and umber of pulse do not reach the direction of quickening threshold value, the pulse of this cycle and last cycle pulse direction is inconsistent, the climbing number of times does not reach the setting number, in any one or several the time, judge whether to report slip event; Also comprise:
Slip reports unit 501, is used for then reporting the data of the slip event and the direction in minute book cycle if need report slip event;
Data scrubbing unit 502 is used for then emptying the data of other directions if need report slip event.
Further, as shown in Figure 6, if do not need to report slip event, and the pulse in this cycle is identical with the direction of last one-period pulse, also comprises: data record unit 601, the then data of minute book cycle direction;
If do not need to report slip event, and the direction of the pulse in this cycle and last one-period pulse is then inequality:
Above-mentioned data scrubbing unit 502 also is used to empty the data of other directions.
Particularly, above-mentioned accelerator module 403 specifically is used for cycle that second before this cycle set number and whether comprises the 3rd when setting the cycle of number, report the 4th slip event of setting number continuously, or shortens the time that will obtain the cycle of trace ball pulse; When the climbing number of times reaches the first setting number, report the slip event of the 5th setting number continuously, or shorten the time that will obtain the cycle of trace ball pulse.
Alternatively, above-mentioned the 4th or the 5th slip event of setting number that reports in one-period comprises:
Report the slip event of the 4th or the 5th setting number singly continuously according to the delay rule of setting.
Further, as shown in Figure 7, report the 4th or the 5th slip event of setting number to enter above-mentioned first boost phase or second boost phase continuously, also comprise if adopt:
Periodic Control unit 701 is used for will obtaining the time lengthening in the cycle of trace ball pulse after entering above-mentioned first boost phase or second boost phase.
Further, above-mentioned accelerator module 403 also is used for when above-mentioned first boost phase or second boost phase carry out, if occur with acceleration direction beyond the slip event of other directions, then stop above-mentioned first boost phase or second boost phase.
Further, above-mentioned data scrubbing unit 502 also is used to enter after first boost phase or second boost phase, empties the data of all directions of record.
The foregoing description can obtain the tendency toward sliding of user to trace ball by judging each recurrent pulse number, thereby judge the slip demand that is used for, and the demand of quickening is quickened to handle, and can realize the effect of sliding fast.
Embodiment four, and as shown in Figure 8, the embodiment of the invention also provides the control device of another kind of trace ball, comprising:
Judging unit 801 is used for judging whether the second preceding cycle of setting number of this cycle comprises the cycle of the 3rd setting number;
Accelerator module 802, be used for comprising the cycle of the 3rd setting number when second cycle of setting number, and the pulse in each cycle in the cycle of the 3rd setting number has identical direction, the umber of pulse of pulse surpasses the acceleration threshold value in the cycle of the 3rd setting number, then enters boost phase.
The foregoing description can obtain the tendency toward sliding of user to trace ball by judging each recurrent pulse number, thereby judge the slip demand that is used for, and the demand of quickening is quickened to handle, and can realize the effect of slip fast, promotes user experience.Further, will speed up and be divided into two kinds of speed of distinguishing acceleration, can better embody the effect of acceleration.Further, adopt the mode that postpones to report slip event continuously, process that can be simulation accelerated makes the sensation of acceleration more level and smooth.
Need to prove, set number, the 3rd for the first setting number of mentioning in the foregoing description, second and set number, the 4th setting number, the 5th setting number, first boost phase and second boost phase etc., can be with reference to the elaboration understanding of figure 2.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
More than the control method and the device of a kind of trace ball that the embodiment of the invention provided is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.