CN102156556B - Method for realizing cursor quick sliding of blue-ray player - Google Patents

Method for realizing cursor quick sliding of blue-ray player Download PDF

Info

Publication number
CN102156556B
CN102156556B CN2011100896754A CN201110089675A CN102156556B CN 102156556 B CN102156556 B CN 102156556B CN 2011100896754 A CN2011100896754 A CN 2011100896754A CN 201110089675 A CN201110089675 A CN 201110089675A CN 102156556 B CN102156556 B CN 102156556B
Authority
CN
China
Prior art keywords
cursor
apart
speed
moved
mobile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2011100896754A
Other languages
Chinese (zh)
Other versions
CN102156556A (en
Inventor
陈勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Electronics Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Electronics Industry Co Ltd filed Critical Guangdong Oppo Electronics Industry Co Ltd
Priority to CN2011100896754A priority Critical patent/CN102156556B/en
Publication of CN102156556A publication Critical patent/CN102156556A/en
Application granted granted Critical
Publication of CN102156556B publication Critical patent/CN102156556B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for realizing cursor quick sliding of blue-ray player. The method comprises the following steps: 1, receiving a keying signal; 2, acquiring coordinates of a current position; 3, acquiring coordinates of the position of a target cursor; 4, calculating the distance S that the coordinates of the current position moves to the coordinates of the target position, and setting a high-speed moving distance to be S1 and a speed-reduced moving distance to be S2; 5, determining whether the S1 is zero or not, executing step 8 if the S1 is zero, otherwise executing step 6; 6, moving the cursor to next position at a constant speed; 7, determining whether the distance S1 is moved or not, executing step 8 if the S1 is moved, otherwise executing the step 6 once again until the distance S1 is moved; 8, moving the cursor to the next position at a decreased speed; and 9, determining whether the distance S2 is moved or not, if the distance S2 is not moved, executing the step 8 once again until the distance S2 is moved completely, and finishing the sliding procedure when the distance S2 is moved completely and the target position is reached. By the method, the cursor has high moving speed, and the use efficiency is high.

Description

A kind of method that realizes the cursor quick sliding of Blu-ray player
Technical field
The present invention relates to a kind of cursor sliding method, particularly relate to a kind of method that realizes the cursor quick sliding of Blu-ray player.
Background technology
When the dummy keyboard operation of traditional Blu-ray player showed, the many employings of dummy keyboard operation telepilot was controlled highlighted cursor and is moved on the virtual key that needs, and then presses acknowledgement key and chooses this button to input.General cursor need to be through the process of accelerating first to slow down again when mobile.This move mode need to expend the more time.For Blu-ray player, the speed of key response is most important, and the user wishes to push button and just sees clearly effect, adds people's vision hysteresis quality, chooses the position so that cursor can not be positioned at button fast.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of method that realizes the cursor quick sliding of Blu-ray player is provided, make the effect of the highlighted cursor movement of Blu-ray player quicker, and the mode of motion in decelerating phase makes the user feel mobile level and smooth stable, make button that the user utilizes telepilot and external connection keyboard directly fast during input, the cursor sliding position that can show by user interface is the eye-catching content of knowing own key entry easily.
In order to achieve the above object, the technical solution used in the present invention is, a kind of method that realizes the cursor quick sliding of Blu-ray player, and its step is as follows:
Step 1, receive the push button signalling of mobile button;
Step 2, obtain the position coordinates of current cursor;
Step 3, obtain target light target position coordinates;
Step 4, calculate from the current position coordinates to the target location coordinate, need to move apart from S, and setting high-speed displacement is S1, deceleration displacement is S2;
Step 5, judge that whether high-speed mobile is zero apart from S1, S1 is zero execution in step 8, otherwise execution in step 6;
Step 6, move cursor to the next position with constant speed;
Step 7, judge whether to have moved apart from S1, moved the execution in step 8 then apart from S1, finish apart from S1 to mobile otherwise re-execute step 6;
Step 8, move cursor to the next position with rate of decline;
Step 9, judge whether to have moved apart from S2, do not finish apart from S2 and then re-execute step 8 until mobile finishing apart from S2, finish apart from S2 and arrive the target location EOP (end of program) of then sliding.
Cursor movement is the movement of any direction.The two-dimensional coordinate of pixel is adopted in the position of cursor, if the cursor current position coordinates is N1(x1, y1), target location coordinate is N2(x2, what y2), need to move from the current position coordinates to the target location coordinate is the difference of target location and current location apart from S.
In order to process more clearly the cursor displacement, the displacement of the displacement of X-direction and Y direction is separated processing, X-direction always apart from Sx=x2-x1, Y direction always apart from Sy=y2-y1.Get value larger among Sx and the Sy and carry out the computing of back for what from the current position coordinates to the target location coordinate, need to move apart from S, if namely Sx is more than or equal to Sy, S=Sx then; If Sx is less than Sy, S=Sy then.
Compared with prior art, the invention has the beneficial effects as follows: when cursor movement, without accelerator, directly carry out high-speed mobile, high-speed mobile is crossed the movement of slowing down behind the certain distance, and whole moving process is quick, and the user visually produces the mobile effect of continuously smooth.Translational speed is fast, and service efficiency is high, brings the user good result of use.
Description of drawings
Fig. 1 is the process flow diagram of the inventive method.
Embodiment
Purport of the present invention is to overcome the deficiencies in the prior art, a kind of method that realizes the cursor quick sliding of Blu-ray player is provided, when glittering cursor moves to target location coordinate from current position coordinates, accelerate to afterwards deceleration during by original mobile beginning and become directly from beginning the most at a high speed mobilely then to enter the decelerating phase to stopping.
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, in order to technical characterictic of the present invention and advantage are carried out more deep annotation.
The process flow diagram of the inventive method as shown in Figure 1, a kind of method that realizes the cursor quick sliding of Blu-ray player, its step is as follows:
Step 1, receive the push button signalling of mobile button;
Step 2, obtain the position coordinates of current cursor;
Step 3, obtain target light target position coordinates;
Step 4, calculate from the current position coordinates to the target location coordinate, need to move apart from S, and setting high-speed displacement is S1, deceleration displacement is S2;
Step 5, judge that whether high-speed mobile is zero apart from S1, S1 is zero execution in step 8, otherwise execution in step 6;
Step 6, move cursor to the next position with constant speed;
Step 7, judge whether to have moved apart from S1, moved the execution in step 8 then apart from S1, finish apart from S1 to mobile otherwise re-execute step 6;
Step 8, move cursor to the next position with rate of decline;
Step 9, judge whether to have moved apart from S2, do not finish apart from S2 and then re-execute step 8 until mobile finishing apart from S2, finish apart from S2 and arrive the target location EOP (end of program) of then sliding.
Cursor movement is the movement of any direction.The two-dimensional coordinate of pixel is adopted in the position of cursor, if the cursor current position coordinates is N1(x1, y1), target location coordinate is N2(x2, what y2), need to move from the current position coordinates to the target location coordinate is the difference of target location and current location apart from S.
In order to process more clearly the cursor displacement, the displacement of the displacement of X-direction and Y direction is separated processing, X-direction always apart from Sx=x2-x1, Y direction always apart from Sy=y2-y1.Getting value larger among Sx and the Sy is the computing that displacement S carries out the back, if namely Sx is more than or equal to Sy, and S=Sx then; If Sx is less than Sy, S=Sy then.
Maximum translational speed Vmax original definition is 15~25% of screen size, can be according to the actual conditions adjustment.For example screen resolution is 1920*1080, and then Vmax may be defined as 100 pixels.
Distribute high-speed mobile apart from the method for S1 and deceleration displacement S2 size: integer i=S/Vmax; If i<2, S1=0 then, S2=S.Namely when apart from S≤2Vmax, do not carry out the high-speed mobile process, directly enter the deceleration moving process; If i 〉=2, then S1=(i-1) * Vmax, S2=S-S1.
Be divided into S1 and two stages of S2 when mobile:
1) when mobile beginning, first with the at the uniform velocity mobile cursor of the speed of Vmax, after mobile i-1 time, finishes apart from S1.
2) then enter the regional S2 that slows down, translational speed V is initially apart from half of S2 (because S2 is less than the Vmax of twice, so speed V is less than Vmax).Each mobile speed all is last half afterwards, and namely speed V is changed to (1/2) * S2, (1/4) * S2, (1/8) * S2 ... until diminishing, speed finishes apart from S2 when being 1 pixel.
And in moving process cursor coordinates N(x, y) computing method:
Translational speed is V, if the movement of X-direction always apart from Sx greater than the movement of Y direction always apart from Sy, then the new coordinate of cursor is N(x+V, y+(V*(Sy/Sx))); If the movement of Y direction always apart from Sy greater than the movement of X-direction always apart from Sx, then the new coordinate of cursor is N(x+(V*(Sx/Sy)), y+V).
Learn according to above, after the order of the cursor movement that receives Blu-ray player, per interval time the T millisecond, calculate the position coordinates of next step cursor movement, and cursor moved on to the reposition coordinate, then refresh screen display, until cursor is finished movement after arriving the final goal position.Interval time, T needed less than 40 milliseconds.Because the persistence of vision of human eye and the relation of reaction velocity, as long as guaranteeing per second moves and shows more than 24 times, human eye can think that all movement is continuous level and smooth, so per second need move and refresh more than 24 times, be the 40 milliseconds of movements in every interval and refresh once, the interval is shorter, and mobile effect is rapider.Cursor of every movement, the demonstration that all needs to refresh a cursor makes cursor be presented in real time latest position.
Although the present invention has made the clear description of finishing by instantiation to the method for cursor quick sliding how to realize Blu-ray player, but the present invention is not limited only to described embodiment, and to reach identical purpose be contingent and all be included in the present invention by simple reprogramming.

Claims (4)

1. method that realizes the cursor quick sliding of Blu-ray player, its step is as follows:
Step 1, receive the push button signalling of mobile button;
Step 2, obtain the position coordinates of current cursor;
Step 3, obtain target light target position coordinates;
Step 4, calculate from the current position coordinates to the target location coordinate, need to move apart from S, and setting high-speed displacement is S1, deceleration displacement is S2;
Step 5, judge that whether high-speed mobile is zero apart from S1, S1 is zero execution in step 8, otherwise execution in step 6;
Step 6, move cursor to the next position with constant speed;
Step 7, judge whether to have moved apart from S1, moved the execution in step 8 then apart from S1, finish apart from S1 to mobile otherwise re-execute step 6;
Step 8, move cursor to the next position with rate of decline;
Step 9, judge whether to have moved apart from S2, do not finish apart from S2 and then re-execute step 8 until mobile finishing apart from S2, finish apart from S2 and arrive the target location EOP (end of program) of then sliding.
2. the method for the cursor quick sliding of realization Blu-ray player according to claim 1 is characterized in that: the two-dimensional coordinate of pixel is adopted in the position of described cursor, and cursor movement is any direction.
3. the method for the cursor quick sliding of realization Blu-ray player according to claim 2 is characterized in that, described computing method apart from S are:
If the cursor current position coordinates is N1(x1, y1), target location coordinate is N2(x2, y2), what then need to move from the current position coordinates to the target location coordinate is the difference of target location and current location apart from S;
Displacement with the displacement of X-direction and Y direction during calculating separates processing, X-direction always apart from Sx=x2-x1, Y direction always apart from Sy=y2-y1;
Get value larger among Sx and the Sy and carry out computing for what from the current position coordinates to the target location coordinate, need to move apart from S, be i.e. S=Sy when S=Sx during Sx 〉=Sy, Sx<Sy.
4. the method for the cursor quick sliding of realization Blu-ray player according to claim 3 is characterized in that:
Described high-speed mobile apart from S1 in i<2 o'clock, S1=0; I 〉=2 o'clock, S1=(i-1) * Vmax;
Described deceleration displacement S2 is in i<2 o'clock, S2=S; I 〉=2 o'clock, S2=S-S1;
Wherein, Vmax is the maximum translational speed Vmax of cursor, and Vmax is 15~25% of screen size, establishes integer i=S/Vmax.
CN2011100896754A 2011-04-11 2011-04-11 Method for realizing cursor quick sliding of blue-ray player Expired - Fee Related CN102156556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100896754A CN102156556B (en) 2011-04-11 2011-04-11 Method for realizing cursor quick sliding of blue-ray player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100896754A CN102156556B (en) 2011-04-11 2011-04-11 Method for realizing cursor quick sliding of blue-ray player

Publications (2)

Publication Number Publication Date
CN102156556A CN102156556A (en) 2011-08-17
CN102156556B true CN102156556B (en) 2013-03-27

Family

ID=44438079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100896754A Expired - Fee Related CN102156556B (en) 2011-04-11 2011-04-11 Method for realizing cursor quick sliding of blue-ray player

Country Status (1)

Country Link
CN (1) CN102156556B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495688A (en) * 2011-12-29 2012-06-13 深圳Tcl新技术有限公司 Method and device for quickly moving mouse pointer by utilizing direction keys of remote controller, and television
CN103869118B (en) * 2012-12-13 2017-11-28 北京普源精电科技有限公司 A kind of method and oscillograph of the movement of oscillograph cursor
CN111984160B (en) * 2020-06-28 2021-12-10 中国科学院软件研究所 Target selection method based on artificial potential energy field and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7932896B2 (en) * 2007-06-13 2011-04-26 Apple Inc. Techniques for reducing jitter for taps
CN101504585B (en) * 2009-03-09 2011-04-06 广东威创视讯科技股份有限公司 Sliding type input method of touch screen

Also Published As

Publication number Publication date
CN102156556A (en) 2011-08-17

Similar Documents

Publication Publication Date Title
EP3332565B1 (en) Mixed reality social interaction
CN104202643B (en) Touch screen remote terminal screen map method, the control method and system of touch screen remote terminal of smart television
CN105975181A (en) Method and device for display control of sideslip interface
CN110023856A (en) The method and computing device of motion outline are generated by using S type curve
CN102156556B (en) Method for realizing cursor quick sliding of blue-ray player
CN106354256B (en) A kind of control method for movement of virtual reality
CN104639725B (en) interface switching method and device
US20130027294A1 (en) Input apparatus, input method, and control system
US20140201676A1 (en) Method and apparatus for switching pages in interfaces, and computer storage medium thereof
CN105635776B (en) Pseudo operation graphical interface remoting control method and system
CN106896920B (en) Virtual reality system, virtual reality equipment, virtual reality control device and method
CN103458184A (en) Method for carrying out long-range control on pan-tilt with cell phone
CN105808071A (en) Display control method and device and electronic equipment
EP3173134B1 (en) Synchronization object determining method, apparatus, and system
CN103297828A (en) Method and system for operating set top box with simulation mouse of mobile terminal
CN106814851B (en) Augmented reality interaction method and system
US9472165B2 (en) Method and system for achieving moving synchronization in remote control and computer storage medium
CN111467803A (en) In-game display control method and device, storage medium, and electronic device
CN107491173A (en) A kind of proprioceptive simulation control method and equipment
CN201673460U (en) Directional input device
CN104020957B (en) Digital types of facial makeup in Beijing operas stereoprojection interactive system
CN102866887B (en) Method and device for realizing three-dimensional user interface
CN109671317A (en) Types of facial makeup in Beijing operas interactive teaching method based on AR
CN104915130B (en) Multimedia desktop interaction systems
CN108052253B (en) Virtual reality display content manufacturing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: GUANGDONG OPPO MOBILE COMMUNICATIONS CO., LTD.

Free format text: FORMER OWNER: OPPO ELECTRIC INDUSTRY CO., LTD.

Effective date: 20130606

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20130606

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan Town, Guangdong province 523860 usha Beach Road Dongguan City, No. 18 Guangdong oppo Electronics Industrial Co. Ltd.

Patentee before: Guangdong Oppo Electronics Industry Co.,Ltd.

CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130327

CF01 Termination of patent right due to non-payment of annual fee