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 obtains 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 upper cycle pulse direction; Then to enter step 102 if be;
Step 102: the climbing number of times that will record adds one, when the climbing number of times reaches the first setting number, enters the 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 event of once climbing.
Wherein, first sets number can be default climbing number of times, and for example default climbing number of times is 5, when the number of times accumulative total of climbing reaches 5, just can enter boost phase.
In above-described embodiment, the executive agent of each step can be for having the various device of trace ball, for example mobile phone.Above-described embodiment can obtain the user to the tendency toward sliding of trace ball by judging each recurrent pulse number, thereby judge the demand that the user accelerates to slide, and the demand of accelerating to slide is accelerated to process, and can realize the effect of quick sliding.
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 two before the pulse of this cycle and upper cycle pulse direction be whether 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 the first boost phase.
Need to prove, in the above-described embodiment, for the ease of follow-up elaboration boost phase, difference called after the second boost phase and the first boost phase, the speed of the second boost phase can equal the speed of the first boost phase, the speed of the second boost phase also can be greater than the speed of the first boost phase, and the embodiment of the invention is not limited to this.
Alternatively, the speed of above-mentioned the first boost phase is less than the speed of the second boost phase.
The first boost phase and the second boost phase mentioned for above-described embodiment all are boost phases, the mode of the concrete acceleration of its boost phase can for: report continuously the 4th slip event of setting number, or, with obtain the trace ball pulse cycle time shorten (for example, for the first boost phase, can be the first value of setting with the time shorten that obtains the cycle of trace ball pulse; For the second boost phase, can be the second value of setting with the time shorten in cycle that obtains the pulse of trace ball).The concrete mode embodiment of the invention of which kind of acceleration that adopts will not limit.
Wherein, report continuously the 4th slip event of setting number to be: the slip event that reports continuously singly the 4th setting number according to the Delay Rules of setting.
If in one-period, report continuously a plurality of slip event, 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, within the time cycle that this is shortened, can report slip event so, than a long cycle, can within the shorter time, report more slip event, thereby improve slip speed.
In addition, report continuously the slip event of setting number to enter the first boost phase or the second boost phase if adopt, then all right after entering above-mentioned the first boost phase or the second boost phase: the time that will obtain the cycle of trace ball pulse lengthens.
Further, when above-mentioned the first boost phase or the second boost phase carry out, if occur with acceleration direction beyond the slip event of other directions, then stop above-mentioned the first boost phase or the second boost phase.
Further, above-mentionedly also comprise after entering the first boost phase or the second boost phase: the data that empty all directions of record.
Further, if judge that the cycle that whether comprises the 3rd setting number in the cycle of the second setting number before this cycle, the determination result is NO, also comprises:
If occur, the pulse of this cycle is that effective impulse and umber of pulse do not reach and accelerate threshold value, the pulse of this cycle and upper 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 to report slip event, then report the data of 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 a upper recurrent pulse, then the data of minute book cycle direction; Or if do not need to report slip event, and the pulse in this cycle is not identical with the direction of a upper recurrent pulse, and the data of minute book cycle direction then empty the data of other directions.
Slip event sometimes need to 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 in the situation of setting value.For example following two kinds of situations just can not report slip event: 1, except accelerator (the first boost phase or the second boost phase), two continuous cycles do not allow to report the slip event of same direction.2, two continuous 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 procedure for example, because the problem that oblique slip causes the nine grids interface disorderly to be jumped.
More specifically, the embodiment of the invention also provides the control method of the realization trace ball as an example of mobile phone example, 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, no, then enter step 203;
Step 202: enter slow boost phase (corresponding the first boost phase); Empty the directive data 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 owing within each judgement cycle, be effective key assignments, do not do any restriction, report so 10 key assignments in the 1s, 10 events can't be in time processed 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 like this speed of key assignments than comparatively fast, can also simulate in addition slip effect from fast to slow.
After entering boost phase, the event 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 accelerate 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, no if yes then enter step 204, then enters step 209;
Step 204: whether the umber of pulse of judging this cycle reaches the acceleration threshold value, if, enter step 205, no, 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 record 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 the second boost phase); Empty the directive data of record;
Acceleration can report 5 effective slip event continuously fast;
Step 209: judge whether to report slip event, if, then enter step 210, no, 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 in a upper cycle, 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 there is the slip event of other directions different from 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 above-described embodiment, the executive agent of each step can be for having the various device of trace ball, for example mobile phone.Above-described embodiment can obtain the user to the tendency toward sliding of trace ball by judging each recurrent pulse number, thus judge for the slip demand, the demand of accelerating is accelerated to process, can realize the effect of quick sliding.
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 the 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 upper cycle pulse direction; Then to enter step 304 if be;
Step 304: the climbing number of times that will record adds one, when the climbing number of times reaches the first setting number, enters the 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 " the second boost phase ", stage in the step 304 is called " the first boost phase ", the speed of the second boost phase can equal the speed of the first boost phase, and the speed of the second boost phase also can be greater than the speed of the first boost phase, and the embodiment of the invention is not limited to this.
In above-described embodiment, the executive agent of each step can be for having the various device of trace ball, for example mobile phone.Above-described embodiment can obtain the user to the tendency toward sliding of trace ball by judging each recurrent pulse number, thereby judge the demand that the user accelerates to slide, and the demand of accelerating to slide is accelerated to process, and can realize the effect of quick sliding.
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, and specifically what device embodiment of the invention will not limit.Comprise:
Judging unit 401 is used for judging 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 upper cycle pulse direction;
Climbing record cell 402 is that the climbing number of times that then will record adds one if be for judgment unit judges;
Accelerator module 403 is used for entering the 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 front 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 if also be used for the cycle whether cycle of the second setting number before this cycle comprises the 3rd setting number, then enters the first boost phase.
Further, as shown in Figure 5, if above-mentionedly judge that second before this cycle set and whether comprised for the 3rd cycle of setting number in cycle of number the determination result is NO, above-mentioned judging unit 402, if be that effective impulse and umber of pulse do not reach the direction of accelerating threshold value, the pulse of this cycle and upper cycle pulse direction is inconsistent, the climbing number of times does not reach the setting number for the pulse of this cycle occurring also, in any one or several the time, judge whether to report slip event; Also comprise:
Slip reports unit 501, if be used for reporting slip event, then reports the data of slip event and the direction in minute book cycle;
Data scrubbing unit 502 if be used for reporting slip event, then empties the data of other directions.
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 a upper recurrent 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 pulse in this cycle is not identical then with the direction of a upper recurrent pulse:
Above-mentioned data scrubbing unit 502 is also for the data that empty other directions.
Particularly, above-mentioned accelerator module 403 when specifically whether the second front cycle of setting number comprises the cycle of the 3rd setting number for this cycle, reports the slip event of the 4th setting number continuously, or, will obtain the time shorten in the cycle of trace ball pulse; When the climbing number of times reaches the first setting number, report continuously the slip event of the 5th setting number, or, will obtain the time shorten in 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 continuously singly the slip event of the 4th or the 5th setting number according to the Delay Rules of setting.
Further, as shown in Figure 7, report continuously the 4th or the 5th slip event of setting number to enter above-mentioned the first boost phase or the second boost phase if adopt, also comprise:
Periodic Control unit 701 is for the time lengthening in the cycle that will obtain the trace ball pulse after entering above-mentioned the first boost phase or the second boost phase.
Further, above-mentioned accelerator module 403 also is used for when above-mentioned the first boost phase or the second boost phase carry out, if occur with acceleration direction beyond the slip event of other directions, then stop above-mentioned the first boost phase or the second boost phase.
Further, above-mentioned data scrubbing unit 502 also is used for entering after the first boost phase or the second boost phase, empties the data of all directions of record.
Above-described embodiment can obtain the user to the tendency toward sliding of trace ball by judging each recurrent pulse number, thus judge for the slip demand, the demand of accelerating is accelerated to process, can realize the effect of quick sliding.
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 front cycle of setting number of this cycle comprises the cycle of the 3rd setting number;
Accelerator module 802, be used for comprising when the second cycle of setting number the cycle of the 3rd 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.
Above-described embodiment can obtain the user to the tendency toward sliding of trace ball by judging each recurrent pulse number, thus judge for the slip demand, the demand of accelerating is accelerated to process, can realize the effect of quick sliding, promote the user and 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 continuously slip event, 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, second of mentioning in above-described embodiment and set number, the 4th setting number, the 5th setting number, the first boost phase and the 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 above-described embodiment method is to come the relevant hardware of instruction 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 ROM (read-only memory), disk or CD etc.
More than control method and the device of a kind of trace ball that the embodiment of the invention is provided be 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, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.