WO2024114770A1 - Cursor control method and electronic device - Google Patents
Cursor control method and electronic device Download PDFInfo
- Publication number
- WO2024114770A1 WO2024114770A1 PCT/CN2023/135670 CN2023135670W WO2024114770A1 WO 2024114770 A1 WO2024114770 A1 WO 2024114770A1 CN 2023135670 W CN2023135670 W CN 2023135670W WO 2024114770 A1 WO2024114770 A1 WO 2024114770A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- cursor
- electronic device
- screen
- instruction
- user
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
- H04N21/42206—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
- H04N21/4222—Remote control device emulator integrated into a non-television apparatus, e.g. a PDA, media center or smart toy
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72415—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
Definitions
- the embodiments of the present application relate to the field of electronic devices, and in particular to a cursor control method and electronic device.
- the remote control posture when the user's mobile phone remote control actively points to the large screen for operation, many non-pointing behaviors will also cause the remote control posture to change, resulting in the cursor moving. For example, when the user chooses to play video 1 and clicks or slides on the remote control, the remote control posture changes, causing the cursor that should be displayed on video 1 to move to other positions on the large screen, thereby mistakenly opening the focus of the position where the cursor finally stops, reducing the user experience.
- the embodiments of the present application provide a cursor control method and an electronic device, which can solve the problem that pointing interaction is difficult to accurately control, achieve efficient interaction, and improve user experience.
- a cursor control method is provided, the method being applied to a first electronic device, the method comprising:
- the first electronic device can display the cursor as a static state according to the first instruction sent by the second electronic device, and when the cursor is in the static state, the first electronic device can change the cursor to a pointing state according to the second instruction sent by the second electronic device, and move the cursor, the focus where the cursor currently stays, and at least one of the list displayed on the screen of the first electronic device on the screen of the first electronic device.
- the cursor is displayed as a static state.
- the first electronic device can play the picture corresponding to the target focus where the cursor stops when the movement stops according to the received third instruction.
- the first electronic device can move the cursor, the focus where the cursor currently stays, and at least one of the list according to the received instruction.
- the cursor is in the static state, the cursor, the focus where the cursor currently stays, and the list cannot be moved, which can solve the problem that pointing interaction is difficult to control accurately, and prevent the cursor from jittering due to user misoperation, thereby achieving efficient interaction and improving user experience.
- the second instruction is used to instruct the cursor to move in a first direction and a first distance; the cursor is changed from the static state to the pointing state according to the second instruction, and the cursor, the focus where the cursor is currently resting, and at least one of the list displayed on the screen of the first electronic device are moved on the screen of the first electronic device, including: the cursor is changed from the static state to the pointing state according to the second instruction, and the cursor is moved in the first direction on the screen of the first electronic device.
- the first distance is used to instruct the cursor to move in a first direction and a first distance
- the second instruction instructs the cursor to move in a first direction and a first distance.
- the first electronic device can move the cursor in the first direction and the first distance on the screen of the first electronic device according to the second instruction, that is, the first electronic device can accurately move the cursor according to the second instruction, which can solve the problem that the pointing interaction is difficult to accurately control, thereby further realizing efficient Interaction improves user experience.
- the cursor in the pointing state presents a first state, and the first state represents a direction in which the cursor moves.
- the cursor in the pointing state presents a first state, and the first state represents the direction of movement of the cursor.
- the second instruction is used to instruct the list displayed on the screen of the first electronic device to move in a second direction and a second distance; changing the cursor from the static state to the pointing state according to the second instruction, and moving at least one of the cursor, the focus where the cursor is currently resting, and the list displayed on the screen of the first electronic device on the screen of the first electronic device, includes: changing the cursor from the static state to the pointing state according to the second instruction, and moving the list on the screen of the first electronic device in the second direction and the second distance.
- the second instruction instructs the list displayed on the screen of the first electronic device to move in a second direction and a second distance.
- the first electronic device can move the second distance in the second direction on the screen of the first electronic device according to the second instruction list, that is, the first electronic device can accurately move the list displayed on the screen of the first electronic device according to the second instruction, which can further achieve efficient interaction and improve user experience.
- the cursor in the pointing state presents a second state, and the second state represents the direction of movement of the list and the amplitude of the cursor deformation.
- the cursor in the pointing state presents a second state
- the second state represents the direction of movement of the list displayed on the screen of the first electronic device and the amplitude of the cursor deformation.
- the second instruction includes the cursor moving in a third direction and moving a third distance; changing the cursor from the static state to the pointing state according to the second instruction, and moving the cursor, the focus where the cursor is currently resting, and at least one of the list displayed on the screen of the first electronic device on the screen of the first electronic device, includes: changing the cursor from the static state to the pointing state according to the second instruction, and moving the cursor and the focus where the cursor is currently resting on the screen of the first electronic device in the third direction by the third distance.
- the second instruction instructs the cursor to move in a third direction and a third distance.
- the first electronic device can move the cursor and the focus where the cursor is currently located on the screen of the first electronic device in the third direction and a third distance according to the second instruction. That is, the first electronic device can accurately move the cursor and the focus where the cursor is currently located according to the second instruction, which can further achieve efficient interaction and enhance user experience.
- the cursor presents a third state, and the third state represents the direction in which the cursor and the focus where the cursor rests move.
- the cursor in the pointing state presents a third state, and the third state represents the direction of movement of the cursor and the focus where the cursor rests.
- the method further includes: receiving a fourth instruction sent by the second electronic device, and displaying a function box according to the fourth instruction, wherein the function box includes function keys for controlling the screen currently displayed by the first electronic device.
- the first electronic device can receive the fourth instruction sent by the second electronic device, and display a function box according to the fourth instruction, wherein the function box includes function keys for controlling the screen currently displayed by the first electronic device.
- the embodiment of the present application provides a method for displaying the function box, which can be distinguished from the pointing operation or the sliding operation through such a design, and the currently displayed screen can be adjusted through the function keys.
- the method also includes: receiving a fifth instruction sent by the second electronic device, and displaying the cursor on the screen of the first electronic device according to the fifth instruction.
- the first electronic device can receive the fifth instruction sent by the second electronic device and redisplay the cursor on the screen of the first electronic device according to the fifth instruction.
- the shape of the cursor will change accordingly.
- the degree of cursor deformation can represent the angle at which the posture of the second electronic device deviates from the first electronic device.
- the solution provided in the embodiment of the present application can make The cursor is displayed again on the screen of the first electronic device, and the angle at which the posture of the second electronic device deviates from the first electronic device can be understood according to the degree of deformation of the cursor, thereby improving user experience.
- a cursor control method which is applied to a second electronic device, and the method includes: generating a first instruction in response to a first operation of a user, the first instruction being used to instruct a cursor displayed on the first electronic device to display a static state; sending the first instruction to the first electronic device; generating a second instruction in response to a second operation of the user, the second instruction being used to instruct the cursor to change from the static state to a pointing state, and the direction and/or distance in which the cursor, the focus on which the cursor currently resides, and at least one of the list displayed on the screen of the first electronic device move on the screen of the first electronic device when the cursor is displayed in the pointing state, and the cursor being displayed in the static state when the cursor or the list stops moving, wherein when the cursor is displayed in the pointing state, the cursor, the focus on which the cursor currently resides, and at least one of the list are movable, and when the cursor is displayed in the static state
- the second electronic device in response to a first operation of a user, can generate a first instruction and send the first instruction to the first electronic device, so that the first electronic device can display the cursor in a static state according to the first instruction; in response to a second operation of the user, the second electronic device can generate a second instruction and send the second instruction to the first electronic device, so that the first electronic device can change the cursor to a pointing state according to the second instruction, and move the cursor, the focus where the cursor currently stays, and at least one of the list displayed on the screen of the first electronic device on the screen of the first electronic device, and when the movement stops, the cursor is displayed in a static state; in response to a third operation of the user, the second electronic device generates a third instruction and sends the third instruction to the first electronic device, so that the first electronic device can play the picture corresponding to the target focus where the cursor stops moving according to the received third instruction.
- the second electronic device can generate different instructions in response to different operations of the user, so that the first electronic device can perform corresponding operations according to the received instructions.
- the cursor when the cursor is in a pointing state, the cursor, the focus where the cursor is currently resting, and at least one of the list are moved; when the cursor is in a stationary state, the cursor, the focus where the cursor is currently resting, and the list cannot be moved.
- generating a second instruction in response to a second operation of the user includes: determining an operation type of the second operation in response to the second operation, the operation type including a pointing operation and a sliding operation; and generating the second instruction according to the operation type of the second operation.
- the second electronic device in response to the second operation, can first determine the operation type of the second operation, and more accurately generate a second instruction according to the operation type of the second operation and send it to the first electronic device, so that the first electronic device can perform a corresponding action according to the second instruction.
- the second instruction is generated based on the operation type of the second operation, in other words, the content included in the second instruction can reflect the user's operation on the second electronic device, so that when the first electronic device performs the corresponding operation according to the second instruction, it can be synchronized with the user's second operation.
- the second operation is a pointing operation
- the first electronic device can move the cursor and/or the focus where the cursor rests according to the pointing operation without sliding the list, which can further achieve efficient interaction and enhance user experience.
- determining the operation type of the second operation in response to the second operation includes: determining, in response to the second operation, the magnitude of a numerical value corresponding to the movement trajectory and a first threshold, or determining the magnitude of an angle difference and a second threshold, wherein the movement trajectory is the movement trajectory of a finger on the screen of the second electronic device included in the second operation, and the angle difference is the difference in the change of the posture angle of the second electronic device caused by the second operation; if the numerical value corresponding to the movement trajectory is greater than the first threshold, determining that the second operation is the sliding operation; if the angle difference is greater than the second threshold, determining that the second operation is the pointing operation.
- the solution provided by the embodiment of the present application is that if the value corresponding to the movement trajectory of the finger acting on the screen of the second electronic device included in the second operation is greater than the first threshold, the second electronic device can determine that the second operation is a sliding operation; if the difference in the change of the posture angle of the second electronic device caused by the second operation is greater than the second threshold, the second electronic device can determine that the second operation is a pointing operation.
- the second electronic device can determine whether the second operation is a sliding operation or a pointing operation based on the difference in the movement trajectory and the change in the posture angle, and generate a corresponding instruction based on the operation type and send it to the first electronic device, so that the first electronic device can perform a corresponding action according to the received instruction, which can prevent the inaccuracy of the content indicated by the generated second instruction due to the uncertainty of the operation type, resulting in an error in the execution of the first electronic device. Therefore, the embodiment of the present application can achieve precise interaction and improve user experience.
- the second instruction is used to indicate the direction and/or distance in which the cursor and/or the focus on which the cursor currently resides moves on the screen of the first electronic device; if the operation type of the second operation is the sliding operation, the second instruction is used to indicate the column displayed on the screen of the first electronic device.
- the table shows the direction and/or distance moved on the screen of the first electronic device.
- the second instruction is used to indicate the direction and/or distance that the cursor and/or the focus where the cursor currently stays move on the screen of the first electronic device; if the operation type of the second operation is a sliding operation, the second instruction is used to indicate the direction and/or distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device. So that the first electronic device can accurately move at least one of the cursor, the focus where the cursor currently stays, and the list displayed on the screen of the first electronic device according to the second instruction, which can further achieve efficient interaction and improve user experience.
- the first operation is the user's finger pressing the screen of the second electronic device
- the second operation is the user's wrist holding the second electronic device moving in a first direction
- the second instruction is used to instruct the cursor to move in the first direction and a first distance.
- the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's wrist holding the second electronic device moving in a first direction, then the second instruction can instruct the cursor to move in the first direction and move a first distance, so that the first electronic device can move the cursor on the screen of the first electronic device in the first direction and by the first distance according to the second instruction, that is, the first electronic device can accurately move the cursor according to the second instruction, which can solve the problem that pointing interaction is difficult to accurately control, thereby further realizing efficient interaction and improving user experience.
- the cursor in the pointing state presents a first state
- the first state represents a direction in which the cursor moves.
- the second instruction is also used to instruct the cursor in the pointing state to present a first state, and the first state represents the direction of movement of the cursor.
- the first operation is the user's finger pressing the screen of the second electronic device
- the second operation is the user's finger sliding the screen of the second electronic device along a second direction
- the second instruction is used to instruct the list displayed on the screen of the first electronic device to move in the second direction and a second distance.
- the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's finger sliding the screen of the second electronic device along the second direction; then the second instruction can instruct the list displayed on the screen of the first electronic device to move in the second direction and a second distance, so that the first electronic device can move the second distance in the second direction on the screen of the first electronic device according to the second instruction list, that is, the first electronic device can accurately move the list displayed on the screen of the first electronic device according to the second instruction, which can further achieve efficient interaction and improve user experience.
- the cursor in the pointing state presents a second state
- the second state represents the direction of movement of the list and the amplitude of the cursor deformation
- the second instruction is also used to instruct the cursor in the pointing state to present a second state, and the second state represents the direction of movement of the list displayed on the screen of the first electronic device and the amplitude of the cursor deformation.
- the first operation is that the user's finger clicks on the screen of the second electronic device, lifts up the finger, and then clicks again after lifting up the finger
- the second operation is that the wrist of the user holding the second electronic device moves in a third direction
- the second instruction is used to instruct the cursor to move in the third direction and a third distance.
- the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is that the user's finger clicks on the screen of the second electronic device and then lifts up and clicks again after lifting up, and the second operation is that the wrist of the user holding the second electronic device moves to a third direction; then the second instruction can instruct the cursor to move in the third direction and move a third distance, so that the first electronic device can move the cursor and the focus where the cursor is currently located on the screen of the first electronic device by a third distance in the third direction according to the second instruction, that is, the first electronic device can accurately move the cursor and the focus where the cursor is currently located according to the second instruction, which can further achieve efficient interaction and improve user experience.
- the cursor in the pointing state presents a third state
- the third state represents the direction in which the cursor and the focus where the cursor rests move.
- the second instruction also includes the cursor in the pointing state presenting a third state, and the third state represents the direction of movement of the cursor and the focus where the cursor rests.
- the method further includes: generating a fourth instruction, the fourth instruction being used to instruct the first electronic device to display a function box, the function box including a function for controlling the first electronic device to sending the fourth instruction to the first electronic device.
- the second electronic device when the user's finger clicks on the screen of the second electronic device and then lifts it up, and then clicks again after lifting it up, and the duration of the second click is greater than a preset threshold, the second electronic device can generate a fourth instruction and send it to the first electronic device, so that the first electronic device can display a function box according to the fourth instruction, and the function box includes function keys for controlling the screen currently displayed by the first electronic device.
- the embodiment of the present application provides a method for displaying a function box, which can be distinguished from a pointing operation or a sliding operation through such a design, and the currently displayed screen can be adjusted through the function keys.
- the method also includes: in response to a fourth operation of the user, generating a fifth instruction, the fifth instruction being used to indicate a direction in which the cursor moves so that the cursor is displayed on the screen of the first electronic device; and sending the fifth instruction to the first electronic device.
- the second electronic device can generate a fifth instruction in response to the fourth operation of the user and send it to the first electronic device, so that the first electronic device can redisplay the cursor on the screen of the first electronic device according to the fifth instruction.
- the solution provided by the embodiment of the present application can make the cursor redisplay on the screen of the first electronic device.
- the distance that the cursor and the focus where the cursor currently rests move on the screen of the first electronic device is related to the speed at which the second electronic device rotates
- the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device.
- the distance that the cursor and the focus where the cursor currently rests move on the screen of the first electronic device is related to the rotation speed of the second electronic device
- the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device.
- the faster the second electronic device rotates the larger the display-control ratio, and the greater the distance the cursor and/or the focus where the cursor is currently located moves on the screen of the first electronic device; the slower the second electronic device rotates, the smaller the display-control ratio, and the smaller the distance the cursor and/or the focus where the cursor is currently located moves on the screen of the first electronic device.
- the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device is related to the rotation speed of the second electronic device, that is, the faster the second electronic device rotates and the larger the display-control ratio, the greater the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device; the slower the second electronic device rotates and the smaller the display-control ratio, the smaller the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device.
- the speed and accuracy of the movement can be taken into account. Specifically, the faster the second electronic device rotates, the greater the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device.
- the speed of the second electronic device rotates faster, the efficiency of the movement of the cursor and/or the focus where the cursor is currently resting is given priority, that is, the cursor and/or the focus where the cursor is currently resting is quickly moved to the corresponding position; the slower the speed of the second electronic device rotates, the smaller the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device. It can be understood that when the speed of the second electronic device rotates slower, the accuracy of the movement of the cursor and/or the focus where the cursor is currently resting is given priority, that is, the cursor and/or the focus where the cursor is currently resting is slowly moved to the precise position.
- the faster the user slides on the screen of the second electronic device the larger the display-to-control ratio, and the greater the distance the list displayed on the screen of the first electronic device moves on the screen of the first electronic device; the slower the user slides on the screen of the second electronic device, the smaller the display-to-control ratio, and the smaller the distance the list displayed on the screen of the first electronic device moves on the screen of the first electronic device.
- the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device, that is, the faster the user slides on the screen of the second electronic device and the larger the display-control ratio, the larger the distance that the list moves on the screen of the first electronic device; the slower the user slides on the screen of the second electronic device and the smaller the display-control ratio, the smaller the distance that the list moves on the screen of the first electronic device.
- the faster the user slides on the screen of the second electronic device the larger the distance that the list eventually moves on the screen of the first electronic device. It can be understood that when the user slides on the screen of the second electronic device faster, the efficiency of the list movement is given priority, that is, the list is quickly moved to the corresponding position; the slower the user slides on the screen of the second electronic device, the smaller the display-control ratio is.
- the smaller the distance moved on the screen of the second electronic device it can be understood that when the user slides slower on the screen of the second electronic device, the accuracy of the list movement is given priority, that is, the list is slowly moved to a precise position.
- a device which is included in an electronic device, and has the function of implementing the electronic device behavior in the above aspects and possible implementations of the above aspects.
- the function can be implemented by hardware, or by hardware executing corresponding software.
- the hardware or software includes one or more modules or units corresponding to the above functions.
- an electronic device comprising: one or more processors; a memory; one or more applications; and one or more computer programs.
- the one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
- the electronic device executes the method in any possible implementation of the first aspect or the second aspect.
- a chip system comprising at least one processor, wherein when program instructions are executed in the at least one processor, the function of the method in any possible implementation of the first aspect or the second aspect mentioned above is implemented on an electronic device.
- a computer storage medium comprising computer instructions.
- the computer instructions When the computer instructions are executed on an electronic device, the electronic device executes a method in any possible implementation of the first aspect or the second aspect.
- a computer program product is provided.
- the computer program product runs on an electronic device, the electronic device executes a method in any possible design of the first aspect or the second aspect.
- FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
- FIG. 2 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application.
- FIG3 is a schematic diagram of a set of GUIs provided in an embodiment of the present application.
- FIG. 4 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
- FIG. 5 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
- FIG. 6 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
- FIG. 7 is a schematic diagram of a method for controlling cursor display provided in an embodiment of the present application.
- FIG. 8 is a schematic diagram of a cursor display provided in an embodiment of the present application.
- FIG9 is a schematic diagram of a user pointing based on body orientation provided in an embodiment of the present application.
- FIG. 10 is a schematic diagram of another method of pointing based on body orientation of a user provided in an embodiment of the present application.
- FIG. 11 is a schematic diagram of a plane coordinate system established based on a mobile phone screen according to an embodiment of the present application.
- FIG12 is a schematic diagram of a three-dimensional rectangular coordinate system established based on a mobile phone screen according to an embodiment of the present application.
- FIG. 13 is a schematic diagram of a display-control ratio curve provided in an embodiment of the present application.
- FIG. 14 is a schematic diagram of a light control method provided in an embodiment of the present application.
- FIG15 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
- FIG16 is a schematic block diagram of another electronic device provided in an embodiment of the present application.
- first and second are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
- a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features.
- the solution provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc.
- electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc.
- the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
- FIG1 shows a schematic diagram of the structure of an electronic device 100.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power supply Management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- controller a memory
- video codec a digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple groups of I2C buses.
- the processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
- the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
- the I2S interface can be used for audio communication.
- the processor 110 can include multiple I2S buses.
- the processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.
- the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
- the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
- the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.
- the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus for asynchronous communication.
- the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
- the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193.
- the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
- the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100.
- the processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or a data signal.
- the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
- the GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
- the interface can also be used to connect other electronic devices, such as AR devices, etc.
- the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the charging management module 140 is used to receive charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
- the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
- the power management module 141 can also be set in the processor 110.
- the power management module 141 and the charging management module 140 can also be set in the same device.
- the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
- antenna 1 can be reused as a diversity antenna for a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
- the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
- the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
- the modem processor may be an independent device.
- the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared
- the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-CDMA), etc.
- the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
- the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
- the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
- the ISP is used to process data fed back by the camera 193.
- the camera 193 is used to capture static images or videos.
- the video codec is used to compress or decompress digital videos.
- NPU is a neural network (NN) computing processor.
- NN neural network
- applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
- the internal memory 121 can be used to store computer executable program codes, which include instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.
- the internal memory 121 may include a program storage area and a data storage area.
- the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
- the data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
- UFS universal flash storage
- the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
- the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A can be set on the display screen 194.
- the capacitive pressure sensor can be a parallel plate including at least two conductive materials.
- the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
- the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A.
- the electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
- the gyro sensor 180B can be used to determine the motion posture of the electronic device 100.
- the angular velocity of the electronic device 100 around three axes i.e., x, y, and z axes
- the gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
- the distance sensor 180F is used to measure the distance.
- the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
- the touch sensor 180K is also called a "touch panel”.
- the touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen”.
- the touch sensor 180K is used to detect touch operations acting on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194.
- the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
- the embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
- FIG2 is a software structure diagram of the electronic device 100 of an embodiment of the present application.
- the layered architecture divides the software into several layers, each layer has a clear role and division of labor.
- the layers communicate with each other through software interfaces.
- the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
- the application layer can include a series of application packages.
- the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
- the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
- the window manager is used to manage window programs.
- the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
- the view system can be used to build applications.
- a display interface can be composed of one or more views.
- a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
- the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
- the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
- the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
- Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
- the system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
- functional modules such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
- the remote control posture when the user's mobile phone remote control actively points to the large screen for operation, many non-pointing behaviors will also cause the remote control posture to change, resulting in the cursor moving. For example, when the user chooses to play video 1 and clicks or slides on the remote control, the remote control posture changes, causing the cursor that should be displayed on video 1 to move to other positions on the large screen, thereby mistakenly opening the focus of the position where the cursor finally stops, reducing the user experience.
- the embodiment of the present application provides a cursor control method, which can solve the problem that pointing interaction is difficult to accurately control, achieve efficient interaction, and improve user experience.
- Figure 3 shows a set of graphical user interfaces (GUI) for a TV, wherein Figure 3 (a) to Figure 3 (j) show a method for a user to control a cursor displayed on the TV interface through a mobile phone.
- GUI graphical user interfaces
- the TV in the GUI displays the main interface, and a tab bar is displayed above the main interface: My, Children, Featured, VIP, etc., and multiple videos are also displayed on the main interface.
- the current cursor state is ⁇ , that is, the cursor is in a static state, and the cursor is located in the focus of video 1.
- the user can control the state and position of the cursor on the TV screen through the mobile phone.
- the TV detects that the user's finger is pressing the screen 301 of the mobile phone, the TV can display the GUI shown in (b) of FIG. 3 .
- the state of the cursor displayed on the TV screen changes from ⁇ to That is, the cursor changes from the normal state to the static state.
- the user can point the mobile phone at the TV and turn his wrist to change the posture of the mobile phone.
- the TV detects that the posture of the mobile phone rotates from left to right, the TV can display the GUI shown in (c) of Figure 3.
- the states presented by the cursor may include normal state, static state and pointing state.
- the cursor When the cursor is in the pointing state, when the user turns his wrist to change the posture of the mobile phone, the cursor moves with the change of the mobile phone posture; when the cursor is in the static state or normal state, when the user turns his wrist to change the posture of the mobile phone, the cursor will not move.
- the cursor displayed on the TV screen is located in the focus of video 2 at this time, and the state of the cursor is That is, the cursor returns to the static state from the pointing state.
- the television detects that the user's finger clicks the screen 302 of the mobile phone again, the television can display the GUI as shown in (e) in FIG. 3 .
- the TV screen displays information about Video 2.
- the user can press and hold the screen of the mobile phone with his finger, and at the same time, the user rotates his wrist to move the cursor to the position of the "Play" function control. Then, after clicking on the screen of the mobile phone, the TV can play Video 2.
- the cursor when the user turns his wrist, the cursor may move to the edge of the TV screen or even out of the edge of the TV screen due to excessive wrist rotation.
- An embodiment of the present application provides a cursor display method that can dynamically inform the user of the angle of the cursor deviation, so that the user can turn his wrist in the opposite direction to compensate for the deviation.
- the cursor changes from Transformed to When the user stops rotating his wrist, the cursor is located in the focus of video 2. If the user rotates his wrist too much, causing the cursor to move to the edge of the TV screen, the TV can display the GUI shown in (f) in FIG. 3 .
- the edge on the right side of the TV screen displays icons And the icon displayed on the right edge of (h) in Figure 3
- the icon shown on the right edge of (g) in Figure 3 The height of is higher, indicating that the adsorption effect of the cursor is further enhanced.
- the user can rotate the wrist in the opposite direction, that is, the user can rotate the wrist from right to left, and the mobile phone also starts to rotate to the left, and the TV can display the GUI shown in (i) in Figure 3.
- the cursor is displayed on the right edge of the TV screen. This means that the angle of the phone has been compensated by the user's reverse wrist rotation, and the user can continue to rotate the wrist to control the movement of the cursor.
- the cursor since the user rotates the wrist from right to left during the reverse wrist rotation, when the cursor reappears from the right edge of the TV screen, the cursor The white circle in the middle is located to the left of the entire cursor.
- the solution provided in the embodiment of the present application distinguishes the state of the cursor. If the cursor is in a normal or static state, when the user turns his wrist to change the posture of the mobile phone used to control the cursor, the cursor will not move, that is, the position of the cursor will not change with the change of the posture of the mobile phone; If the cursor is in a pointing state, when the user turns his wrist to change the posture of the mobile phone used to control the cursor, the cursor moves with the movement of the mobile phone, that is, the position of the cursor will change with the change of the posture of the mobile phone.
- the embodiment of the present application can solve the problem that the pointing interaction is difficult to control accurately by distinguishing the state of the cursor and when the cursor is in a pointing state, the position of the cursor changes with the change of the posture of the mobile phone used to control the cursor, thereby achieving efficient interaction and improving the user experience.
- the embodiment of the present application also provides a visual prompt method for feedback of the cursor state, that is, when the cursor moves out of the edge of the TV screen, the shape of the cursor will change, and the degree of cursor deformation can represent the degree of deviation of the mobile phone posture from the TV.
- the user can compensate for the angle of deviation of the mobile phone posture by moving or rotating the mobile phone in the opposite direction.
- the angle of deviation of the mobile phone is compensated by reverse rotation, the cursor reappears from the edge of the TV screen.
- the interaction status can be better fed back to the user, thereby improving the user experience.
- FIG. 4 shows another set of GUIs for a TV, wherein (a) to (e) in FIG. 4 show a method for a user to control a cursor displayed on a TV interface via a mobile phone.
- the TV in the GUI displays the main interface, and a tab bar is displayed above the main interface: My, Children, Featured, VIP, etc., and multiple videos are also displayed on the main interface.
- the current cursor status is ⁇ , and the cursor is located in the focus of video 2.
- the user can control the status and position of the cursor on the TV screen through the mobile phone.
- the TV detects that the user's finger is pressing the screen 401 of the mobile phone, the TV can display the GUI shown in (b) of FIG. 4 .
- the state of the cursor displayed on the TV screen changes from ⁇ to That is, the cursor enters the static state from the normal state, and the user's finger sliding on the screen of the mobile phone can scroll the list of the TV interface.
- the TV detects that the user's finger slides upward 402 on the screen of the mobile phone, the TV can display the GUI as shown in (c) in Figure 4.
- the amplitude of the cursor deformation is related to the distance the user slides on the mobile phone screen. The longer the distance the user slides on the mobile phone screen, the greater the amplitude of the cursor deformation; the shorter the distance the user slides on the mobile phone screen, the smaller the amplitude of the cursor deformation.
- the maximum upper limit value can be a preset value.
- the cursor displayed on the TV screen is located in the focus of video 4 at this time, and the state of the cursor is That is, the cursor returns to the static state from the pointing state, and when the TV detects that the user's finger leaves the TV, the TV may display the GUI as shown in (e) in FIG. 4 .
- the solution provided by the embodiment of the present application allows the user to scroll the video displayed on the TV screen by sliding on the mobile phone screen, which allows the user to position the cursor to the focus of the user's desired playback more quickly.
- the state of the cursor will change, and the magnitude of the change is related to the distance the user's mobile phone slides on the mobile phone screen, that is, the longer the distance the user slides on the mobile phone screen, the greater the magnitude of the cursor change; the shorter the distance the user slides on the mobile phone screen, the smaller the magnitude of the cursor change.
- Such a motion effect design can better feedback the interaction status to the user, thereby improving the user experience.
- FIG. 5 shows another set of GUIs for a TV, wherein FIG. 5( a ) to FIG. 5( d ) show a method for a user to control a cursor displayed on a TV interface via a mobile phone.
- the TV in the GUI displays the main interface, and a tab bar is displayed above the main interface: My, Children, Featured, VIP, etc., and multiple videos are also displayed on the main interface.
- the current cursor status is ⁇ , and the cursor is located in the focus of video 2.
- the user can control the status and position of the cursor on the TV screen through the mobile phone.
- the TV detects that the user's finger clicks on the screen of the mobile phone and then lifts it up and then clicks 501 again after lifting it up, the TV can display the GUI shown in (b) of FIG. 5 .
- the state of the cursor displayed on the TV screen changes from ⁇ to That is, the cursor has entered the static state from the normal state, where Indicates that the user can drag the focus selected by the cursor.
- the user can change the posture of the mobile phone by rotating the wrist, so as to drag the position of the focus.
- the posture of the mobile phone also rotates from left to right, and the TV can display the GUI shown in (c) of Figure 5.
- the solution provided by the embodiment of the present application allows the user to drag the focus on the TV screen. Specifically, when the TV detects that the user's finger clicks on the screen of the mobile phone, lifts it up, and then clicks again after lifting it up, the state of the cursor will change. When the state of the cursor changes to In this state, the user can drag the focus on the TV screen to the position where the user wants the focus to be located. Through such a design, the focus on the TV screen can be dragged, thereby improving the user experience.
- FIG. 6 shows another set of GUIs for a TV, wherein FIG. 6 (a) to FIG. 6 (c) show a method for a user to control a cursor displayed on a TV interface via a mobile phone.
- the TV in the GUI displays the main interface, and a tab bar is displayed above the main interface: My, Children, Featured, VIP, etc., and multiple videos are also displayed on the main interface.
- the current cursor status is ⁇ , and the cursor is located in the focus of video 2.
- the user can control the status and position of the cursor on the TV screen through the mobile phone.
- the TV can display the GUI shown in (b) of FIG6 .
- the interface displays the screen of video 2.
- the TV detects that the user's finger clicks on the screen of the mobile phone and then lifts it up and clicks again after lifting it up, and the click duration exceeds a threshold, a long press operation is triggered and the TV can display the GUI shown in (c) of FIG6 .
- a function box pops up on the interface at this time, and the function box includes function keys for controlling the playback screen of the video 2.
- the user can control the playback of the video 2 by clicking the corresponding function keys.
- FIG7 is a schematic diagram of a method for controlling cursor display provided in an embodiment of the present application.
- the embodiment of the present application takes a mobile phone and a television as examples.
- the method may include steps S710 to S730.
- step S714 If yes, execute step S714; if no, execute step S716.
- the mobile phone in step S712 can determine the operation type based on the user's operation on the mobile phone. For example, when the user presses his finger on the mobile phone screen, if the mobile phone detects that the user is holding the mobile phone and the mobile phone's own posture is changing, the mobile phone can determine that the operation type is a pointing operation; if the mobile phone detects that the touch coordinates of the user's finger on the mobile phone screen change, the mobile phone can determine that the operation type is a sliding operation.
- step S718 If yes, execute step S718; if no, execute step S720.
- the list on the TV screen scrolls as the touch coordinates of the user on the mobile phone screen change. As shown in FIG. 4 above, when the user slides his finger upward on the mobile phone screen, the list on the TV screen also scrolls upward; similarly, when the user slides his finger downward on the mobile phone screen, the list on the TV screen also scrolls downward.
- the cursor displayed on the TV screen will also move as the posture of the mobile phone changes. As shown in Figure 3 above, when the user holds the mobile phone and points the mobile phone at the TV and turns the wrist to the right, the cursor displayed on the TV screen will also move to the right. When the user holds the mobile phone and points the mobile phone at the TV and turns the wrist to the left, the cursor displayed on the TV screen will also move to the left. When the user holds the mobile phone and points the mobile phone at the TV and moves the wrist upward, the cursor displayed on the TV screen will also move upward. When the user holds the mobile phone and points the mobile phone at the TV and moves the wrist downward, the cursor displayed on the TV screen will also move upward.
- the operation type when the operation type is determined to be a pointing operation, as the posture of the mobile phone changes, in addition to the movement of the cursor displayed on the TV screen, the focus where the cursor is located will also move simultaneously.
- the mobile phone can distinguish by the movement of the user's finger on the mobile phone screen before the user turns or moves the wrist. If the user clicks on the mobile phone screen and then lifts up the finger before turning or moving the wrist and clicks again after lifting it up, when the user turns or moves the wrist, the focus where the cursor is located moves with the cursor.
- the posture of the mobile phone when the user's wrist turns from left to right, the posture of the mobile phone also turns from left to right, and the cursor and the video 2 where the cursor is located move together. This focus uniformly moves to the right.
- Figure 8 is a schematic diagram of a cursor display provided by an embodiment of the present application.
- Figure 8 (a) is the normal state of the cursor
- Figure 8 (b) is the movement state of the cursor when the user's finger clicks on the screen of the mobile phone and the user turns or moves the wrist
- Figure 8 (c) is the movement state of the cursor when the user's finger slides on the screen of the mobile phone
- Figure 8 (d) is the movement state of the cursor when the user's finger clicks on the screen of the mobile phone, lifts up, and clicks again after lifting up, and the user turns or moves the wrist.
- the user can point within a suitable wrist movement range according to his or her own orientation.
- FIG. 9 and FIG. 10 are schematic diagrams of a user pointing based on body orientation provided in an embodiment of the present application.
- step S722 If yes, execute step S722; if no, execute step S724.
- the mobile phone in the case where the type of operation cannot be determined, can determine whether the operation of pressing the finger on the mobile phone screen is the first frame in which the finger has just touched the mobile phone screen. If so, the initial touch coordinates of the finger touching the mobile phone screen and the initial posture of the mobile phone can be recorded to facilitate the calculation of the finger movement trajectory of subsequent sliding operations and the change in the posture of the mobile phone during rotation operations.
- S724 Whether the value of the finger movement trajectory exceeds a first threshold.
- step S726 If yes, execute step S726; if no, execute step S728.
- a plane coordinate system can be established based on the center of the mobile phone screen, and the numerical value of the finger movement trajectory can be calculated according to the change of the coordinates touched by the finger.
- FIG. 11 it is a schematic diagram of a plane coordinate system established based on a mobile phone screen according to an embodiment of the present application. Assuming that the coordinate value of the initial touch position A of the user's finger is (a1, a2), when the user's finger slides to position B and stops, the coordinate value of B is (b1, b2). If the user's finger movement trajectory is a straight line, the value of the user's finger movement trajectory can be expressed as
- the size of the numerical value and the first threshold can be judged. If the numerical value is greater than the first threshold, it can be considered that the user has slid on the mobile phone screen, thereby entering the sliding operation state; if the numerical value is less than or equal to the first threshold, the size of the mobile phone posture change value and the second threshold can be further judged.
- the operation of the user's finger on the mobile phone screen is reflected on the TV, and the list on the TV interface will scroll up or down. Specifically, if the user slides his finger upward on the mobile phone screen, the list on the TV interface will also scroll up, and if the user slides his finger downward on the mobile phone screen, the list on the TV interface will also scroll down.
- S728 Whether the mobile phone posture change value exceeds a second threshold.
- step S730 if no, end.
- a three-dimensional rectangular coordinate system can be established based on the center of the mobile phone screen, and the rotation angle of the mobile phone, that is, the change value of the mobile phone posture, can be calculated according to the change of the mobile phone posture.
- FIG. 12 it is a schematic diagram of a three-dimensional rectangular coordinate system established based on a mobile phone screen according to an embodiment of the present application.
- the center of the mobile phone screen is taken as the coordinate origin, and the right, inward, and upward are the x-axis, y-axis, and z-axis respectively.
- the coordinate axis will also rotate with the rotation of the mobile phone. At this time, the coordinate axis will change accordingly, as shown in (b) in FIG12 .
- the posture of the mobile phone can be calculated according to the new coordinate system (i.e., the x' axis, z' axis and y axis), see (c) in Figure 12.
- the new coordinate system can be understood to be consistent with the coordinate system shown in (a) in Figure 12.
- R represents the relative rotation angle of the device between two adjacent frames
- [x, y, z] is the relative rotation angle R expressed in the form of Euler angles
- [q 0 ,q 1 ,q 2 ,q 3 ] is the relative rotation angle R expressed in the form of quaternion
- currentAttitudeRotationQuaternion is the rotation quaternion of the roll angle
- relativeRotation is the relative rotation of the coordinate systems of two adjacent frames
- currentAttitudeRotationQuaternion_inverse is the inverse of the rotation quaternion of the roll angle
- roll is the roll angle of the device relative to the earth coordinate system after rotation
- lastAttitude is the attitude of the device relative to the earth coordinate system before rotation (quaternion form)
- lastAttitude inverse is the inverse of lastAttitude
- currentaAttitude is the attitude of the device relative to the earth coordinate system (quaternion form) after rotation.
- the size of the mobile phone posture change value and the second threshold can be judged. If the posture change value is greater than the second threshold, it can be considered that the user has rotated the mobile phone, thereby entering the pointing operation state; if the posture change value is less than or equal to the second threshold, the judgment process is terminated.
- the user's operation of rotating or moving the wrist while holding the mobile phone is reflected on the TV, and the cursor displayed on the TV will move horizontally or vertically. Specifically, if the user rotates the wrist to the right while holding the mobile phone, the cursor displayed on the TV will move to the right; if the user rotates the wrist to the left while holding the mobile phone, the cursor displayed on the TV will move to the left; if the user moves the wrist upward while holding the mobile phone, the cursor displayed on the TV will move upward; if the user moves the wrist downward while holding the mobile phone, the cursor displayed on the TV will move downward.
- the two judgment processes of judging the trajectory of the finger movement and the size of the first threshold and judging the change value of the mobile phone posture and the size of the second threshold are not prioritized.
- the trajectory of the finger movement and the size of the first threshold can be judged first, and then the change value of the mobile phone posture and the size of the second threshold can be judged; or, the change value of the mobile phone posture and the size of the second threshold can be judged first, and then the trajectory of the finger movement and the size of the first threshold can be judged; there is no limitation.
- the embodiment of the present application can adjust the display-control ratio by the rotation speed of the wrist to control the accuracy and speed of the cursor movement.
- the rotation speed of the wrist is low, such as the rotation speed of the wrist is less than the preset value
- the accuracy of the cursor display can be given priority, that is, as the user's wrist rotates, the cursor can move slowly and eventually stay accurately at the position where the user wants the cursor to be displayed
- the rotation speed of the wrist is high, such as the rotation speed of the wrist is greater than the preset value
- the efficiency of the cursor display can be given priority, that is, as the user's wrist rotates, the cursor can move quickly and eventually stay near the position where the user wants the cursor to be displayed.
- FIG 13 it is a schematic diagram of a display-control ratio curve provided in an embodiment of the present application. It can be seen from the figure that for any curve, the faster the user moves the mobile phone or the faster the user's finger moves, the larger the display-control ratio, and the longer the cursor displayed on the TV screen and/or the focus where the cursor stays moves; the slower the user moves the mobile phone or the slower the user's finger moves, the smaller the display-control ratio, and the shorter the cursor displayed on the TV screen and/or the focus where the cursor stays moves.
- the faster the user moves the phone the greater the distance the cursor and/or the focus where the cursor is currently resting moves on the TV screen. It can be understood that when the phone moves faster, the efficiency of the movement of the cursor and/or the focus where the cursor is currently resting is prioritized, that is, the cursor and/or the focus where the cursor is currently resting is quickly moved to the corresponding position; when the user moves the phone slower, the smaller the distance the cursor and/or the focus where the cursor is currently resting moves on the TV screen.
- the figure also shows multiple curves, which are mainly related to the sensitivity of the cursor.
- Case 1 The user rotates the phone with his wrist
- Gain is the display-control ratio
- R is the total rotation angle of two adjacent frames of the mobile phone relative to each other
- Rz is the rotation angle of two adjacent frames of the mobile phone in the horizontal direction
- Ry is the rotation angle of two adjacent frames of the mobile phone in the vertical direction.
- the mobile phone rotates by an angle R, which is reflected on the TV.
- dx is the lateral displacement of the cursor
- dy is the longitudinal displacement of the cursor
- the same wrist movement has the same pointing effect for different user's hand-holding postures of the mobile phone.
- the posture change value of the mobile phone has nothing to do with the user's hand-holding posture of the mobile phone, but only with the rotation direction of the wrist of the hand holding the mobile phone.
- the displacement of the user's finger sliding on the mobile phone screen is k, and the displacement of the cursor displayed on the TV is d:
- Gain is the display-control ratio
- ky is the longitudinal displacement of the finger
- kx is the lateral displacement of the finger.
- the solution provided by the embodiment of the present application is that the mobile phone determines the user operation type by combining the operation of the user's finger and the change of the mobile phone's posture, and enters the corresponding operation state according to the operation type.
- the mobile phone can determine the operation type based on the operation of the user's finger
- the list on the TV screen can be scrolled based on the change of the coordinates of the finger touching the mobile phone screen, or the cursor can be controlled to move on the TV screen based on the change of the mobile phone's posture
- the initial touch coordinates of the user's finger on the mobile phone screen can be recorded first, and then the value of the movement trajectory of the user's finger can be determined with the size of the first threshold, or the value of the mobile phone posture change value with the size of the second threshold, so as to enter the corresponding operation state more accurately.
- the above design can solve the problem that pointing interaction is difficult to control accurately, thereby achieving efficient
- FIG. 14 it is a schematic diagram of a light control method provided by an embodiment of the present application.
- the method can be executed by a first electronic device and a second electronic device, and the method can include steps 1410-1426.
- the second electronic device In response to a first operation of a user, the second electronic device generates a first instruction, where the first instruction is used to instruct a cursor displayed on the first electronic device to display a static state.
- the second electronic device sends the first instruction to the first electronic device
- the first electronic device displays the cursor in a static state according to the first instruction.
- the first electronic device in the embodiment of the present application may be the television in the above embodiment, and the second electronic device may be the mobile phone in the above embodiment.
- the cursor displayed on the screen of the first electronic device may be adjusted to a static state according to the first instruction.
- the second electronic device In response to a second operation of the user, the second electronic device generates a second instruction, wherein the second instruction is used to instruct the cursor to change from the static state to the pointing state, and when the cursor is displayed in the pointing state, the direction and/or distance in which at least one of the cursor, the focus on which the cursor currently resides, and the list displayed on the screen of the first electronic device moves on the screen of the first electronic device, and when the cursor or the list stops moving, the cursor is displayed in the static state, wherein when the cursor is displayed in the pointing state, at least one of the cursor, the focus on which the cursor currently resides, and the list is movable, and when the cursor is displayed in the static state, the cursor, the focus on which the cursor currently resides, and the list are not movable;
- the second electronic device sends the second instruction to the first electronic device.
- the first electronic device displays the cursor as changing from the static state to the pointing state according to the second instruction, and moves at least one of the cursor, the focus on which the cursor currently rests, and the list displayed on the screen of the first electronic device on the screen of the first electronic device, and displays the cursor in the static state when the cursor or the list stops moving.
- a corresponding operation can be performed according to the second instruction, for example, the cursor can be changed to a pointing state according to the second instruction, and at least one of the cursor, the focus where the cursor currently stays, and the list displayed on the screen of the first electronic device can be moved on the screen of the first electronic device.
- the specific operations performed by the first electronic device are related to the content specifically indicated by the second instruction, and the specific content indicated by the second instruction is related to the second operation of the user. For specific situations, please refer to the following situations 1, 2, and 3.
- the second electronic device In response to a third operation of the user, the second electronic device generates a third instruction, where the third instruction is used to instruct to play a picture corresponding to the target focus where the cursor is located;
- the second electronic device sends the third instruction to the first electronic device.
- the first electronic device receives the third instruction sent by the second electronic device, and plays the picture corresponding to the target focus where the cursor is located according to the third instruction.
- the first electronic device can display the cursor as a static state according to the first instruction sent by the second electronic device, and when the cursor is in the static state, the first electronic device can change the cursor to a pointing state according to the second instruction sent by the second electronic device, and move at least one of the cursor, the focus where the cursor currently stays, and the list displayed on the screen of the first electronic device on the screen of the first electronic device.
- the cursor is displayed in a static state.
- the second electronic device can generate a third instruction according to the third operation of the user, and the first electronic device can play the picture corresponding to the target focus where the cursor stops when the movement stops according to the received third instruction.
- the first electronic device can move at least one of the cursor, the focus where the cursor currently stays, and the list according to the received instruction.
- the cursor is in the static state, the cursor, the focus where the cursor currently stays, and the list cannot be moved, which can solve the problem that it is difficult to accurately control the pointing interaction, and prevent the cursor from jittering due to user misoperation, thereby achieving efficient interaction and improving user experience.
- generating a second instruction in response to a second operation of the user includes:
- the second instruction is generated according to the operation type of the second operation.
- the second electronic device in response to the second operation, can first determine the operation type of the second operation, and more accurately generate a second instruction according to the operation type of the second operation and send it to the first electronic device, so that the first electronic device can perform a corresponding action according to the second instruction.
- the second instruction is generated based on the operation type of the second operation, in other words, the content included in the second instruction can reflect the user's operation on the second electronic device, so that when the first electronic device performs the corresponding operation according to the second instruction, it can be synchronized with the user's second operation.
- the second operation is a pointing operation
- the first electronic device can move the cursor and/or the focus where the cursor rests according to the pointing operation without sliding the list, which can further achieve efficient interaction and enhance user experience.
- determining the operation type of the second operation includes:
- the solution provided by the embodiment of the present application is that if the value corresponding to the movement trajectory of the finger acting on the screen of the second electronic device included in the second operation is greater than the first threshold, the second electronic device can determine that the second operation is a sliding operation; if the difference in the change of the posture angle of the second electronic device caused by the second operation is greater than the second threshold, the second electronic device can determine that the second operation is a pointing operation.
- the second electronic device can determine whether the second operation is a sliding operation or a pointing operation based on the difference in the movement trajectory and the change in the posture angle, and generate a corresponding instruction based on the operation type and send it to the first electronic device, so that the first electronic device can perform a corresponding action according to the received instruction, which can prevent the inaccuracy of the content indicated by the generated second instruction due to the uncertainty of the operation type, resulting in an error in the execution of the first electronic device. Therefore, the embodiment of the present application can achieve precise interaction and improve user experience.
- the second instruction is used to indicate the direction and/or distance in which the cursor and/or the focus where the cursor currently resides moves on the screen of the first electronic device;
- the second instruction is used to indicate the direction and/or distance in which the list displayed on the screen of the first electronic device moves on the screen of the first electronic device.
- the second instruction is used to indicate the direction and/or distance that the cursor and/or the focus where the cursor currently stays moves on the screen of the first electronic device; if the operation type of the second operation is a sliding operation, the second instruction is used to indicate the direction and/or distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device.
- the first electronic device can accurately move the cursor, the focus where the cursor currently stays, and the list displayed on the screen of the first electronic device according to the second instruction. At least one movement can further achieve efficient interaction and enhance user experience.
- the second electronic device in response to the user's first operation, the second electronic device generates a first instruction; in response to the user's second operation, the second electronic device generates a second instruction; wherein the specific content indicated by the second instruction is related to the first operation and the second operation, please refer to the following for details.
- the first operation is that the user presses the screen of the second electronic device with a finger
- the second operation is that the user moves the wrist of the user holding the second electronic device in a first direction
- the second instruction is used to instruct the cursor to move in the first direction and over a first distance.
- the step of displaying the cursor in a pointing state according to the second instruction and moving at least one of the cursor, a focus on which the cursor currently resides, and a list displayed on the screen of the first electronic device on the screen of the first electronic device includes:
- the cursor is displayed in a pointing state according to the second instruction, and the cursor is moved by the first distance in the first direction on the screen of the first electronic device.
- the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's wrist holding the second electronic device moving in a first direction, then the second instruction can instruct the cursor to move in the first direction and move a first distance. At this time, the first electronic device can move the cursor on the screen of the first electronic device in the first direction and by the first distance according to the second instruction, that is, the first electronic device can accurately move the cursor according to the second instruction, which can solve the problem that pointing interaction is difficult to accurately control, thereby further realizing efficient interaction and improving user experience.
- the second instruction is further used to instruct the cursor in the pointing state to present a first state, wherein the first state represents a direction in which the cursor moves.
- the second instruction is also used to instruct the cursor in the pointing state to present a first state, and the first state represents the direction of movement of the cursor.
- the first operation is that the user's finger presses the screen of the second electronic device
- the second operation is that the user's finger slides the screen of the second electronic device along a second direction
- the second instruction is used to instruct the list displayed on the screen of the first electronic device to move in a second direction and a second distance.
- the step of displaying the cursor in a pointing state according to the second instruction and moving at least one of the cursor, a focus on which the cursor currently resides, and a list displayed on the screen of the first electronic device on the screen of the first electronic device includes:
- the cursor is displayed in a pointing state according to the second instruction, and the list is moved by the second distance in the second direction on the screen of the first electronic device.
- the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's finger sliding the screen of the second electronic device along the second direction; then the second instruction can instruct the list displayed on the screen of the first electronic device to move in the second direction and a second distance. At this time, the first electronic device can move the second distance in the second direction on the screen of the first electronic device according to the second instruction list, that is, the first electronic device can accurately move the list displayed on the screen of the first electronic device according to the second instruction, which can further achieve efficient interaction and improve user experience.
- the second instruction is further used to instruct the cursor in the pointing state to present a second state, and the second state represents the direction of movement of the list and the amplitude of the cursor deformation.
- the second instruction is also used to instruct the cursor in the pointing state to present a second state
- the second state represents the direction of movement of the list displayed on the screen of the first electronic device and the amplitude of the cursor deformation.
- the first operation is that the user's finger clicks on the screen of the second electronic device, lifts up, and then clicks again after being lifted up, and the second operation is that the user's wrist holding the second electronic device moves in a third direction;
- the second instruction is used to instruct the cursor to move along the third direction and a third distance.
- the step of displaying the cursor in a pointing state according to the second instruction and moving at least one of the cursor, a focus on which the cursor currently resides, and a list displayed on the screen of the first electronic device on the screen of the first electronic device includes:
- the cursor is displayed as a pointing state, and the cursor and the focus currently on which the cursor is located are placed on the first
- the screen of the electronic device moves the third distance along the third direction.
- the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is that the user's finger clicks on the screen of the second electronic device and then lifts up and clicks again after lifting up, and the second operation is that the wrist of the user holding the second electronic device moves to a third direction; then the second instruction can instruct the cursor to move in the third direction and move a third distance.
- the first electronic device can move the cursor and the focus where the cursor is currently located on the screen of the first electronic device by a third distance in the third direction according to the second instruction, that is, the first electronic device can accurately move the cursor and the focus where the cursor is currently located according to the second instruction, which can further achieve efficient interaction and improve user experience.
- the second instruction is further used to instruct the cursor in the pointing state to present a third state
- the third state represents the direction in which the cursor and the focus where the cursor rests move.
- the second instruction also includes the cursor in the pointing state presenting a third state, and the third state represents the direction of movement of the cursor and the focus where the cursor rests.
- the method further includes:
- the second electronic device generates a fourth instruction, where the fourth instruction is used to instruct the first electronic device to display a function box, where the function box includes function keys for controlling a screen currently displayed by the first electronic device;
- the second electronic device sends the fourth instruction to the first electronic device.
- the first electronic device receives the fourth instruction sent by the second electronic device, and displays a function box according to the fourth instruction, wherein the function box includes function keys for controlling the screen currently displayed by the first electronic device.
- the second electronic device when the user's finger clicks on the screen of the second electronic device and then lifts it, and then clicks again after lifting it, and the duration of the second click is greater than a preset threshold, the second electronic device can generate a fourth instruction and send it to the first electronic device.
- the first electronic device can display a function box according to the fourth instruction, and the function box includes function keys for controlling the screen currently displayed by the first electronic device.
- the embodiment of the present application provides a method for displaying a function box, which can be distinguished from a pointing operation or a sliding operation through such a design, and the currently displayed screen can be adjusted through the function keys.
- the cursor in the pointing state displays a fourth state, and the fourth state represents the direction in which the cursor moves out of the screen of the first electronic device and the amplitude by which the cursor moves out of the screen of the second electronic device;
- the method further comprises:
- the second electronic device In response to a fourth operation of the user, the second electronic device generates a fifth instruction, wherein the fifth instruction is used to indicate a direction in which the cursor moves so that the cursor is displayed on the screen of the first electronic device;
- the second electronic device sends the fifth instruction to the first electronic device.
- the first electronic device receives the fifth instruction sent by the second electronic device, and displays the cursor on the screen of the first electronic device according to the fifth instruction.
- the cursor in the pointing state displays the fourth state, and the fourth state represents the direction in which the cursor moves out of the screen of the first electronic device and the amplitude of the cursor moving out of the screen of the second electronic device; the second electronic device can generate a fifth instruction in response to the user's fourth operation and send it to the first electronic device, so that the first electronic device can redisplay the cursor on the screen of the first electronic device according to the fifth instruction.
- the shape of the cursor will change accordingly, and the degree of the cursor deformation can represent the angle of the posture of the second electronic device deviating from the first electronic device.
- the interaction status can be better fed back to the user, thereby improving the user experience.
- the distance that the cursor and the focus where the cursor currently rests move on the screen of the first electronic device is related to the speed at which the second electronic device rotates
- the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device.
- the distance that the cursor and the focus where the cursor currently rests move on the screen of the first electronic device is related to the rotation speed of the second electronic device
- the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device.
- the faster the second electronic device rotates the greater the display-control ratio is, and the greater the distance that the cursor and/or the focus where the cursor currently stays moves on the screen of the first electronic device is;
- the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device is related to the rotation speed of the second electronic device, that is, the faster the second electronic device rotates and the larger the display-control ratio, the greater the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device; the slower the second electronic device rotates and the smaller the display-control ratio, the smaller the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device.
- the speed and accuracy of the movement can be taken into account. Specifically, the faster the second electronic device rotates, the greater the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device.
- the second electronic device rotates faster, the efficiency of the movement of the cursor and/or the focus where the cursor is currently resting is given priority, that is, the cursor and/or the focus where the cursor is currently resting is quickly moved to the corresponding position; the slower the second electronic device rotates, the smaller the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device. It can be understood that when the second electronic device rotates slower, the accuracy of the movement of the cursor and/or the focus where the cursor is currently resting is given priority, that is, the cursor and/or the focus where the cursor is currently resting is slowly moved to the precise position.
- the faster the user slides on the screen of the second electronic device the larger the display-control ratio is, and the greater the distance the list displayed on the screen of the first electronic device moves on the screen of the first electronic device;
- the slower the user slides on the screen of the second electronic device the smaller the display-to-control ratio is, and the smaller the distance the list displayed on the screen of the first electronic device moves on the screen of the first electronic device.
- the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device, that is, the faster the user slides on the screen of the second electronic device, the larger the display-control ratio, and the larger the distance that the list moves on the screen of the first electronic device, and the slower the user slides on the screen of the second electronic device, the smaller the display-control ratio, and the smaller the distance that the list moves on the screen of the first electronic device.
- the speed and accuracy of movement can be taken into account. Specifically, the faster the user slides on the screen of the second electronic device, the larger the distance that the final list moves on the screen of the first electronic device. It can be understood that when the user slides on the screen of the second electronic device faster, the efficiency of the list movement is given priority, that is, the list is quickly moved to the corresponding position; the slower the user slides on the screen of the second electronic device, the smaller the distance that the final list moves on the screen of the first electronic device. It can be understood that when the user slides on the screen of the second electronic device slower, the accuracy of the list movement is given priority, that is, the list is slowly moved to a precise position.
- the electronic device includes hardware and/or software modules corresponding to the execution of each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
- the electronic device can be divided into functional modules according to the above method example.
- each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
- the above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
- FIG15 shows a possible composition diagram of the electronic device 1500 involved in the above embodiment.
- the electronic device 1500 may include: a transceiver module 1510 and a processing module 1520 .
- the processing module 1520 can be used to support the electronic device 1500 to execute the above steps 1414, 1420, 1426, etc., and/or other processes for the technology described in this article.
- the transceiver module 1510 can be used to support the electronic device 1500 to execute the above steps 1412, 1418, 1424, etc., and/or other processes for the technology described in this article.
- the processing module 1520 may be used to support the electronic device 1500 in executing the above steps 1410 , 1416 , 1422 , etc., and/or other processes for the technology described herein.
- the electronic device provided in this embodiment is used to execute the method of the present application described above, and thus can achieve the same effect as the above-mentioned implementation method.
- the electronic device may include a processing module, a storage module and a communication module.
- the processing module can be used to control and manage the actions of the electronic device, for example, it can be used to support the electronic device to execute the steps performed by the above-mentioned various units.
- the storage module can be used to support the electronic device to execute stored program codes and data, etc.
- the communication module can be used to support the communication between the electronic device and other devices.
- the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application.
- the processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc.
- the storage module can be a memory.
- the communication module can specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
- the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1 .
- Figure 16 shows another possible composition diagram of the electronic device 800 involved in the above embodiment.
- the electronic device 800 may include a communication unit 810, an input unit 820, a processing unit 830, an output unit (or also called a display unit) 840, a peripheral interface 850, a storage unit 860, a power supply 870, a video decoder 880 and an audio decoder 890.
- the communication unit 810 is used to establish a communication channel so that the electronic device 800 can connect to a remote server through the communication channel and download media data from the remote server.
- the communication unit 810 may include communication modules such as a WLAN module, a Bluetooth module, an NFC module, a baseband module, and a radio frequency (RF) circuit corresponding to the communication module, which is used to perform wireless local area network communication, Bluetooth communication, NFC communication, infrared communication and/or cellular communication system communication, such as wideband code division multiple access (W-CDMA) and/or high speed downlink packet access (HSDPA).
- the communication module 810 is used to control the communication of various components in the electronic device and can support direct memory access.
- the input unit 820 can be used to implement user interaction with the electronic device and/or input information into the electronic device.
- the input unit can be a touch panel, or other human-computer interaction interfaces, such as physical input keys, microphones, etc., or other external information acquisition devices, such as cameras, etc.
- the processing unit 830 is the control center of the electronic device, and can use various interfaces and lines to connect various parts of the entire electronic device, and execute or execute software programs and/or modules stored in the storage unit, and call data stored in the storage unit to perform various functions of the electronic device and/or process data.
- the above steps 1410, 1416, 1422, or steps 1414, 1420, 1426, etc. can be implemented by the processing unit 1430.
- the output unit 840 includes but is not limited to an image output unit and a sound output unit.
- the image output unit is used to output text, pictures and/or videos.
- the touch panel used by the above-mentioned input unit 820 can also be used as a display panel of the output unit 840 at the same time. For example, when the touch panel detects a touch or proximity gesture operation on it, it is transmitted to the processing unit to determine the type of touch event, and then the processing unit provides a corresponding visual output on the display panel according to the type of touch event.
- the input unit 820 and the output unit 840 are used as two independent components to realize the input and output functions of the electronic device
- the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device.
- the image output unit can display various graphical user interfaces as virtual control components, including but not limited to windows, scroll bars, icons and scrapbooks, for users to operate by touch.
- the storage unit 860 may be used to store software programs and modules.
- the processing unit executes various functional applications of the electronic device and realizes data processing by running the software programs and modules stored in the storage unit.
- This embodiment further provides a computer storage medium, in which computer instructions are stored.
- the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
- This embodiment also provides a computer program product.
- the computer program product When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the method in the above-mentioned embodiment.
- an embodiment of the present application also provides a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the chip executes the methods in the above-mentioned method embodiments.
- the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
- the disclosed devices and methods can be implemented in other ways.
- the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
- Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
- the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application.
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
本申请要求在2022年12月01日提交中国国家知识产权局、申请号为202211538582.X的中国专利申请的优先权,发明名称为“一种光标控制方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on December 1, 2022, with application number 202211538582.X, and the priority of the Chinese patent application with the invention name "A cursor control method and electronic device", all contents of which are incorporated by reference in this application.
本申请实施例涉及电子设备领域,尤其涉及一种光标控制方法和电子设备。The embodiments of the present application relate to the field of electronic devices, and in particular to a cursor control method and electronic device.
随着智慧屏的不断发展,越来越多的企业将移动端的应用迁移到智慧屏上,拓展大屏生态。目前业界常用的方式是主动指向方式,用户可以手持遥控器主动指向大屏进行操作,虽然这种主动指向方式简单易学,但是在实际操作过程中用户体验较差,无法实现高效交互。With the continuous development of smart screens, more and more companies are migrating mobile applications to smart screens to expand the large-screen ecosystem. Currently, the industry's commonly used method is active pointing, where users can hold the remote control and actively point to the large screen for operation. Although this active pointing method is simple and easy to learn, the user experience is poor during actual operation and efficient interaction cannot be achieved.
具体地,当用户手机遥控器主动指向大屏进行操作时,许多非指向行为也会引起遥控器姿态变化,从而导致光标移动。例如,当用户选择播放视频1并在遥控器上进行点击或滑动时,引起遥控器的姿态发生变化,导致本应显示在该视频1上的光标会移动至大屏的其它位置,从而误将光标最终所停留位置的焦点打开,降低用户体验。Specifically, when the user's mobile phone remote control actively points to the large screen for operation, many non-pointing behaviors will also cause the remote control posture to change, resulting in the cursor moving. For example, when the user chooses to play video 1 and clicks or slides on the remote control, the remote control posture changes, causing the cursor that should be displayed on video 1 to move to other positions on the large screen, thereby mistakenly opening the focus of the position where the cursor finally stops, reducing the user experience.
发明内容Summary of the invention
本申请实施例提供一种光标控制方法和电子设备,可以解决指向交互难以精准控制的问题,实现高效交互,以提升用户体验。The embodiments of the present application provide a cursor control method and an electronic device, which can solve the problem that pointing interaction is difficult to accurately control, achieve efficient interaction, and improve user experience.
第一方面,提供了一种光标控制方法,所述方法应用于第一电子设备,所述方法包括:In a first aspect, a cursor control method is provided, the method being applied to a first electronic device, the method comprising:
接收所述第二电子设备发送的第一指令,并根据所述第一指令将所述光标显示为静止态;接收所述第二电子设备发送的第二指令,根据所述第二指令将所述光标由所述静止态变化为指向态,且将所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上进行移动,以及当所述光标或所述列表停止移动时将所述光标显示为所述静止态,其中,在所述光标显示为所述指向态时,所述光标、所述光标当前停留的焦点、所述列表中至少一个可移动,在所述光标显示为所述静止态时,所述光标、所述光标当前停留的焦点和所述列表不可移动;接收所述第二电子设备发送的第三指令,根据所述第三指令播放所述光标停留的目标焦点对应的画面。Receive a first instruction sent by the second electronic device, and display the cursor in a static state according to the first instruction; receive a second instruction sent by the second electronic device, change the cursor from the static state to a pointing state according to the second instruction, and move the cursor, the focus on which the cursor is currently resting, and at least one of the list displayed on the screen of the first electronic device on the screen of the first electronic device, and display the cursor in the static state when the cursor or the list stops moving, wherein, when the cursor is displayed in the pointing state, the cursor, the focus on which the cursor is currently resting, and at least one of the list is movable, and when the cursor is displayed in the static state, the cursor, the focus on which the cursor is currently resting, and the list are not movable; receive a third instruction sent by the second electronic device, and play the picture corresponding to the target focus on which the cursor is resting according to the third instruction.
本申请实施例提供的方案,第一电子设备可以根据第二电子设备发送的第一指令将光标显示为静止态,且在光标为静止态的情况下,第一电子设备可以根据第二电子设备发送的第二指令将光标变化为指向态,并将光标、光标当前停留的焦点和第一电子设备屏幕上显示的列表中的至少一个在第一电子设备的屏幕上进行移动,当移动停止时,光标显示为静止态,进一步地,第一电子设备可以根据接收的第三指令播放光标移动停止时停留的目标焦点所对应的画面。本申请实施例提供的方案,通过区分光标的状态且当光标处于指向态时,第一电子设备可以根据接收的指令将光标、光标当前停留的焦点和列表中的至少一个进行移动,当光标处于静止态时,光标、光标当前停留的焦点和列表不可移动,可以解决指向交互难以精准控制的问题,防止用户因误操作而导致的光标抖动,从而实现高效交互,提升用户体验。According to the solution provided by the embodiment of the present application, the first electronic device can display the cursor as a static state according to the first instruction sent by the second electronic device, and when the cursor is in the static state, the first electronic device can change the cursor to a pointing state according to the second instruction sent by the second electronic device, and move the cursor, the focus where the cursor currently stays, and at least one of the list displayed on the screen of the first electronic device on the screen of the first electronic device. When the movement stops, the cursor is displayed as a static state. Further, the first electronic device can play the picture corresponding to the target focus where the cursor stops when the movement stops according to the received third instruction. According to the solution provided by the embodiment of the present application, by distinguishing the state of the cursor and when the cursor is in the pointing state, the first electronic device can move the cursor, the focus where the cursor currently stays, and at least one of the list according to the received instruction. When the cursor is in the static state, the cursor, the focus where the cursor currently stays, and the list cannot be moved, which can solve the problem that pointing interaction is difficult to control accurately, and prevent the cursor from jittering due to user misoperation, thereby achieving efficient interaction and improving user experience.
结合第一方面,在一些可能的实现方式中,所述第二指令用于指示所述光标按照第一方向移动且移动第一距离;所述根据所述第二指令将所述光标由所述静止态变化为指向态,且所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上进行移动,包括:根据所述第二指令将所述光标由所述静止态变化为所述指向态,且将所述光标在所述第一电子设备的屏幕上按照所述第一方向移动所述第一距离。In combination with the first aspect, in some possible implementations, the second instruction is used to instruct the cursor to move in a first direction and a first distance; the cursor is changed from the static state to the pointing state according to the second instruction, and the cursor, the focus where the cursor is currently resting, and at least one of the list displayed on the screen of the first electronic device are moved on the screen of the first electronic device, including: the cursor is changed from the static state to the pointing state according to the second instruction, and the cursor is moved in the first direction on the screen of the first electronic device. The first distance.
本申请实施例提供的方案,第二指令指示光标按照第一方向移动且移动第一距离,此时第一电子设备可以根据该第二指令将光标在第一电子设备的屏幕上按照第一方向移动第一距离,即第一电子设备可以根据第二指令准确地对光标进行移动,可以解决指向交互难以精准控制的问题,从而进一步实现高效 交互,提升用户体验。In the solution provided by the embodiment of the present application, the second instruction instructs the cursor to move in a first direction and a first distance. At this time, the first electronic device can move the cursor in the first direction and the first distance on the screen of the first electronic device according to the second instruction, that is, the first electronic device can accurately move the cursor according to the second instruction, which can solve the problem that the pointing interaction is difficult to accurately control, thereby further realizing efficient Interaction improves user experience.
结合第一方面,在一些可能的实现方式中,处于所述指向态的所述光标呈现第一状态,所述第一状态表征所述光标移动的方向。In combination with the first aspect, in some possible implementations, the cursor in the pointing state presents a first state, and the first state represents a direction in which the cursor moves.
本申请实施例提供的方案,处于所述指向态的光标呈现第一状态,该第一状态表征光标移动的方向,通过这样的设计可以更好地向用户反馈交互状态,从而提升用户体验。In the solution provided by the embodiment of the present application, the cursor in the pointing state presents a first state, and the first state represents the direction of movement of the cursor. Through such a design, the interaction state can be better fed back to the user, thereby improving the user experience.
结合第一方面,在一些可能的实现方式中,所述第二指令用于指示所述第一电子设备屏幕上显示的列表按照第二方向移动且移动第二距离;所述根据所述第二指令将所述光标由所述静止态变化为指向态,且将所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上进行移动,包括:根据所述第二指令将所述光标由所述静止态变化为所述指向态,且将所述列表在所述第一电子设备的屏幕上按照所述第二方向移动所述第二距离。In combination with the first aspect, in some possible implementations, the second instruction is used to instruct the list displayed on the screen of the first electronic device to move in a second direction and a second distance; changing the cursor from the static state to the pointing state according to the second instruction, and moving at least one of the cursor, the focus where the cursor is currently resting, and the list displayed on the screen of the first electronic device on the screen of the first electronic device, includes: changing the cursor from the static state to the pointing state according to the second instruction, and moving the list on the screen of the first electronic device in the second direction and the second distance.
本申请实施例提供的方案,第二指令指示第一电子设备屏幕上显示的列表按照第二方向移动且移动第二距离,此时,第一电子设备可以根据第二指令列表在第一电子设备的屏幕上按照第二方向移动第二距离,即第一电子设备可以根据第二指令准确地对第一电子设备屏幕上显示的列表进行移动,可以进一步实现高效交互,提升用户体验。In the solution provided in an embodiment of the present application, the second instruction instructs the list displayed on the screen of the first electronic device to move in a second direction and a second distance. At this time, the first electronic device can move the second distance in the second direction on the screen of the first electronic device according to the second instruction list, that is, the first electronic device can accurately move the list displayed on the screen of the first electronic device according to the second instruction, which can further achieve efficient interaction and improve user experience.
结合第一方面,在一些可能的实现方式中,处于所述指向态的所述光标呈现第二状态,所述第二状态表征所述列表移动的方向和所述光标形变的幅度。In combination with the first aspect, in some possible implementations, the cursor in the pointing state presents a second state, and the second state represents the direction of movement of the list and the amplitude of the cursor deformation.
本申请实施例提供的方案,处于指向态的光标呈现第二状态,该第二状态表征第一电子设备屏幕上显示的列表移动的方向和光标形变的幅度,通过这样的设计可以更好地向用户反馈交互状态,从而提升用户体验。The solution provided in the embodiment of the present application is that the cursor in the pointing state presents a second state, and the second state represents the direction of movement of the list displayed on the screen of the first electronic device and the amplitude of the cursor deformation. Through such a design, the interaction status can be better fed back to the user, thereby improving the user experience.
结合第一方面,在一些可能的实现方式中,所述第二指令包括所述光标按照第三方向移动且移动第三距离;所述根据所述第二指令将所述光标由所述静止态变化为指向态,且将所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上进行移动,包括:根据所述第二指令将所述光标由所述静止态变化为所述指向态,且将所述光标和所述光标当前停留的焦点在所述第一电子设备的屏幕上按照所述第三方向移动所述第三距离。In combination with the first aspect, in some possible implementations, the second instruction includes the cursor moving in a third direction and moving a third distance; changing the cursor from the static state to the pointing state according to the second instruction, and moving the cursor, the focus where the cursor is currently resting, and at least one of the list displayed on the screen of the first electronic device on the screen of the first electronic device, includes: changing the cursor from the static state to the pointing state according to the second instruction, and moving the cursor and the focus where the cursor is currently resting on the screen of the first electronic device in the third direction by the third distance.
本申请实施例提供的方案,第二指令指示光标按照第三方向移动且移动第三距离,此时,第一电子设备可以根据第二指令将光标和光标当前停留的焦点在第一电子设备的屏幕上按照第三方向移动第三距离,即第一电子设备可以根据第二指令准确地对光标和光标当前停留的焦点进行移动,可以进一步实现高效交互,提升用户体验。In the solution provided in an embodiment of the present application, the second instruction instructs the cursor to move in a third direction and a third distance. At this time, the first electronic device can move the cursor and the focus where the cursor is currently located on the screen of the first electronic device in the third direction and a third distance according to the second instruction. That is, the first electronic device can accurately move the cursor and the focus where the cursor is currently located according to the second instruction, which can further achieve efficient interaction and enhance user experience.
结合第一方面,在一些可能的实现方式中,所述光标呈现第三状态,所述第三状态表征所述光标和所述光标停留的焦点移动的方向。In combination with the first aspect, in some possible implementations, the cursor presents a third state, and the third state represents the direction in which the cursor and the focus where the cursor rests move.
本申请实施例提供的方案,处于指向态的光标呈现第三状态,该第三状态表征光标和光标停留的焦点移动的方向,通过这样的设计可以更好地向用户反馈交互状态,从而提升用户体验。In the solution provided by the embodiment of the present application, the cursor in the pointing state presents a third state, and the third state represents the direction of movement of the cursor and the focus where the cursor rests. Through such a design, the interaction state can be better fed back to the user, thereby improving the user experience.
结合第一方面,在一些可能的实现方式中,所述方法还包括:接收所述第二电子设备发送的第四指令,根据所述第四指令显示功能框,所述功能框中包括用于控制所述第一电子设备当前显示的画面的功能键。In combination with the first aspect, in some possible implementations, the method further includes: receiving a fourth instruction sent by the second electronic device, and displaying a function box according to the fourth instruction, wherein the function box includes function keys for controlling the screen currently displayed by the first electronic device.
本申请实施例提供的方案,第一电子设备可以接收第二电子设备发送的第四指令,并根据第四指令显示功能框,该功能框中包括用于控制第一电子设备当前显示的画面的功能键,本申请实施例提供了一种显示功能框的方法,通过这样的设计可以与指向操作或滑动操作区分开,且通过功能键可以调整当前显示的画面。According to the solution provided by the embodiment of the present application, the first electronic device can receive the fourth instruction sent by the second electronic device, and display a function box according to the fourth instruction, wherein the function box includes function keys for controlling the screen currently displayed by the first electronic device. The embodiment of the present application provides a method for displaying the function box, which can be distinguished from the pointing operation or the sliding operation through such a design, and the currently displayed screen can be adjusted through the function keys.
结合第一方面,在一些可能的实现方式中,若根据所述第二指令将所述光标移出所述第一电子设备的屏幕,处于所述指向态的所述光标显示第四状态,所述第四状态表征所述光标从所述第一电子设备的屏幕移出的方向和所述光标移出所述第二电子设备的屏幕的幅度;所述方法还包括:接收所述第二电子设备发送的第五指令,根据所述第五指令将所述光标显示在所述第一电子设备的屏幕上。In combination with the first aspect, in some possible implementations, if the cursor is moved out of the screen of the first electronic device according to the second instruction, the cursor in the pointing state displays a fourth state, and the fourth state represents the direction in which the cursor moves out of the screen of the first electronic device and the amplitude by which the cursor moves out of the screen of the second electronic device; the method also includes: receiving a fifth instruction sent by the second electronic device, and displaying the cursor on the screen of the first electronic device according to the fifth instruction.
本申请实施例提供的方案,第一电子设备可以接收第二电子设备发送的第五指令并根据第五指令将光标重新显示在第一电子设备的屏幕上。在第一电子设备在根据第五指令使得光标重新显示在第一电子设备的屏幕上的过程中,光标形态会随之发生变化,光标形变的程度可以表征第二电子设备的姿态偏出第一电子设备的角度,通过这样的动效设计可以更好地向用户反馈交互状态,从而提升用户体验。尤其是,当第一电子设备根据第二指令将光标移出第一电子设备的屏幕时,本申请实施例提供的方案可以使 得光标重新显示在第一电子设备的屏幕上,且可以根据光标形变的程度了解第二电子设备的姿态偏出第一电子设备的角度,提升用户体验。According to the solution provided in the embodiment of the present application, the first electronic device can receive the fifth instruction sent by the second electronic device and redisplay the cursor on the screen of the first electronic device according to the fifth instruction. In the process of the first electronic device redisplaying the cursor on the screen of the first electronic device according to the fifth instruction, the shape of the cursor will change accordingly. The degree of cursor deformation can represent the angle at which the posture of the second electronic device deviates from the first electronic device. Through such a dynamic effect design, the interaction status can be better fed back to the user, thereby improving the user experience. In particular, when the first electronic device moves the cursor out of the screen of the first electronic device according to the second instruction, the solution provided in the embodiment of the present application can make The cursor is displayed again on the screen of the first electronic device, and the angle at which the posture of the second electronic device deviates from the first electronic device can be understood according to the degree of deformation of the cursor, thereby improving user experience.
第二方面,提供一种光标控制方法,所述方法应用于第二电子设备,所述方法包括:响应于用户的第一操作,生成第一指令,所述第一指令用于指示显示在第一电子设备上的光标显示静止态;向第一电子设备发送所述第一指令;响应于用户的第二操作,生成第二指令,所述第二指令用于指示光标从所述静止态变化为指向态,且在所述光标显示为所述指向态时所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上移动的方向和/或距离,以及所述光标或所述列表停止移动时所述光标显示为所述静止态,其中,在所述光标显示为所述指向态时,所述光标、所述光标当前停留的焦点、所述列表中至少一个可移动,在所述光标显示为所述静止态时,所述光标、所述光标当前停留的焦点和所述列表不可移动;向所述第一电子设备发送所述第二指令;响应于用户的第三操作,生成第三指令,所述第三指令用于指示播放所述光标停留的目标焦点对应的画面;向所述第一电子设备发送所述第三指令。In a second aspect, a cursor control method is provided, which is applied to a second electronic device, and the method includes: generating a first instruction in response to a first operation of a user, the first instruction being used to instruct a cursor displayed on the first electronic device to display a static state; sending the first instruction to the first electronic device; generating a second instruction in response to a second operation of the user, the second instruction being used to instruct the cursor to change from the static state to a pointing state, and the direction and/or distance in which the cursor, the focus on which the cursor currently resides, and at least one of the list displayed on the screen of the first electronic device move on the screen of the first electronic device when the cursor is displayed in the pointing state, and the cursor being displayed in the static state when the cursor or the list stops moving, wherein when the cursor is displayed in the pointing state, the cursor, the focus on which the cursor currently resides, and at least one of the list are movable, and when the cursor is displayed in the static state, the cursor, the focus on which the cursor currently resides, and the list are immovable; sending the second instruction to the first electronic device; generating a third instruction in response to a third operation of the user, the third instruction being used to instruct the playback of a picture corresponding to the target focus on which the cursor resides; and sending the third instruction to the first electronic device.
本申请实施例提供的方案,响应于用户的第一操作,第二电子设备可以生成第一指令,并将该第一指令发送至第一电子设备,以便于第一电子设备可以根据第一指令将光标显示为静止态;响应于用户的第二操作,第二电子设备可以生成第二指令,并将该第二指令发送至第一电子设备,以便于第一电子设备可以根据第二指令将光标变化为指向态,并将光标、光标当前停留的焦点和第一电子设备屏幕上显示的列表中的至少一个在第一电子设备的屏幕上进行移动,当移动停止时,光标显示为静止态;响应于用户的第三操作,第二电子设备生成第三指令,并将该第三指令发送至第一电子设备,以便于第一电子设备可以根据接收的第三指令播放光标移动停止时停留的目标焦点所对应的画面。本申请实施例提供的方案,第二电子设备可以响应于用户的不同操作生成不同的指令,以便于第一电子设备可以根据接收的指令进行相应地操作,具体地,当光标处于指向态时,将光标、光标当前停留的焦点和列表中的至少一个进行移动,当光标处于静止态时,光标、光标当前停留的焦点和列表不可移动,可以解决指向交互难以精准控制的问题,防止用户因误操作而导致的光标抖动,从而实现高效交互,提升用户体验。According to the solution provided by the embodiment of the present application, in response to a first operation of a user, the second electronic device can generate a first instruction and send the first instruction to the first electronic device, so that the first electronic device can display the cursor in a static state according to the first instruction; in response to a second operation of the user, the second electronic device can generate a second instruction and send the second instruction to the first electronic device, so that the first electronic device can change the cursor to a pointing state according to the second instruction, and move the cursor, the focus where the cursor currently stays, and at least one of the list displayed on the screen of the first electronic device on the screen of the first electronic device, and when the movement stops, the cursor is displayed in a static state; in response to a third operation of the user, the second electronic device generates a third instruction and sends the third instruction to the first electronic device, so that the first electronic device can play the picture corresponding to the target focus where the cursor stops moving according to the received third instruction. According to the solution provided in the embodiment of the present application, the second electronic device can generate different instructions in response to different operations of the user, so that the first electronic device can perform corresponding operations according to the received instructions. Specifically, when the cursor is in a pointing state, the cursor, the focus where the cursor is currently resting, and at least one of the list are moved; when the cursor is in a stationary state, the cursor, the focus where the cursor is currently resting, and the list cannot be moved. This can solve the problem that pointing interaction is difficult to control accurately, prevent cursor jitter caused by user misoperation, thereby achieving efficient interaction and improving user experience.
结合第二方面,在一些可能的实现方式中,所述响应于用户的第二操作,生成第二指令,包括:响应于所述第二操作,确定所述第二操作的操作类型,所述操作类型包括指向操作、滑动操作;根据所述第二操作的操作类型生成所述第二指令。In combination with the second aspect, in some possible implementations, generating a second instruction in response to a second operation of the user includes: determining an operation type of the second operation in response to the second operation, the operation type including a pointing operation and a sliding operation; and generating the second instruction according to the operation type of the second operation.
本申请实施例提供的方案,响应于第二操作,第二电子设备可以先确定该第二操作的操作类型,并根据第二操作的操作类型较为准确地生成第二指令并发送给第一电子设备,以便于第一电子设备可以根据第二指令执行相应地动作,由于第二指令是基于第二操作的操作类型生成的,换句话说,第二指令包括的内容可以反映用户对第二电子设备的操作,以便于第一电子设备在根据第二指令执行相应地操作时,可以与用户的第二操作实现同步,例如,第二操作为指向操作,第一电子设备可以根据该指向操作执行光标和/或光标停留的焦点的移动,而不会执行列表的滑动,可以进一步实现高效交互,提升用户体验。According to the solution provided in the embodiment of the present application, in response to the second operation, the second electronic device can first determine the operation type of the second operation, and more accurately generate a second instruction according to the operation type of the second operation and send it to the first electronic device, so that the first electronic device can perform a corresponding action according to the second instruction. Since the second instruction is generated based on the operation type of the second operation, in other words, the content included in the second instruction can reflect the user's operation on the second electronic device, so that when the first electronic device performs the corresponding operation according to the second instruction, it can be synchronized with the user's second operation. For example, the second operation is a pointing operation, and the first electronic device can move the cursor and/or the focus where the cursor rests according to the pointing operation without sliding the list, which can further achieve efficient interaction and enhance user experience.
结合第二方面,在一些可能的实现方式中,所述响应于所述第二操作,确定所述第二操作的操作类型,包括:响应于所述第二操作,确定移动轨迹对应的数值与第一阈值的大小,或者,确定角度差值和第二阈值的大小,其中,所述移动轨迹为所述第二操作包括的作用于所述第二电子设备的屏幕上的手指的移动轨迹,所述角度差值为由于所述第二操作导致的所述第二电子设备的姿态角的变化的差值;若所述移动轨迹对应的数值大于所述第一阈值,确定所述第二操作为所述滑动操作;若所述角度差值大于所述第二阈值,确定所述第二操作为所述指向操作。In combination with the second aspect, in some possible implementations, determining the operation type of the second operation in response to the second operation includes: determining, in response to the second operation, the magnitude of a numerical value corresponding to the movement trajectory and a first threshold, or determining the magnitude of an angle difference and a second threshold, wherein the movement trajectory is the movement trajectory of a finger on the screen of the second electronic device included in the second operation, and the angle difference is the difference in the change of the posture angle of the second electronic device caused by the second operation; if the numerical value corresponding to the movement trajectory is greater than the first threshold, determining that the second operation is the sliding operation; if the angle difference is greater than the second threshold, determining that the second operation is the pointing operation.
本申请实施例提供的方案,若第二操作包括的作用于第二电子设备的屏幕上的手指的移动轨迹对应的数值大于第一阈值,第二电子设备可以确定第二操作为滑动操作;若由于所述第二操作导致的所述第二电子设备的姿态角的变化的差值大于第二阈值,第二电子设备可以确定第二操作为指向操作。换句话说,第二电子设备可以根据移动轨迹和姿态角的变化的差值确定第二操作是滑动操作还是指向操作,并根据操作类型生成相应的指令并发送给第一电子设备,以便于第一电子设备可以根据接收的指令执行相应的动作,可以防止由于操作类型不确定而导致生成的第二指令所指示的内容的不准确,导致第一电子设备执行有误,因此,本申请实施例可以实现精准交互,提升用户体验。The solution provided by the embodiment of the present application is that if the value corresponding to the movement trajectory of the finger acting on the screen of the second electronic device included in the second operation is greater than the first threshold, the second electronic device can determine that the second operation is a sliding operation; if the difference in the change of the posture angle of the second electronic device caused by the second operation is greater than the second threshold, the second electronic device can determine that the second operation is a pointing operation. In other words, the second electronic device can determine whether the second operation is a sliding operation or a pointing operation based on the difference in the movement trajectory and the change in the posture angle, and generate a corresponding instruction based on the operation type and send it to the first electronic device, so that the first electronic device can perform a corresponding action according to the received instruction, which can prevent the inaccuracy of the content indicated by the generated second instruction due to the uncertainty of the operation type, resulting in an error in the execution of the first electronic device. Therefore, the embodiment of the present application can achieve precise interaction and improve user experience.
结合第二方面,在一些可能的实现方式中,若所述第二操作的操作类型为所述指向操作,所述第二指令用于指示所述光标和/或所述光标当前停留的焦点在所述第一电子设备的屏幕上移动的方向和/或距离;若所述第二操作的操作类型为所述滑动操作,所述第二指令用于指示所述第一电子设备屏幕上显示的列 表在所述第一电子设备的屏幕上移动的方向和/或距离。In conjunction with the second aspect, in some possible implementations, if the operation type of the second operation is the pointing operation, the second instruction is used to indicate the direction and/or distance in which the cursor and/or the focus on which the cursor currently resides moves on the screen of the first electronic device; if the operation type of the second operation is the sliding operation, the second instruction is used to indicate the column displayed on the screen of the first electronic device. The table shows the direction and/or distance moved on the screen of the first electronic device.
本申请实施例提供的方案,若第二操作的操作类型为指向操作,第二指令用于指示光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的方向和/或距离;若第二操作的操作类型为滑动操作,第二指令用于指示第一电子设备屏幕上显示的列表在第一电子设备的屏幕上移动的方向和/或距离。以便于第一电子设备可以根据第二指令准确地对光标、光标当前停留的焦点和第一电子设备屏幕上显示的列表中的至少一个进行移动,可以进一步实现高效交互,提升用户体验。In the solution provided by the embodiment of the present application, if the operation type of the second operation is a pointing operation, the second instruction is used to indicate the direction and/or distance that the cursor and/or the focus where the cursor currently stays move on the screen of the first electronic device; if the operation type of the second operation is a sliding operation, the second instruction is used to indicate the direction and/or distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device. So that the first electronic device can accurately move at least one of the cursor, the focus where the cursor currently stays, and the list displayed on the screen of the first electronic device according to the second instruction, which can further achieve efficient interaction and improve user experience.
结合第二方面,在一些可能的实现方式中,所述第一操作为所述用户的手指按住所述第二电子设备的屏幕,所述第二操作为手持所述第二电子设备的所述用户的手腕向第一方向移动;所述第二指令用于指示所述光标按照所述第一方向移动且移动第一距离。In combination with the second aspect, in some possible implementations, the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's wrist holding the second electronic device moving in a first direction; the second instruction is used to instruct the cursor to move in the first direction and a first distance.
本申请实施例提供的方案,第二指令所指示的具体内容与第一操作和第二操作有关,若第一操作为用户的手指按住第二电子设备的屏幕,第二操作为手持第二电子设备的用户的手腕向第一方向移动,则第二指令可以指示光标按照第一方向移动且移动第一距离,以便于第一电子设备可以根据该第二指令将光标在第一电子设备的屏幕上按照第一方向移动第一距离,即第一电子设备可以根据第二指令准确地对光标进行移动,可以解决指向交互难以精准控制的问题,从而进一步实现高效交互,提升用户体验。In the solution provided in the embodiment of the present application, the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's wrist holding the second electronic device moving in a first direction, then the second instruction can instruct the cursor to move in the first direction and move a first distance, so that the first electronic device can move the cursor on the screen of the first electronic device in the first direction and by the first distance according to the second instruction, that is, the first electronic device can accurately move the cursor according to the second instruction, which can solve the problem that pointing interaction is difficult to accurately control, thereby further realizing efficient interaction and improving user experience.
结合第二方面,在一些可能的实现方式中,处于所述指向态的所述光标呈现第一状态,所述第一状态表征所述光标移动的方向。In combination with the second aspect, in some possible implementations, the cursor in the pointing state presents a first state, and the first state represents a direction in which the cursor moves.
本申请实施例提供的方案,第二指令还用于指示处于所述指向态的光标呈现第一状态,该第一状态表征光标移动的方向,通过这样的设计可以更好地向用户反馈交互状态,从而提升用户体验。In the solution provided in the embodiment of the present application, the second instruction is also used to instruct the cursor in the pointing state to present a first state, and the first state represents the direction of movement of the cursor. Through such a design, the interaction status can be better fed back to the user, thereby improving the user experience.
结合第二方面,在一些可能的实现方式中,所述第一操作为所述用户的手指按住所述第二电子设备的屏幕,所述第二操作为所述用户的手指在所述第二电子设备上的屏幕沿第二方向滑动;所述第二指令用于指示所述第一电子设备屏幕上显示的列表按照第二方向移动且移动第二距离。In combination with the second aspect, in some possible implementations, the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's finger sliding the screen of the second electronic device along a second direction; the second instruction is used to instruct the list displayed on the screen of the first electronic device to move in the second direction and a second distance.
本申请实施例提供的方案,第二指令所指示的具体内容与第一操作和第二操作有关,若第一操作为用户的手指按住第二电子设备的屏幕,第二操作为所述用户的手指在第二电子设备上的屏幕沿第二方向滑动;则第二指令可以指示第一电子设备屏幕上显示的列表按照第二方向移动且移动第二距离,以便于第一电子设备可以根据第二指令列表在第一电子设备的屏幕上按照第二方向移动第二距离,即第一电子设备可以根据第二指令准确地对第一电子设备屏幕上显示的列表进行移动,可以进一步实现高效交互,提升用户体验。In the solution provided in the embodiment of the present application, the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's finger sliding the screen of the second electronic device along the second direction; then the second instruction can instruct the list displayed on the screen of the first electronic device to move in the second direction and a second distance, so that the first electronic device can move the second distance in the second direction on the screen of the first electronic device according to the second instruction list, that is, the first electronic device can accurately move the list displayed on the screen of the first electronic device according to the second instruction, which can further achieve efficient interaction and improve user experience.
结合第二方面,在一些可能的实现方式中,处于所述指向态的所述光标呈现第二状态,所述第二状态表征所述列表移动的方向和所述光标形变的幅度。In combination with the second aspect, in some possible implementations, the cursor in the pointing state presents a second state, and the second state represents the direction of movement of the list and the amplitude of the cursor deformation.
申请实施例提供的方案,第二指令还用于指示处于指向态的光标呈现第二状态,该第二状态表征第一电子设备屏幕上显示的列表移动的方向和光标形变的幅度,通过这样的设计可以更好地向用户反馈交互状态,从而提升用户体验。According to the solution provided in the application embodiment, the second instruction is also used to instruct the cursor in the pointing state to present a second state, and the second state represents the direction of movement of the list displayed on the screen of the first electronic device and the amplitude of the cursor deformation. Through such a design, the interaction status can be better fed back to the user, thereby improving the user experience.
结合第二方面,在一些可能的实现方式中,所述第一操作为所述用户的手指在所述第二电子设备的屏幕上进行点击后抬起并在抬起后再次点击,所述第二操作为手持所述第二电子设备的所述用户的手腕向第三方向移动;所述第二指令用于指示所述光标按照所述第三方向移动且移动第三距离。In combination with the second aspect, in some possible implementations, the first operation is that the user's finger clicks on the screen of the second electronic device, lifts up the finger, and then clicks again after lifting up the finger, and the second operation is that the wrist of the user holding the second electronic device moves in a third direction; the second instruction is used to instruct the cursor to move in the third direction and a third distance.
本申请实施例提供的方案,第二指令所指示的具体内容与第一操作和第二操作有关,若第一操作为用户的手指在第二电子设备的屏幕上进行点击后抬起并在抬起后再次点击,第二操作为手持所述第二电子设备的所述用户的手腕向第三方向移动;则第二指令可以指示光标按照第三方向移动且移动第三距离,以便于第一电子设备可以根据第二指令将光标和光标当前停留的焦点在第一电子设备的屏幕上按照第三方向移动第三距离,即第一电子设备可以根据第二指令准确地对光标和光标当前停留的焦点进行移动,可以进一步实现高效交互,提升用户体验。In the solution provided in the embodiment of the present application, the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is that the user's finger clicks on the screen of the second electronic device and then lifts up and clicks again after lifting up, and the second operation is that the wrist of the user holding the second electronic device moves to a third direction; then the second instruction can instruct the cursor to move in the third direction and move a third distance, so that the first electronic device can move the cursor and the focus where the cursor is currently located on the screen of the first electronic device by a third distance in the third direction according to the second instruction, that is, the first electronic device can accurately move the cursor and the focus where the cursor is currently located according to the second instruction, which can further achieve efficient interaction and improve user experience.
结合第二方面,在一些可能的实现方式中,处于所述指向态的所述光标呈现第三状态,所述第三状态表征所述光标和所述光标停留的焦点移动的方向。In combination with the second aspect, in some possible implementations, the cursor in the pointing state presents a third state, and the third state represents the direction in which the cursor and the focus where the cursor rests move.
本申请实施例提供的方案,第二指令还包括处于指向态的光标呈现第三状态,该第三状态表征光标和光标停留的焦点移动的方向,通过这样的设计可以更好地向用户反馈交互状态,从而提升用户体验。In the solution provided in the embodiment of the present application, the second instruction also includes the cursor in the pointing state presenting a third state, and the third state represents the direction of movement of the cursor and the focus where the cursor rests. Through such a design, the interaction status can be better fed back to the user, thereby improving the user experience.
结合第二方面,在一些可能的实现方式中,当所述用户的手指在所述第二电子设备的屏幕上进行点击后抬起并在抬起后再次点击且再次点击停留的时长大于预设阈值时,所述方法还包括:生成第四指令,所述第四指令用于指示所述第一电子设备显示功能框,所述功能框中包括用于控制所述第一电子设备当 前显示的画面的功能键;向所述第一电子设备发送所述第四指令。In conjunction with the second aspect, in some possible implementations, when the user's finger clicks on the screen of the second electronic device and then lifts up and then clicks again after lifting up, and the duration of the second click is greater than a preset threshold, the method further includes: generating a fourth instruction, the fourth instruction being used to instruct the first electronic device to display a function box, the function box including a function for controlling the first electronic device to sending the fourth instruction to the first electronic device.
本申请实施例提供的方案,当用户的手指在第二电子设备的屏幕上进行点击后抬起并在抬起后再次点击且再次点击停留的时长大于预设阈值时,第二电子设备可以生成第四指令并发送给第一电子设备,以便于第一电子设备可以根据第四指令显示功能框,该功能框中包括用于控制第一电子设备当前显示的画面的功能键,本申请实施例提供了一种显示功能框的方法,通过这样的设计可以与指向操作或滑动操作区分开,且通过功能键可以调整当前显示的画面。According to the solution provided by the embodiment of the present application, when the user's finger clicks on the screen of the second electronic device and then lifts it up, and then clicks again after lifting it up, and the duration of the second click is greater than a preset threshold, the second electronic device can generate a fourth instruction and send it to the first electronic device, so that the first electronic device can display a function box according to the fourth instruction, and the function box includes function keys for controlling the screen currently displayed by the first electronic device. The embodiment of the present application provides a method for displaying a function box, which can be distinguished from a pointing operation or a sliding operation through such a design, and the currently displayed screen can be adjusted through the function keys.
结合第二方面,在一些可能的实现方式中,所述方法还包括:响应于用户的第四操作,生成第五指令,所述第五指令用于指示所述光标移动的方向以使得所述光标显示在所述第一电子设备的屏幕上;向所述第一电子设备发送所述第五指令。In combination with the second aspect, in some possible implementations, the method also includes: in response to a fourth operation of the user, generating a fifth instruction, the fifth instruction being used to indicate a direction in which the cursor moves so that the cursor is displayed on the screen of the first electronic device; and sending the fifth instruction to the first electronic device.
本申请实施例提供的方案,第二电子设备可以响应于用户的第四操作生成第五指令并发送给第一电子设备,以便于第一电子设备可以根据第五指令将光标重新显示在第一电子设备的屏幕上。尤其是,当第一电子设备根据第二指令将光标移出第一电子设备的屏幕时,本申请实施例提供的方案可以使得光标重新显示在第一电子设备的屏幕上。According to the solution provided by the embodiment of the present application, the second electronic device can generate a fifth instruction in response to the fourth operation of the user and send it to the first electronic device, so that the first electronic device can redisplay the cursor on the screen of the first electronic device according to the fifth instruction. In particular, when the first electronic device moves the cursor out of the screen of the first electronic device according to the second instruction, the solution provided by the embodiment of the present application can make the cursor redisplay on the screen of the first electronic device.
结合第二方面,在一些可能的实现方式中,所述光标和所述光标当前停留的焦点在所述第一电子设备的屏幕上移动的距离与第二电子设备转动的速度有关,所述第一电子设备屏幕上显示的列表在所述第一电子设备的屏幕上移动的距离与所述用户在所述第二电子设备的屏幕上滑动的速度有关。In combination with the second aspect, in some possible implementations, the distance that the cursor and the focus where the cursor currently rests move on the screen of the first electronic device is related to the speed at which the second electronic device rotates, and the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device.
本申请实施例提供的方案,光标和光标当前停留的焦点在第一电子设备的屏幕上移动的距离与第二电子设备转动的速度有关,第一电子设备屏幕上显示的列表在第一电子设备的屏幕上移动的距离与用户在第二电子设备的屏幕上滑动的速度有关,当第二电子设备转动的速度为固定值时,或者,用户在第二电子设备的屏幕上滑动的速度为固定时,通过调整显控比,可以调整光标或列表的移动距离,可以提升用户体验。In the solution provided by the embodiment of the present application, the distance that the cursor and the focus where the cursor currently rests move on the screen of the first electronic device is related to the rotation speed of the second electronic device, and the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device. When the rotation speed of the second electronic device is a fixed value, or when the sliding speed of the user on the screen of the second electronic device is fixed, the movement distance of the cursor or the list can be adjusted by adjusting the display-control ratio, thereby improving the user experience.
结合第二方面,在一些可能的实现方式中,所述第二电子设备转动的速度越快,所述显控比越大,所述光标和/或所述光标当前停留的焦点在所述第一电子设备的屏幕上移动的距离越大;所述第二电子设备转动的速度越慢,所述显控比越小,所述光标和/或所述光标当前停留的焦点在所述第一电子设备的屏幕上移动的距离越小。In combination with the second aspect, in some possible implementations, the faster the second electronic device rotates, the larger the display-control ratio, and the greater the distance the cursor and/or the focus where the cursor is currently located moves on the screen of the first electronic device; the slower the second electronic device rotates, the smaller the display-control ratio, and the smaller the distance the cursor and/or the focus where the cursor is currently located moves on the screen of the first electronic device.
本申请实施例提供的方案,光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离与第二电子设备转动的速度有关,即,第二电子设备转动的速度越快,显控比越大,则光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离越大,第二电子设备转动的速度越慢,显控比越小,则光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离越小。通过根据第二电子设备转动的速度调整显控比进一步调整光标和/或光标当前停留的焦点移动的距离,在一定程度上,可以兼顾移动的速度和精度,具体地,第二电子设备转动的速度越快,则最终光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离越大,可以理解为当第二电子设备转动的速度越快时,优先考虑光标和/或光标当前停留的焦点移动的效率,即将光标和/或光标当前停留的焦点快速移动到相应位置;第二电子设备转动的速度越慢,则最终光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离越小,可以理解为当第二电子设备转动的速度越慢时,优先考虑光标和/或光标当前停留的焦点移动的精度,即将光标和/或光标当前停留的焦点缓慢移动到精确位置。In the solution provided by the embodiment of the present application, the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device is related to the rotation speed of the second electronic device, that is, the faster the second electronic device rotates and the larger the display-control ratio, the greater the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device; the slower the second electronic device rotates and the smaller the display-control ratio, the smaller the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device. By adjusting the display control ratio according to the rotation speed of the second electronic device and further adjusting the distance that the cursor and/or the focus where the cursor is currently resting moves, to a certain extent, the speed and accuracy of the movement can be taken into account. Specifically, the faster the second electronic device rotates, the greater the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device. It can be understood that when the speed of the second electronic device rotates faster, the efficiency of the movement of the cursor and/or the focus where the cursor is currently resting is given priority, that is, the cursor and/or the focus where the cursor is currently resting is quickly moved to the corresponding position; the slower the speed of the second electronic device rotates, the smaller the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device. It can be understood that when the speed of the second electronic device rotates slower, the accuracy of the movement of the cursor and/or the focus where the cursor is currently resting is given priority, that is, the cursor and/or the focus where the cursor is currently resting is slowly moved to the precise position.
结合第二方面,在一些可能的实现方式中,所述用户在所述第二电子设备的屏幕上滑动的速度越快,所述显控比越大,所述第一电子设备屏幕上显示的列表在所述第一电子设备的屏幕上移动的距离越大;所述用户在所述第二电子设备的屏幕上滑动的速度越慢,所述显控比越小,所述第一电子设备屏幕上显示的列表在所述第一电子设备的屏幕上移动的距离越小。In combination with the second aspect, in some possible implementations, the faster the user slides on the screen of the second electronic device, the larger the display-to-control ratio, and the greater the distance the list displayed on the screen of the first electronic device moves on the screen of the first electronic device; the slower the user slides on the screen of the second electronic device, the smaller the display-to-control ratio, and the smaller the distance the list displayed on the screen of the first electronic device moves on the screen of the first electronic device.
本申请实施例提供的方案,第一电子设备屏幕上显示的列表在第一电子设备的屏幕上移动的距离与用户在第二电子设备的屏幕上滑动的速度有关,即,用户在第二电子设备的屏幕上滑动的速度越快,显控比越大,则列表在第一电子设备的屏幕上移动的距离越大,用户在第二电子设备的屏幕上滑动的速度越慢,显控比越小,则列表在第一电子设备的屏幕上移动的距离越小。通过根据用户在第二电子设备的屏幕上滑动的速度调整显控比进一步调整列表移动的距离,在一定程度上,可以兼顾移动的速度和精度,具体地,用户在第二电子设备的屏幕上滑动的速度越快,则最终列表在第一电子设备的屏幕上移动的距离越大,可以理解为当用户在第二电子设备的屏幕上滑动的速度越快时,优先考虑列表移动的效率,即将列表快速移动到相应位置;用户在第二电子设备的屏幕上滑动的速度越慢,则最终列表在第一电子设 备的屏幕上移动的距离越小,可以理解为当用户在第二电子设备的屏幕上滑动速度越慢时,优先考虑列表移动的精度,即将列表缓慢移动到精确位置。In the solution provided by the embodiment of the present application, the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device, that is, the faster the user slides on the screen of the second electronic device and the larger the display-control ratio, the larger the distance that the list moves on the screen of the first electronic device; the slower the user slides on the screen of the second electronic device and the smaller the display-control ratio, the smaller the distance that the list moves on the screen of the first electronic device. By adjusting the display-control ratio according to the speed at which the user slides on the screen of the second electronic device and further adjusting the distance that the list moves, to a certain extent, the speed and accuracy of movement can be taken into account. Specifically, the faster the user slides on the screen of the second electronic device, the larger the distance that the list eventually moves on the screen of the first electronic device. It can be understood that when the user slides on the screen of the second electronic device faster, the efficiency of the list movement is given priority, that is, the list is quickly moved to the corresponding position; the slower the user slides on the screen of the second electronic device, the smaller the display-control ratio is. The smaller the distance moved on the screen of the second electronic device, it can be understood that when the user slides slower on the screen of the second electronic device, the accuracy of the list movement is given priority, that is, the list is slowly moved to a precise position.
第三方面,提供了一种装置,该装置包含在电子设备中,该装置具有实现上述方面及上述方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。In a third aspect, a device is provided, which is included in an electronic device, and has the function of implementing the electronic device behavior in the above aspects and possible implementations of the above aspects. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions.
第四方面,提供了一种电子设备,包括:一个或多个处理器;存储器;一个或者多个应用程序;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第一方面或第二方面任一项可能的实现中的方法。In a fourth aspect, an electronic device is provided, comprising: one or more processors; a memory; one or more applications; and one or more computer programs. The one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the electronic device, the electronic device executes the method in any possible implementation of the first aspect or the second aspect.
第五方面,提供了一种芯片系统,包括至少一个处理器,当程序指令在所述至少一个处理器中执行时,使得上述第一方面或第二方面任一项可能的实现中的方法在电子设备上的功能得以实现。In a fifth aspect, a chip system is provided, comprising at least one processor, wherein when program instructions are executed in the at least one processor, the function of the method in any possible implementation of the first aspect or the second aspect mentioned above is implemented on an electronic device.
第六方面,提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面或第二方面任一项可能的实现中的方法。In a sixth aspect, a computer storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a method in any possible implementation of the first aspect or the second aspect.
第七方面,提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面或第二方面任一项可能的设计中的方法。In a seventh aspect, a computer program product is provided. When the computer program product runs on an electronic device, the electronic device executes a method in any possible design of the first aspect or the second aspect.
图1为本申请实施例提供的一种电子设备的硬件结构示意图。FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
图2为本申请实施例提供的一种电子设备的软件结构示意图。FIG. 2 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application.
图3为本申请实施例提供的一组GUI的示意图。FIG3 is a schematic diagram of a set of GUIs provided in an embodiment of the present application.
图4为本申请实施例提供的另一组GUI的示意图。FIG. 4 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
图5为本申请实施例提供的又一组GUI的示意图。FIG. 5 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
图6为本申请实施例提供的再一组GUI的示意图。FIG. 6 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
图7为本申请实施例提供的一种控制光标显示的方法的示意图。FIG. 7 is a schematic diagram of a method for controlling cursor display provided in an embodiment of the present application.
图8为本申请实施例提供的一种光标显示的示意图。FIG. 8 is a schematic diagram of a cursor display provided in an embodiment of the present application.
图9为本申请实施例提供的一种用户基于身体朝向进行指向的示意图。FIG9 is a schematic diagram of a user pointing based on body orientation provided in an embodiment of the present application.
图10为本申请实施例提供的另一种用户基于身体朝向进行指向的示意图。FIG. 10 is a schematic diagram of another method of pointing based on body orientation of a user provided in an embodiment of the present application.
图11为本申请实施例提供的基于手机屏幕建立的平面坐标系的示意图。FIG. 11 is a schematic diagram of a plane coordinate system established based on a mobile phone screen according to an embodiment of the present application.
图12为本申请实施例提供的基于手机屏幕建立的三维直角坐标系的示意图。FIG12 is a schematic diagram of a three-dimensional rectangular coordinate system established based on a mobile phone screen according to an embodiment of the present application.
图13为本申请实施例提供的一种显控比曲线的示意图。FIG. 13 is a schematic diagram of a display-control ratio curve provided in an embodiment of the present application.
图14为本申请实施例提供的一种光控控制的方法的示意图。FIG. 14 is a schematic diagram of a light control method provided in an embodiment of the present application.
图15为本申请实施例提供的一种电子设备的示意性框图。FIG15 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
图16为本申请实施例提供的另一种电子设备的示意性框图。FIG16 is a schematic block diagram of another electronic device provided in an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
本申请实施例提供的方案可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。The solution provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源 管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。For example, FIG1 shows a schematic diagram of the structure of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power supply Management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些 实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or a data signal. In an embodiment, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD- SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-CDMA), etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。视频编解码器用于对数字视频压缩或解压缩。The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture static images or videos. The video codec is used to compress or decompress digital videos.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。 The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。FIG2 is a software structure diagram of the electronic device 100 of an embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in FIG. 2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in FIG. 2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
为了便于理解本申请的方案,下文先介绍下与本申请相关的技术。In order to facilitate understanding of the solution of the present application, the following first introduces the technology related to the present application.
随着智慧屏的不断发展,越来越多的企业将移动端的应用迁移到智慧屏上,拓展大屏生态。目前业界常用的方式是主动指向方式,用户可以手持遥控器主动指向大屏进行操作,虽然这种主动指向方式简单易学,但是在实际操作过程中用户体验较差,无法实现高效交互。With the continuous development of smart screens, more and more companies are migrating mobile applications to smart screens to expand the large-screen ecosystem. Currently, the industry's commonly used method is active pointing, where users can hold the remote control and actively point to the large screen for operation. Although this active pointing method is simple and easy to learn, the user experience is poor during actual operation and efficient interaction cannot be achieved.
具体地,当用户手机遥控器主动指向大屏进行操作时,许多非指向行为也会引起遥控器姿态变化,从而导致光标移动。例如,当用户选择播放视频1并在遥控器上进行点击或滑动时,引起遥控器的姿态发生变化,导致本应显示在该视频1上的光标会移动至大屏的其它位置,从而误将光标最终所停留位置的焦点打开,降低用户体验。Specifically, when the user's mobile phone remote control actively points to the large screen for operation, many non-pointing behaviors will also cause the remote control posture to change, resulting in the cursor moving. For example, when the user chooses to play video 1 and clicks or slides on the remote control, the remote control posture changes, causing the cursor that should be displayed on video 1 to move to other positions on the large screen, thereby mistakenly opening the focus of the position where the cursor finally stops, reducing the user experience.
本申请实施例提供一种光标控制方法,可以解决指向交互难以精准控制的问题,实现高效交互,以提升用户体验。The embodiment of the present application provides a cursor control method, which can solve the problem that pointing interaction is difficult to accurately control, achieve efficient interaction, and improve user experience.
本申请以下实施例将以具有图1和图2所示结构的电子设备为例,结合附图和应用场景,对本申请实施例提供的光标控制的方法进行具体阐述。 The following embodiments of the present application will take an electronic device having the structure shown in FIG. 1 and FIG. 2 as an example, and will specifically describe the cursor control method provided in the embodiments of the present application in combination with the accompanying drawings and application scenarios.
图3示出了电视的一组图形用户界面(graphical user interface,GUI),其中,从图3中的(a)到图3中的(j)示出了用户通过手机控制电视界面上显示的光标的方法。Figure 3 shows a set of graphical user interfaces (GUI) for a TV, wherein Figure 3 (a) to Figure 3 (j) show a method for a user to control a cursor displayed on the TV interface through a mobile phone.
参见图3中的(a)所示的GUI,该GUI中电视显示的是主界面,该主界面上方显示Tab栏:我的、少儿、精选、VIP等,以及该主界面上还显示了多个视频。当前光标所呈现的状态为●,即光标处于静止态,且光标位于视频1这一焦点中,用户可以通过手机控制电视屏幕上光标的状态和位置,当电视检测到用户的手指按住手机的屏幕301这一操作时,电视可以显示如图3中的(b)所示的GUI。Referring to the GUI shown in (a) of FIG. 3 , the TV in the GUI displays the main interface, and a tab bar is displayed above the main interface: My, Children, Featured, VIP, etc., and multiple videos are also displayed on the main interface. The current cursor state is ●, that is, the cursor is in a static state, and the cursor is located in the focus of video 1. The user can control the state and position of the cursor on the TV screen through the mobile phone. When the TV detects that the user's finger is pressing the screen 301 of the mobile phone, the TV can display the GUI shown in (b) of FIG. 3 .
参见图3中的(b)所示的GUI,可以看出,显示在电视屏幕上的光标所呈现的状态从●变换为即光标从普通态进入了静止态,用户可以将手机对准电视并转动手腕以改变手机的姿态,当电视检测到手机姿态从左往右转动时,电视可以显示如图3中的(c)所示的GUI。Referring to the GUI shown in (b) of FIG. 3 , it can be seen that the state of the cursor displayed on the TV screen changes from ● to That is, the cursor changes from the normal state to the static state. The user can point the mobile phone at the TV and turn his wrist to change the posture of the mobile phone. When the TV detects that the posture of the mobile phone rotates from left to right, the TV can display the GUI shown in (c) of Figure 3.
需要说明的是,光标所呈现的状态可以包括普通态、静止态和指向态,在光标处于指向态时,当用户在转动手腕改变手机的姿态时,光标随着手机姿态的变化而移动;在光标处于静止态或普通态时,当用户在转动手腕改变手机的姿态时,光标不会移动。It should be noted that the states presented by the cursor may include normal state, static state and pointing state. When the cursor is in the pointing state, when the user turns his wrist to change the posture of the mobile phone, the cursor moves with the change of the mobile phone posture; when the cursor is in the static state or normal state, when the user turns his wrist to change the posture of the mobile phone, the cursor will not move.
参见图3中的(c)所示的GUI,可以看出,在手机的姿态从左往右转动的过程中,光标所呈现的状态从变换为即光标从静止态进入了指向态,其中,表示光标此时正在向右移动。用户可以随时停止转动手腕,当光标停留在用户想要播放的焦点中时,用户可以停止转动手腕,电视可以显示如图3中的(d)所示的GUI。Referring to the GUI shown in (c) of FIG. 3 , it can be seen that when the posture of the mobile phone rotates from left to right, the state of the cursor changes from Transformed to That is, the cursor changes from a static state to a pointing state, where Indicates that the cursor is moving to the right at this time. The user can stop rotating the wrist at any time. When the cursor stays in the focus that the user wants to play, the user can stop rotating the wrist, and the TV can display the GUI shown in (d) in Figure 3.
参见图3中的(d)所示的GUI,可以看出,此时显示在电视屏幕上的光标位于视频2这一焦点中,且光标所呈现的状态为即,光标从指向态回到了静止态,当电视检测到用户的手指再次点击手机的屏幕302这一操作时,电视可以显示如图3中的(e)所示的GUI。Referring to the GUI shown in (d) of FIG. 3 , it can be seen that the cursor displayed on the TV screen is located in the focus of video 2 at this time, and the state of the cursor is That is, the cursor returns to the static state from the pointing state. When the television detects that the user's finger clicks the screen 302 of the mobile phone again, the television can display the GUI as shown in (e) in FIG. 3 .
参见图3中的(e)所示的GUI,电视屏幕显示关于视频2的信息,用户手指可以按住手机的屏幕,同时用户转动手腕将光标移动至“播放”这一功能控件的位置,然后在手机屏幕上进行点击后,电视即可播放视频2。Referring to the GUI shown in (e) in FIG3 , the TV screen displays information about Video 2. The user can press and hold the screen of the mobile phone with his finger, and at the same time, the user rotates his wrist to move the cursor to the position of the "Play" function control. Then, after clicking on the screen of the mobile phone, the TV can play Video 2.
在一些实施例中,用户在转动手腕的过程中,有可能由于手腕转动的幅度过大而导致光标移动到电视的屏幕边缘甚至移出电视的屏幕边缘,本申请实施例提供一种光标显示方式,可以动效告知用户光标偏出的角度,以便于用户反向转动手腕补偿所偏出的角度。In some embodiments, when the user turns his wrist, the cursor may move to the edge of the TV screen or even out of the edge of the TV screen due to excessive wrist rotation. An embodiment of the present application provides a cursor display method that can dynamically inform the user of the angle of the cursor deviation, so that the user can turn his wrist in the opposite direction to compensate for the deviation.
如上述图3中的(c)所示的GUI,在手机的姿态从左往右转动的过程中,光标所呈现的状态从变换为当用户停止转动手腕时,光标位于视频2这一焦点中。若用户在转动手腕的过程中,转动的幅度过大,导致光标移动到电视的屏幕边缘,电视可以显示图3中的(f)所示的GUI。As shown in the GUI in (c) of FIG. 3 above, when the mobile phone is rotated from left to right, the cursor changes from Transformed to When the user stops rotating his wrist, the cursor is located in the focus of video 2. If the user rotates his wrist too much, causing the cursor to move to the edge of the TV screen, the TV can display the GUI shown in (f) in FIG. 3 .
参见图3中的(f)所示的GUI,可以看出,此时,光标所呈现的状态仍然为且光标位于屏幕右侧的边缘位置。若用户的手腕继续向右转动,随之手机也继续向右转动,电视可以显示图3中的(g)所示的GUI。Referring to the GUI shown in (f) of FIG. 3 , it can be seen that at this time, the state presented by the cursor is still And the cursor is located at the edge of the right side of the screen. If the user's wrist continues to turn right, the mobile phone also continues to turn right, and the TV can display the GUI shown in (g) in Figure 3.
参见图3中的(g)所示的GUI,可以看出,此时光标已完全移出屏幕,且电视屏幕右侧的边缘显示图标表示光标此时已吸附到右边缘,若用户的手腕继续向右转动,电视可以显示图3中的(h)所示的GUI。Referring to the GUI shown in (g) of FIG. 3 , it can be seen that the cursor has completely moved out of the screen and the icon is displayed on the right edge of the TV screen. It indicates that the cursor has been adsorbed to the right edge at this time. If the user's wrist continues to turn to the right, the TV can display the GUI shown in (h) in Figure 3.
参见图3中的(h)所示的GUI,可以看出,电视屏幕右侧的边缘显示图标且图3中的(h)中右侧边缘显示的图标比图3中的(g)中右侧边缘显示的图标的高度更高,表示此时光标的吸附效果进一步增强。此时,用户可以反向转动手腕,即用户可以从右向左转动手腕,随之手机也开始向左转动,电视可以显示图3中的(i)所示的GUI。Referring to the GUI shown in (h) of FIG. 3 , it can be seen that the edge on the right side of the TV screen displays icons And the icon displayed on the right edge of (h) in Figure 3 The icon shown on the right edge of (g) in Figure 3 The height of is higher, indicating that the adsorption effect of the cursor is further enhanced. At this time, the user can rotate the wrist in the opposite direction, that is, the user can rotate the wrist from right to left, and the mobile phone also starts to rotate to the left, and the TV can display the GUI shown in (i) in Figure 3.
参见图3中的(i)所示的GUI,可以看出,电视屏幕右侧边缘显示图标且图3中的(i)中右侧边缘显示的图标比图3中的(h)中右侧边缘显示的图标的高度要低,表示此时光标的吸附效果减弱。此时,用户可以进一步反向转动手腕,即用户继续向左转动手腕,电视可以显示图3中的(j)所示的GUI。Referring to the GUI shown in (i) of FIG. 3 , it can be seen that the icon And the icon displayed on the right edge of (i) in Figure 3 Compared to the icon shown on the right edge of (h) in Figure 3 The height of is lower, indicating that the adsorption effect of the cursor is weakened. At this time, the user can further rotate the wrist in the opposite direction, that is, the user continues to rotate the wrist to the left, and the TV can display the GUI shown in (j) in Figure 3.
参见图3中的(j)所示的GUI,可以看出,电视屏幕的右侧边缘显示光标说明此时用户将手机偏出的角度通过反向转动手腕已补偿完毕,用户可以继续转动手腕以控制光标的移动。此外,还需要注意的是,由于用户在反向转动手腕的过程中,是从右向左转动手腕的,因此,当光标重新从电视屏幕的右侧边缘出现时,光标中的白色圆圈位于整个光标的左侧。Referring to the GUI shown in (j) of FIG. 3 , it can be seen that the cursor is displayed on the right edge of the TV screen. This means that the angle of the phone has been compensated by the user's reverse wrist rotation, and the user can continue to rotate the wrist to control the movement of the cursor. In addition, it should be noted that since the user rotates the wrist from right to left during the reverse wrist rotation, when the cursor reappears from the right edge of the TV screen, the cursor The white circle in the middle is located to the left of the entire cursor.
本申请实施例提供的方案,对于光标的状态进行了区分,若光标处于普通或静止态,当用户在转动手腕改变用于控制光标的手机的姿态时,光标不会移动,即光标的位置不会随着手机姿态的改变而改变; 若光标处于指向态,当用户在转动手腕改变用于控制光标的手机的姿态时,光标随着手机的移动而移动,即光标的位置会随着手机姿态的改变而改变。与现有技术中由于用户的许多非指向行为引起的手机的姿态变化而导致光标移动的方案相比,本申请实施例通过区分光标的状态且当光标处于指向态时,光标的位置随着用于控制光标的手机的姿态的变化而变化,可以解决指向交互难以精准控制的问题,从而实现高效交互,提升用户体验。此外,本申请实施例还提供了一种反馈光标状态的视觉提示方式,即当光标移出电视屏幕边缘后,光标形态会发生变化,光标形变的程度可以表征手机姿态偏出电视的度数,此时,用户可以通过反向移动或转动手机,以补偿手机姿态偏出的角度,当手机偏出的角度通过反向转动补偿完毕时,光标重新从电视屏幕边缘出现。通过这样的动效设计可以更好地向用户反馈交互状态,从而提升用户体验。The solution provided in the embodiment of the present application distinguishes the state of the cursor. If the cursor is in a normal or static state, when the user turns his wrist to change the posture of the mobile phone used to control the cursor, the cursor will not move, that is, the position of the cursor will not change with the change of the posture of the mobile phone; If the cursor is in a pointing state, when the user turns his wrist to change the posture of the mobile phone used to control the cursor, the cursor moves with the movement of the mobile phone, that is, the position of the cursor will change with the change of the posture of the mobile phone. Compared with the solution in the prior art that the cursor moves due to the change of the posture of the mobile phone caused by many non-pointing behaviors of the user, the embodiment of the present application can solve the problem that the pointing interaction is difficult to control accurately by distinguishing the state of the cursor and when the cursor is in a pointing state, the position of the cursor changes with the change of the posture of the mobile phone used to control the cursor, thereby achieving efficient interaction and improving the user experience. In addition, the embodiment of the present application also provides a visual prompt method for feedback of the cursor state, that is, when the cursor moves out of the edge of the TV screen, the shape of the cursor will change, and the degree of cursor deformation can represent the degree of deviation of the mobile phone posture from the TV. At this time, the user can compensate for the angle of deviation of the mobile phone posture by moving or rotating the mobile phone in the opposite direction. When the angle of deviation of the mobile phone is compensated by reverse rotation, the cursor reappears from the edge of the TV screen. Through such a dynamic effect design, the interaction status can be better fed back to the user, thereby improving the user experience.
图4示出了电视的另一组GUI,其中,从图4中的(a)到图4中的(e)示出了用户通过手机控制电视界面上显示的光标的方法。FIG. 4 shows another set of GUIs for a TV, wherein (a) to (e) in FIG. 4 show a method for a user to control a cursor displayed on a TV interface via a mobile phone.
参见图4中的(a)所示的GUI,该GUI中电视显示的是主界面,该主界面上方显示Tab栏:我的、少儿、精选、VIP等,以及该主界面上还显示了多个视频。当前光标所呈现的状态为●,且光标位于视频2这一焦点中,用户可以通过手机控制电视屏幕上光标的状态和位置,当电视检测到用户的手指按住手机的屏幕401这一操作时,电视可以显示如图4中的(b)所示的GUI。Referring to the GUI shown in (a) of FIG. 4 , the TV in the GUI displays the main interface, and a tab bar is displayed above the main interface: My, Children, Featured, VIP, etc., and multiple videos are also displayed on the main interface. The current cursor status is ●, and the cursor is located in the focus of video 2. The user can control the status and position of the cursor on the TV screen through the mobile phone. When the TV detects that the user's finger is pressing the screen 401 of the mobile phone, the TV can display the GUI shown in (b) of FIG. 4 .
参见图4中的(b)所示的GUI,可以看出,显示在电视屏幕上的光标所呈现的状态从●变换为即光标从普通态进入了静止态,用户手指在手机的屏幕上进行滑动可以使得电视界面的列表滚动起来,当电视检测到用户手指在手机的屏幕上向上滑动402时,电视可以显示如图4中的(c)所示的GUI。Referring to the GUI shown in (b) of FIG. 4 , it can be seen that the state of the cursor displayed on the TV screen changes from ● to That is, the cursor enters the static state from the normal state, and the user's finger sliding on the screen of the mobile phone can scroll the list of the TV interface. When the TV detects that the user's finger slides upward 402 on the screen of the mobile phone, the TV can display the GUI as shown in (c) in Figure 4.
参见图4中的(c)所示的GUI,可以看出,用户手指在手机屏幕上向上滑动的过程中,光标的状态形变为即光标从静止态进入了指向态,其中,表示电视界面上的列表(包括电视屏幕上显示的视频1、视频2、视频3、热门推荐、我的应用等)整体正在向上移动,当光标刚好停留在用户想要播放的焦点中时,此时,用户的手指在手机屏幕上可以保持静止不动,电视可以显示如图4中的(d)所示的GUI。Referring to the GUI shown in (c) of FIG. 4 , it can be seen that when the user slides his finger upward on the mobile phone screen, the state of the cursor changes to That is, the cursor changes from a static state to a pointing state, where It indicates that the list on the TV interface (including video 1, video 2, video 3, popular recommendations, my apps, etc. displayed on the TV screen) is moving upward as a whole. When the cursor happens to stay in the focus that the user wants to play, at this time, the user's finger can remain still on the mobile phone screen, and the TV can display the GUI as shown in (d) in Figure 4.
需要说明的是,本申请实施例中,光标形变的幅度与用户在手机屏幕上滑动的距离有关,用户在手机屏幕上滑动的距离越长,光标形变的幅度越大;用户在手机屏幕上滑动的距离越短,光标形变的幅度越小。但值的注意的是,光标形变的幅度存在最大上限值,最大上限值可以为预设值。It should be noted that in the embodiment of the present application, the amplitude of the cursor deformation is related to the distance the user slides on the mobile phone screen. The longer the distance the user slides on the mobile phone screen, the greater the amplitude of the cursor deformation; the shorter the distance the user slides on the mobile phone screen, the smaller the amplitude of the cursor deformation. However, it is worth noting that there is a maximum upper limit value for the amplitude of the cursor deformation, and the maximum upper limit value can be a preset value.
参见图4中的(d)所示的GUI,可以看出,此时显示在电视屏幕上的光标位于视频4这一焦点中,且光标所呈现的状态为即,光标从指向态回到了静止态,当电视检测到用户的手指离开电视时,电视可以显示如图4中的(e)所示的GUI。Referring to the GUI shown in (d) of FIG. 4 , it can be seen that the cursor displayed on the TV screen is located in the focus of video 4 at this time, and the state of the cursor is That is, the cursor returns to the static state from the pointing state, and when the TV detects that the user's finger leaves the TV, the TV may display the GUI as shown in (e) in FIG. 4 .
参见图4中的(e)所示的GUI,可以看出,此时光标位于仍位于视频4这一焦点中,且当前光标所呈现的状态为●,此时,用户可以参考上述图3的方式对视频4进行播放。Referring to the GUI shown in (e) of FIG. 4 , it can be seen that the cursor is still in the focus of video 4 and the current state of the cursor is ●. At this time, the user can play video 4 in the manner shown in FIG. 3 above.
本申请实施例提供的方案,用户可以通过在手机屏幕上滑动以使得电视屏幕所显示的视频画面滚动起来,可以使得用户更快地将光标定位到用户想要播放的焦点中,具体地,当用户手指在手机屏幕上滑动的过程中,光标的状态会发生形变,且形变的幅度与用户手机在手机屏幕上滑动的距离有关,即用户在手机屏幕上滑动的距离越长,光标形变的幅度越大;用户在手机屏幕上滑动的距离越短,光标形变的幅度越小。通过这样的动效设计可以更好地向用户反馈交互状态,从而提升用户体验。The solution provided by the embodiment of the present application allows the user to scroll the video displayed on the TV screen by sliding on the mobile phone screen, which allows the user to position the cursor to the focus of the user's desired playback more quickly. Specifically, when the user's finger slides on the mobile phone screen, the state of the cursor will change, and the magnitude of the change is related to the distance the user's mobile phone slides on the mobile phone screen, that is, the longer the distance the user slides on the mobile phone screen, the greater the magnitude of the cursor change; the shorter the distance the user slides on the mobile phone screen, the smaller the magnitude of the cursor change. Such a motion effect design can better feedback the interaction status to the user, thereby improving the user experience.
图5示出了电视的另一组GUI,其中,从图5中的(a)到图5中的(d)示出了用户通过手机控制电视界面上显示的光标的方法。FIG. 5 shows another set of GUIs for a TV, wherein FIG. 5( a ) to FIG. 5( d ) show a method for a user to control a cursor displayed on a TV interface via a mobile phone.
参见图5中的(a)所示的GUI,该GUI中电视显示的是主界面,该主界面上方显示Tab栏:我的、少儿、精选、VIP等,以及该主界面上还显示了多个视频。当前光标所呈现的状态为●,且光标位于视频2这一焦点中,用户可以通过手机控制电视屏幕上光标的状态和位置,当电视检测到用户的手指在手机的屏幕上进行点击后抬起并在抬起后再次点击501这一操作时,电视可以显示如图5中的(b)所示的GUI。Referring to the GUI shown in (a) of FIG. 5 , the TV in the GUI displays the main interface, and a tab bar is displayed above the main interface: My, Children, Featured, VIP, etc., and multiple videos are also displayed on the main interface. The current cursor status is ●, and the cursor is located in the focus of video 2. The user can control the status and position of the cursor on the TV screen through the mobile phone. When the TV detects that the user's finger clicks on the screen of the mobile phone and then lifts it up and then clicks 501 again after lifting it up, the TV can display the GUI shown in (b) of FIG. 5 .
参见图5中的(b)所示的GUI,可以看出,显示在电视屏幕上的光标所呈现的状态从●变换为即光标从普通态进入了静止态,其中,表示用户可以拖动光标所选择的焦点。用户可以通过转动手腕改变手机的姿态,从而可以拖动焦点的位置,当用户的手腕从左往右转动时,手机的姿态也随之从左往右转动,电视可以显示如图5中的(c)所示的GUI。Referring to the GUI shown in (b) of FIG. 5 , it can be seen that the state of the cursor displayed on the TV screen changes from ● to That is, the cursor has entered the static state from the normal state, where Indicates that the user can drag the focus selected by the cursor. The user can change the posture of the mobile phone by rotating the wrist, so as to drag the position of the focus. When the user's wrist rotates from left to right, the posture of the mobile phone also rotates from left to right, and the TV can display the GUI shown in (c) of Figure 5.
参见图5中的(c)所示的GUI,可以看出,在手机的姿态从左往右转动的过程中,光标所呈现的状态从变换为即光标从静止态进入了指向态,其中,表示表示光标以及视频2这一焦点此时正在 统一向右移动。当光标以及视频2这一焦点拖动至用户想要显示的位置时,用户的手指可以离开手机的屏幕,电视可以显示如图5中的(d)所示的GUI。Referring to the GUI shown in (c) of FIG. 5 , it can be seen that when the posture of the mobile phone rotates from left to right, the state of the cursor changes from Transformed to That is, the cursor changes from a static state to a pointing state, where Indicates that the cursor and video 2 are currently in focus. When the cursor and the focus of video 2 are dragged to the position the user wants to display, the user's finger can leave the screen of the mobile phone, and the TV can display the GUI shown in (d) in Figure 5.
参见图5中的(d)所示的GUI,可以看出,此时光标所呈现的状态又回到且视频2这一焦点此时位于电视界面的最右侧,而拖动之前位于电视界面最右侧的视频3此时位于拖动之前视频2的位置上,相当于将视频3的位置和视频2的位置进行了调换。Referring to the GUI shown in (d) of FIG. 5 , it can be seen that the cursor status at this time returns to And the focus of video 2 is now located at the far right of the TV interface, and video 3, which was located at the far right of the TV interface before dragging, is now located at the position of video 2 before dragging, which is equivalent to swapping the positions of video 3 and video 2.
本申请实施例提供的方案,用户可以拖动电视屏幕上的焦点,具体地,当电视检测到用户的手指在手机的屏幕上进行点击后抬起并在抬起后再次点击这一操作时,光标的状态会发生变化,当光标的状态变换为这一状态时,用户可以对电视屏幕上的焦点进行拖动,将某一焦点拖动至用户想要该焦点位于的位置。通过这样的设计,可以实现对电视屏幕上的焦点的拖动,从而提升用户体验。The solution provided by the embodiment of the present application allows the user to drag the focus on the TV screen. Specifically, when the TV detects that the user's finger clicks on the screen of the mobile phone, lifts it up, and then clicks again after lifting it up, the state of the cursor will change. When the state of the cursor changes to In this state, the user can drag the focus on the TV screen to the position where the user wants the focus to be located. Through such a design, the focus on the TV screen can be dragged, thereby improving the user experience.
图6示出了电视的另一组GUI,其中,从图6中的(a)到图6中的(c)示出了用户通过手机控制电视界面上显示的光标的方法。FIG. 6 shows another set of GUIs for a TV, wherein FIG. 6 (a) to FIG. 6 (c) show a method for a user to control a cursor displayed on a TV interface via a mobile phone.
参见图6中的(a)所示的GUI,该GUI中电视显示的是主界面,该主界面上方显示Tab栏:我的、少儿、精选、VIP等,以及该主界面上还显示了多个视频。当前光标所呈现的状态为●,且光标位于视频2这一焦点中,用户可以通过手机控制电视屏幕上光标的状态和位置,当用户按照上述图3所示的方法播放视频2时,电视可以显示如图6中的(b)所示的GUI。Referring to the GUI shown in (a) of FIG6 , the TV in the GUI displays the main interface, and a tab bar is displayed above the main interface: My, Children, Featured, VIP, etc., and multiple videos are also displayed on the main interface. The current cursor status is ●, and the cursor is located in the focus of video 2. The user can control the status and position of the cursor on the TV screen through the mobile phone. When the user plays video 2 according to the method shown in FIG3 above, the TV can display the GUI shown in (b) of FIG6 .
参见图6中的(b)所示的GUI,界面显示视频2的画面,当电视检测到用户的手指在手机的屏幕上进行点击后抬起并在抬起后再次点击且点击时长超过阈值时,触发长按操作,电视可以显示如图6中的(c)所示的GUI。Referring to the GUI shown in (b) of FIG6 , the interface displays the screen of video 2. When the TV detects that the user's finger clicks on the screen of the mobile phone and then lifts it up and clicks again after lifting it up, and the click duration exceeds a threshold, a long press operation is triggered and the TV can display the GUI shown in (c) of FIG6 .
参见图6中的(c)所示的GUI,可以看出,此时界面弹出一个功能框,该功能框中包括用于控制该视频2的播放画面的功能键,用户可以通过点击相应的功能键控制视频2的播放。Referring to the GUI shown in (c) of FIG6 , it can be seen that a function box pops up on the interface at this time, and the function box includes function keys for controlling the playback screen of the video 2. The user can control the playback of the video 2 by clicking the corresponding function keys.
图7为本申请实施例提供的一种控制光标显示的方法的示意图,本申请实施例以手机和电视为例,该方法可以包括步骤S710~S730。FIG7 is a schematic diagram of a method for controlling cursor display provided in an embodiment of the present application. The embodiment of the present application takes a mobile phone and a television as examples. The method may include steps S710 to S730.
S710,手指按压在手机屏幕上。S710, finger pressed on the phone screen.
S712,手机是否能判断出操作类型。S712: Whether the mobile phone can identify the operation type.
若是,则执行步骤S714;若否,则执行步骤S716。If yes, execute step S714; if no, execute step S716.
本申请实施例中,步骤S712中的手机判断操作类型可以基于用户在该手机上的操作进行判断,例如,当用户手指按压在手机屏幕上时,若手机监测到用户手持手机且手机自身姿态处于变化中,手机可以判断出操作类型为指向操作;若手机监测到用户手指在手机屏幕上的触摸坐标发生变化,手机可以判断出操作类型为滑动操作。In an embodiment of the present application, the mobile phone in step S712 can determine the operation type based on the user's operation on the mobile phone. For example, when the user presses his finger on the mobile phone screen, if the mobile phone detects that the user is holding the mobile phone and the mobile phone's own posture is changing, the mobile phone can determine that the operation type is a pointing operation; if the mobile phone detects that the touch coordinates of the user's finger on the mobile phone screen change, the mobile phone can determine that the operation type is a sliding operation.
S714,是否是滑动操作。S714: Whether it is a sliding operation.
若是,则执行步骤S718;若否,则执行步骤S720。If yes, execute step S718; if no, execute step S720.
S718,基于触摸坐标变化,对电视屏幕上的列表进行滚动操作。S718, scrolling the list on the TV screen based on the change in the touch coordinates.
S720,基于手机姿态变化,控制光标在电视屏幕上进行移动。S720, based on the change of the mobile phone posture, control the cursor to move on the TV screen.
本申请实施例中,当手机确定操作类型为滑动操作时,随着用户在手机屏幕上的触摸坐标的变化,电视屏幕上的列表进行滚动。如上述图4中所示出的,当用户手指在手机屏幕上向上滑动时,电视屏幕上的列表随之也向上滚动;类似地,当用户手指在手机屏幕上向下滑动时,电视屏幕上的列表随之也向下滚动。In the embodiment of the present application, when the mobile phone determines that the operation type is a sliding operation, the list on the TV screen scrolls as the touch coordinates of the user on the mobile phone screen change. As shown in FIG. 4 above, when the user slides his finger upward on the mobile phone screen, the list on the TV screen also scrolls upward; similarly, when the user slides his finger downward on the mobile phone screen, the list on the TV screen also scrolls downward.
当确定操作类型为指向操作时,随着手机姿态的变化,显示在电视屏幕上的光标也会进行移动。如上述图3中所示出的,当用户手持手机将手机对准电视并向右转动手腕时,显示在电视屏幕上的光标随之也会向右移动,当用户手持手机将手机对准电视并向左转动手腕时,显示在电视屏幕上的光标随之也会向左移动。当用户手持手机将手机对准电视并向上移动手腕时,显示在电视屏幕上的光标随之也会向上移动,当用户手持手机将手机对准电视并向下移动手腕时,显示在电视屏幕上的光标随之也会向上移动。When the operation type is determined to be a pointing operation, the cursor displayed on the TV screen will also move as the posture of the mobile phone changes. As shown in Figure 3 above, when the user holds the mobile phone and points the mobile phone at the TV and turns the wrist to the right, the cursor displayed on the TV screen will also move to the right. When the user holds the mobile phone and points the mobile phone at the TV and turns the wrist to the left, the cursor displayed on the TV screen will also move to the left. When the user holds the mobile phone and points the mobile phone at the TV and moves the wrist upward, the cursor displayed on the TV screen will also move upward. When the user holds the mobile phone and points the mobile phone at the TV and moves the wrist downward, the cursor displayed on the TV screen will also move upward.
在一些实施例中,当确定操作类型为指向操作时,随着手机姿态的变化,除了显示在电视屏幕上的光标进行移动外,该光标所位于的焦点也会同时移动。手机可以通过用户在转动或移动手腕之前用户手指在手机屏幕上的动作进行区分,若用户在转动或移动手腕之前,手指在手机屏幕上进行点击后抬起并在抬起后再次进行点击,则用户在转动或移动手腕时,光标所位于的焦点和光标一起移动。如上述图5中所示的,当用户的手腕从左往右转动时,手机的姿态也随之从左往右转动,光标以及光标位于的视频2 这一焦点统一向右移动。In some embodiments, when the operation type is determined to be a pointing operation, as the posture of the mobile phone changes, in addition to the movement of the cursor displayed on the TV screen, the focus where the cursor is located will also move simultaneously. The mobile phone can distinguish by the movement of the user's finger on the mobile phone screen before the user turns or moves the wrist. If the user clicks on the mobile phone screen and then lifts up the finger before turning or moving the wrist and clicks again after lifting it up, when the user turns or moves the wrist, the focus where the cursor is located moves with the cursor. As shown in Figure 5 above, when the user's wrist turns from left to right, the posture of the mobile phone also turns from left to right, and the cursor and the video 2 where the cursor is located move together. This focus uniformly moves to the right.
如图8所示,为本申请实施例提供的一种光标显示的示意图。其中,图8中的(a)为光标的普通状态;图8中的(b)为用户的手指在手机的屏幕上进行点击,同时用户转动手腕或移动手腕时,光标的移动状态;图8中的(c)为用户手指在手机屏幕上滑动时,光标的移动状态;图8中的(d)为用户的手指在手机的屏幕上进行点击后抬起并在抬起后再次点击,同时用户转动手腕或移动手腕时,光标的移动状态。As shown in Figure 8, it is a schematic diagram of a cursor display provided by an embodiment of the present application. Among them, Figure 8 (a) is the normal state of the cursor; Figure 8 (b) is the movement state of the cursor when the user's finger clicks on the screen of the mobile phone and the user turns or moves the wrist; Figure 8 (c) is the movement state of the cursor when the user's finger slides on the screen of the mobile phone; Figure 8 (d) is the movement state of the cursor when the user's finger clicks on the screen of the mobile phone, lifts up, and clicks again after lifting up, and the user turns or moves the wrist.
此外,本申请实施例提供的方案,用户可以根据自身朝向,在适合的手腕活动范围内进行指向。In addition, with the solution provided in the embodiments of the present application, the user can point within a suitable wrist movement range according to his or her own orientation.
如图9和图10所示,分别为本申请实施例提供的一种用户基于身体朝向进行指向的示意图。As shown in FIG. 9 and FIG. 10 , they are schematic diagrams of a user pointing based on body orientation provided in an embodiment of the present application.
如图9所示,当用户正对着电视屏幕时,用户可以基于图9中所示的活动范围(如图中所示的角度α)朝着电视屏幕进行指向;如图10所示,当用户位于电视屏幕右侧时,用户可以基于所位于的电视屏幕右侧,基于图10中所示的活动范围(如图中所示的角度β)朝着电视屏幕左侧进行指向。As shown in Figure 9, when the user is facing the TV screen, the user can point toward the TV screen based on the activity range shown in Figure 9 (angle α shown in the figure); as shown in Figure 10, when the user is located on the right side of the TV screen, the user can point toward the left side of the TV screen based on the right side of the TV screen and the activity range shown in Figure 10 (angle β shown in the figure).
S716,是否是手指刚接触屏幕的第一帧。S716: Is this the first frame in which the finger just touches the screen?
若是,则执行步骤S722;若否,则执行步骤S724。If yes, execute step S722; if no, execute step S724.
S722,记录初始触摸坐标和手机初始姿态。S722, record the initial touch coordinates and the initial posture of the mobile phone.
本申请实施例中,对于无法判断出操作类型的情况,手机可以判断手指按压在手机屏幕上的这一操作是否是手指刚接触手机屏幕的第一帧,若是,则可以记录手指接触手机屏幕的初始触摸坐标和手机初始姿态,便于计算后续滑动操作的手指移动轨迹以及转动操作的手机姿态变化。In an embodiment of the present application, in the case where the type of operation cannot be determined, the mobile phone can determine whether the operation of pressing the finger on the mobile phone screen is the first frame in which the finger has just touched the mobile phone screen. If so, the initial touch coordinates of the finger touching the mobile phone screen and the initial posture of the mobile phone can be recorded to facilitate the calculation of the finger movement trajectory of subsequent sliding operations and the change in the posture of the mobile phone during rotation operations.
S724,手指移动轨迹的数值是否超过第一阈值。S724: Whether the value of the finger movement trajectory exceeds a first threshold.
若是,则执行步骤S726;若否,则执行步骤S728。If yes, execute step S726; if no, execute step S728.
S726,进入滑动操作状态。S726, enter the sliding operation state.
本申请实施例中,对于手指移动轨迹的数值的计算:可以基于手机屏幕的中心建立平面坐标系,并根据手指触摸的坐标的变化计算手指移动轨迹的数值。In an embodiment of the present application, for the calculation of the numerical value of the finger movement trajectory: a plane coordinate system can be established based on the center of the mobile phone screen, and the numerical value of the finger movement trajectory can be calculated according to the change of the coordinates touched by the finger.
如图11所示,为本申请实施例提供的基于手机屏幕建立的平面坐标系的示意图,假设用户手指的初始触摸位置A的坐标值为(a1,a2),当用户手指滑动至位置B后停止,B的坐标值为(b1,b2),若用户的手指移动轨迹为直线,则用户手指移动轨迹的数值可以表示为 As shown in FIG. 11 , it is a schematic diagram of a plane coordinate system established based on a mobile phone screen according to an embodiment of the present application. Assuming that the coordinate value of the initial touch position A of the user's finger is (a1, a2), when the user's finger slides to position B and stops, the coordinate value of B is (b1, b2). If the user's finger movement trajectory is a straight line, the value of the user's finger movement trajectory can be expressed as
本申请实施例中,在得到手指移动轨迹的数值后,可以判断该数值与第一阈值的大小,若该数值大于第一阈值,则可以认为用户在手机屏幕上进行了滑动,从而可以进入滑动操作状态;若该数值小于或等于第一阈值,则可以进一步判断手机姿态变化值与第二阈值的大小。In an embodiment of the present application, after obtaining the numerical value of the finger movement trajectory, the size of the numerical value and the first threshold can be judged. If the numerical value is greater than the first threshold, it can be considered that the user has slid on the mobile phone screen, thereby entering the sliding operation state; if the numerical value is less than or equal to the first threshold, the size of the mobile phone posture change value and the second threshold can be further judged.
当手指移动轨迹的数值大于第一阈值,对于用户手指在手机屏幕上的操作,反映到电视上,电视界面上的列表会向上或向下滚动。具体地,若用户手指在手机屏幕上向上滑动,电视界面上的列表也会向上滚动,若用户手指在手机屏幕上向下滑动,电视界面上的列表也会向下滚动。When the value of the finger movement trajectory is greater than the first threshold, the operation of the user's finger on the mobile phone screen is reflected on the TV, and the list on the TV interface will scroll up or down. Specifically, if the user slides his finger upward on the mobile phone screen, the list on the TV interface will also scroll up, and if the user slides his finger downward on the mobile phone screen, the list on the TV interface will also scroll down.
S728,手机姿态变化值是否超过第二阈值。S728: Whether the mobile phone posture change value exceeds a second threshold.
若是,则执行步骤S730,若否,则结束。If yes, execute step S730, if no, end.
S730,进入指向操作状态。S730, entering the pointing operation state.
本申请实施例中,对于手机姿态的变化值,可以基于手机屏幕的中心建立三维直角坐标系,并根据手机姿态的变化计算手机转动角度,即手机姿态的变化值。In an embodiment of the present application, for the change value of the mobile phone posture, a three-dimensional rectangular coordinate system can be established based on the center of the mobile phone screen, and the rotation angle of the mobile phone, that is, the change value of the mobile phone posture, can be calculated according to the change of the mobile phone posture.
如图12所示,为本申请实施例提供的基于手机屏幕建立的三维直角坐标系的示意图。As shown in FIG. 12 , it is a schematic diagram of a three-dimensional rectangular coordinate system established based on a mobile phone screen according to an embodiment of the present application.
参见图12中的(a),以手机屏幕中心为坐标原点,分别以向右、向里、向上为x轴、y轴、z轴,当手机向右转动某一角度后,坐标轴也会随着手机的转动一起转动,则此时坐标轴会相应地发生变化,如图12中的(b)所示。Referring to (a) in FIG12 , the center of the mobile phone screen is taken as the coordinate origin, and the right, inward, and upward are the x-axis, y-axis, and z-axis respectively. When the mobile phone is rotated to the right by a certain angle, the coordinate axis will also rotate with the rotation of the mobile phone. At this time, the coordinate axis will change accordingly, as shown in (b) in FIG12 .
参见图12中的(b),可以看出,当手机从图12中的(a)所示的姿态向右转动某一角度后,手机的姿态发生了变化,由于坐标轴随着手机的转动一起转动,此时所呈现的坐标轴与图12中的(a)所呈现的坐标轴有所偏差。Referring to (b) in FIG. 12 , it can be seen that when the mobile phone is rotated to the right by a certain angle from the posture shown in (a) in FIG. 12 , the posture of the mobile phone changes. Since the coordinate axis rotates with the rotation of the mobile phone, the coordinate axis presented at this time deviates from the coordinate axis presented in (a) in FIG. 12 .
为了弥补这个偏差,当手机转动某一角度后,可以按照新的坐标系(即x’轴、z’轴和y轴)计算手机的姿态,参见图12中的(c),新的坐标系可以理解为与图12中的(a)中所示的坐标系是一致的。In order to compensate for this deviation, when the mobile phone is rotated to a certain angle, the posture of the mobile phone can be calculated according to the new coordinate system (i.e., the x' axis, z' axis and y axis), see (c) in Figure 12. The new coordinate system can be understood to be consistent with the coordinate system shown in (a) in Figure 12.
具体在计算时,可以根据以下公式进行计算:
[q0,q1,q2,q3]=currentAttitudeRotationQuaternion*(relativeRotation*currentAttitudeRotationQuaternion_inverse)
relativeRotation=lastAttitudeinverse*currentaAttitudeSpecifically, the calculation can be performed according to the following formula:
[q 0 ,q 1 ,q 2 ,q 3 ] = currentAttitudeRotationQuaternion*(relativeRotation*currentAttitudeRotationQuaternion_inverse)
relativeRotation=lastAttitude inverse *currentAttitude
其中,R表示相邻两帧设备的相对转动角度,[x,y,z]为用欧拉角形式表示的相对转动角度R,[q0,q1,q2,q3]为用四元数形式表示的相对转动角度R,currentAttitudeRotationQuaternion为翻滚角的旋转四元数,relativeRotation为相邻两帧坐标系的相对转动,currentAttitudeRotationQuaternion_inverse为翻滚角的旋转四元数的逆,roll为旋转后设备相对地球坐标系的翻滚角度,lastAttitude为旋转前设备相对地球坐标系的姿态(四元数形式),lastAttitudeinverse为lastAttitude的逆,currentaAttitude为旋转后设备相对地球坐标系的姿态(四元数形式)。Among them, R represents the relative rotation angle of the device between two adjacent frames, [x, y, z] is the relative rotation angle R expressed in the form of Euler angles, [q 0 ,q 1 ,q 2 ,q 3 ] is the relative rotation angle R expressed in the form of quaternion, currentAttitudeRotationQuaternion is the rotation quaternion of the roll angle, relativeRotation is the relative rotation of the coordinate systems of two adjacent frames, currentAttitudeRotationQuaternion_inverse is the inverse of the rotation quaternion of the roll angle, roll is the roll angle of the device relative to the earth coordinate system after rotation, lastAttitude is the attitude of the device relative to the earth coordinate system before rotation (quaternion form), lastAttitude inverse is the inverse of lastAttitude, and currentaAttitude is the attitude of the device relative to the earth coordinate system (quaternion form) after rotation.
本申请实施例中,在得到手机姿态变化值后,可以判断该手机姿态变化值与第二阈值的大小,若该姿态变化值大于第二阈值,则可以认为用户手持手机进行了转动,从而可以进入指向操作状态;若该姿态变化值小于或等于第二阈值,则结束判断过程。In an embodiment of the present application, after obtaining the mobile phone posture change value, the size of the mobile phone posture change value and the second threshold can be judged. If the posture change value is greater than the second threshold, it can be considered that the user has rotated the mobile phone, thereby entering the pointing operation state; if the posture change value is less than or equal to the second threshold, the judgment process is terminated.
当姿态变化值大于第二阈值,对于用户手持手机转动或移动手腕的操作,反映到电视上,显示在电视上的光标会横向或纵向移动。具体地,若用户手持手机向右转动手腕时,显示在电视上的光标会向右移动;若用户手持手机向左转动手腕时,显示在电视上的光标会向左移动;若用户手持手机向上移动手腕时,显示在电视上的光标会向上移动;若用户手持手机向下移动手腕时,显示在电视上的光标会向下移动。When the posture change value is greater than the second threshold, the user's operation of rotating or moving the wrist while holding the mobile phone is reflected on the TV, and the cursor displayed on the TV will move horizontally or vertically. Specifically, if the user rotates the wrist to the right while holding the mobile phone, the cursor displayed on the TV will move to the right; if the user rotates the wrist to the left while holding the mobile phone, the cursor displayed on the TV will move to the left; if the user moves the wrist upward while holding the mobile phone, the cursor displayed on the TV will move upward; if the user moves the wrist downward while holding the mobile phone, the cursor displayed on the TV will move downward.
当然,在一些可能的实现方式中,判断手指移动的轨迹和第一阈值的大小与判断手机姿态的变化值和第二阈值的大小这两个判断过程不分先后。换句话说,可以先判断手指移动的轨迹和第一阈值的大小,然后再判断手机姿态的变化值和第二阈值的大小;或者,可以先判断手机姿态的变化值和第二阈值的大小,然后再判断手指移动的轨迹和第一阈值的大小;不予限制。Of course, in some possible implementations, the two judgment processes of judging the trajectory of the finger movement and the size of the first threshold and judging the change value of the mobile phone posture and the size of the second threshold are not prioritized. In other words, the trajectory of the finger movement and the size of the first threshold can be judged first, and then the change value of the mobile phone posture and the size of the second threshold can be judged; or, the change value of the mobile phone posture and the size of the second threshold can be judged first, and then the trajectory of the finger movement and the size of the first threshold can be judged; there is no limitation.
需要说明的是,虽然上述实施例中示出了手指移动轨迹的数值超过第一阈值时,则可以认为用户在手机屏幕上进行了滑动,在一些实施例中,当手指移动轨迹的数值等于超过第一阈值时,也可以认为用户在手机屏幕上进行了滑动;类似地,当手机姿态变化值等于第二阈值,也可以认为用户手持手机进行了转动。It should be noted that although the above embodiments show that when the value of the finger movement trajectory exceeds the first threshold, it can be considered that the user has slid on the mobile phone screen, in some embodiments, when the value of the finger movement trajectory is equal to or greater than the first threshold, it can also be considered that the user has slid on the mobile phone screen; similarly, when the mobile phone posture change value is equal to the second threshold, it can also be considered that the user has rotated the mobile phone.
此外,本申请实施例可以通过手腕的转动速度调整显控比,以控制光标移动的精度和速度。具体地,若手腕的转动速度较低,如手腕的转动速度小于预设值,则可以优先考虑光标显示的精度,即随着用户手腕的转动,光标可以慢慢移动,最终精准停留在用户想要光标所显示的位置;若手腕的转动速度较高,如手腕的转动速度大于该预设值,则可以优先考虑光标显示的效率,即随着用户手腕的转动,光标可以快速移动,并最终停留在用户想要光标所显示的位置的附近。In addition, the embodiment of the present application can adjust the display-control ratio by the rotation speed of the wrist to control the accuracy and speed of the cursor movement. Specifically, if the rotation speed of the wrist is low, such as the rotation speed of the wrist is less than the preset value, the accuracy of the cursor display can be given priority, that is, as the user's wrist rotates, the cursor can move slowly and eventually stay accurately at the position where the user wants the cursor to be displayed; if the rotation speed of the wrist is high, such as the rotation speed of the wrist is greater than the preset value, the efficiency of the cursor display can be given priority, that is, as the user's wrist rotates, the cursor can move quickly and eventually stay near the position where the user wants the cursor to be displayed.
如图13所示,为本申请实施例提供的一种显控比曲线的示意图。从图中可以看出,对于任一条曲线,用户移动手机的速度越大或用户手指的移动速度越大,显控比越大,则显示在电视屏幕上的光标和/或光标停留的焦点的移动距离越多;用户移动手机的速度越小或用户手指的移动速度越小,显控比越小,则显示在电视屏幕上的光标和/或光标停留的焦点的移动距离越少。As shown in Figure 13, it is a schematic diagram of a display-control ratio curve provided in an embodiment of the present application. It can be seen from the figure that for any curve, the faster the user moves the mobile phone or the faster the user's finger moves, the larger the display-control ratio, and the longer the cursor displayed on the TV screen and/or the focus where the cursor stays moves; the slower the user moves the mobile phone or the slower the user's finger moves, the smaller the display-control ratio, and the shorter the cursor displayed on the TV screen and/or the focus where the cursor stays moves.
值得注意的是,当用户移动手机的速度越大,则最终光标和/或光标当前停留的焦点在电视的屏幕上移动的距离越大,可以理解为当手机移动的速度越快时,优先考虑光标和/或光标当前停留的焦点移动的效率,即将光标和/或光标当前停留的焦点快速移动到相应位置;当用户移动手机的速度越慢,则最终光标和/或光标当前停留的焦点在电视的屏幕上移动的距离越小,可以理解为当手机移动的速度越慢时,优先考虑光标和/或光标当前停留的焦点移动的精度,即将光标和/或光标当前停留的焦点缓慢移动到精确位置。It is worth noting that the faster the user moves the phone, the greater the distance the cursor and/or the focus where the cursor is currently resting moves on the TV screen. It can be understood that when the phone moves faster, the efficiency of the movement of the cursor and/or the focus where the cursor is currently resting is prioritized, that is, the cursor and/or the focus where the cursor is currently resting is quickly moved to the corresponding position; when the user moves the phone slower, the smaller the distance the cursor and/or the focus where the cursor is currently resting moves on the TV screen. It can be understood that when the phone moves slower, the accuracy of the movement of the cursor and/or the focus where the cursor is currently resting is prioritized, that is, the cursor and/or the focus where the cursor is currently resting is slowly moved to the precise position.
此外,图中还示出了多条曲线,这多条曲线主要与光标的灵敏度有关,光标越灵敏,当手机或手指移动的速度越大,则显控比越大,因此,图中所示的曲线1所对应的光标的灵敏度是最大的,曲线2次之,依次类推。In addition, the figure also shows multiple curves, which are mainly related to the sensitivity of the cursor. The more sensitive the cursor is, the faster the mobile phone or finger moves, the greater the display-control ratio. Therefore, the cursor sensitivity corresponding to curve 1 shown in the figure is the greatest, followed by curve 2, and so on.
情况一:用户手腕转动手机 Case 1: The user rotates the phone with his wrist
具体可以按照以下公式计算显控比:
Gain=loopup(R)
R=max(|Rz|,|Ry|)+min(|Rz|,|Ry|)/2The display-control ratio can be calculated according to the following formula:
Gain=loopup(R)
R=max(| Rz |,| Ry |)+min(| Rz |,| Ry |)/2
其中,Gain为显控比,R为手机相邻两帧相对转动的总的转动角度,Rz为手机相邻两帧在水平方向的转动角度,Ry为手机相邻两帧在垂直方向的转动角度。Wherein, Gain is the display-control ratio, R is the total rotation angle of two adjacent frames of the mobile phone relative to each other, Rz is the rotation angle of two adjacent frames of the mobile phone in the horizontal direction, and Ry is the rotation angle of two adjacent frames of the mobile phone in the vertical direction.
手机转动了角度R,反映到电视上,显示在电视上的光标移动的位移的大小用d表示:
dx=Rz*Gain
dy=Ry*GainThe mobile phone rotates by an angle R, which is reflected on the TV. The displacement of the cursor displayed on the TV is represented by d:
d x = R z *Gain
dy = Ry *Gain
其中,dx为光标的横向位移,dy为光标的纵向位移。Where dx is the lateral displacement of the cursor, and dy is the longitudinal displacement of the cursor.
需要说明的是,本申请实施例中,同样的手腕动作,对于用户不同的手握手机的姿势,其指向效果是一致的。换句话说,手机的姿态变化值与用户手持手机的姿势无关,仅与手持手机的手的手腕的转动方向有关,当手腕横向转动,显示在电视上的光标横向移动,当手腕纵向转动,显示在电视上的光标纵向移动。It should be noted that in the embodiment of the present application, the same wrist movement has the same pointing effect for different user's hand-holding postures of the mobile phone. In other words, the posture change value of the mobile phone has nothing to do with the user's hand-holding posture of the mobile phone, but only with the rotation direction of the wrist of the hand holding the mobile phone. When the wrist rotates horizontally, the cursor displayed on the TV moves horizontally, and when the wrist rotates vertically, the cursor displayed on the TV moves vertically.
情况二:用户手指在屏幕上滑动Case 2: The user slides his finger on the screen
用户手指在手机屏幕上滑动的位移的大小为k,反映到电视上,显示在电视上的光标移动的位移的大小用d表示:The displacement of the user's finger sliding on the mobile phone screen is k, and the displacement of the cursor displayed on the TV is d:
若用户手指上下滑动,则d=Gain*ky If the user slides his finger up and down, then d = Gain*k y
若用户手指左右滑动,则d=Gain*kx If the user slides his finger left or right, then d = Gain*k x
其中,Gain为显控比,ky手指的纵向位移,kx手指的横向位移。Where, Gain is the display-control ratio, ky is the longitudinal displacement of the finger, and kx is the lateral displacement of the finger.
本申请实施例提供的方案,手机通过结合用户手指的操作和手机姿态变化确定用户操作类型,并根据操作类型进入相应的操作状态,具体地,当手机基于用户手指的操作能够判断出操作类型时,可以基于手指在手机屏幕上触摸的坐标的变化,对电视屏幕上的列表进行滚动,或者,可以基于手机姿态的变化,控制光标在电视屏幕上进行移动;当手机基于用户手指的操作无法判断出操作类型时,可以先记录用户手指在手机屏幕上的初始触摸坐标,然后再判断用户手指的移动轨迹的数值与第一阈值的大小,或者,手机姿态变化值与第二阈值的大小,从而较为精准地进入相应的操作状态。通过上述设计可以解决指向交互难以精准控制的问题,从而实现高效交互,提升用户体验。The solution provided by the embodiment of the present application is that the mobile phone determines the user operation type by combining the operation of the user's finger and the change of the mobile phone's posture, and enters the corresponding operation state according to the operation type. Specifically, when the mobile phone can determine the operation type based on the operation of the user's finger, the list on the TV screen can be scrolled based on the change of the coordinates of the finger touching the mobile phone screen, or the cursor can be controlled to move on the TV screen based on the change of the mobile phone's posture; when the mobile phone cannot determine the operation type based on the operation of the user's finger, the initial touch coordinates of the user's finger on the mobile phone screen can be recorded first, and then the value of the movement trajectory of the user's finger can be determined with the size of the first threshold, or the value of the mobile phone posture change value with the size of the second threshold, so as to enter the corresponding operation state more accurately. The above design can solve the problem that pointing interaction is difficult to control accurately, thereby achieving efficient interaction and improving user experience.
如图14所示,为本申请实施例提供的一种光控控制的方法的示意图。该方法可以由第一电子设备和第二电子设备执行,该方法可以包括步骤1410~1426。As shown in Fig. 14, it is a schematic diagram of a light control method provided by an embodiment of the present application. The method can be executed by a first electronic device and a second electronic device, and the method can include steps 1410-1426.
1410,响应于用户的第一操作,所述第二电子设备生成第一指令,所述第一指令用于指示显示在第一电子设备上的光标显示静止态;1410. In response to a first operation of a user, the second electronic device generates a first instruction, where the first instruction is used to instruct a cursor displayed on the first electronic device to display a static state.
1412,所述第二电子设备向第一电子设备发送所述第一指令;1412, the second electronic device sends the first instruction to the first electronic device;
1414,所述第一电子设备根据所述第一指令显示所述光标为静止态。1414. The first electronic device displays the cursor in a static state according to the first instruction.
本申请实施例中的第一电子设备可以为上述实施例中的电视,第二电子设备可以为上述实施例中的手机。当第一电子设备接收到第二电子设备发送的第一指令,可以根据第一指令将显示在该第一电子设备屏幕上的光标调整为静止态。The first electronic device in the embodiment of the present application may be the television in the above embodiment, and the second electronic device may be the mobile phone in the above embodiment. When the first electronic device receives the first instruction sent by the second electronic device, the cursor displayed on the screen of the first electronic device may be adjusted to a static state according to the first instruction.
1416,响应于用户的第二操作,所述第二电子设备生成第二指令,所述第二指令用于指示所述光标由所述静止态变化为指向态,且在所述光标显示为所述指向态时所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上移动的方向和/或距离,以及所述光标或所述列表停止移动时所述光标显示为所述静止态,其中,在所述光标显示为所述指向态时,所述光标、所述光标当前停留的焦点、所述列表中至少一个可移动,在所述光标显示为所述静止态时,所述光标、所述光标当前停留的焦点和所述列表不可移动;1416. In response to a second operation of the user, the second electronic device generates a second instruction, wherein the second instruction is used to instruct the cursor to change from the static state to the pointing state, and when the cursor is displayed in the pointing state, the direction and/or distance in which at least one of the cursor, the focus on which the cursor currently resides, and the list displayed on the screen of the first electronic device moves on the screen of the first electronic device, and when the cursor or the list stops moving, the cursor is displayed in the static state, wherein when the cursor is displayed in the pointing state, at least one of the cursor, the focus on which the cursor currently resides, and the list is movable, and when the cursor is displayed in the static state, the cursor, the focus on which the cursor currently resides, and the list are not movable;
1418,所述第二电子设备向所述第一电子设备发送所述第二指令。1418. The second electronic device sends the second instruction to the first electronic device.
1420,所述第一电子设备根据所述第二指令将所述光标显示为由所述静止态变化为指向态,且将所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上进行移动,以及当所述光标或所述列表停止移动时将所述光标显示为所述静止态。1420, the first electronic device displays the cursor as changing from the static state to the pointing state according to the second instruction, and moves at least one of the cursor, the focus on which the cursor currently rests, and the list displayed on the screen of the first electronic device on the screen of the first electronic device, and displays the cursor in the static state when the cursor or the list stops moving.
本申请实施例中,在光标显示为静止态的情况下,当第一电子设备接收到第二电子设备发送的第二 指令,可以根据该第二指令执行相应的操作,例如,可以根据第二指令将光标变化为指向态,并将光标、光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在第一电子设备的屏幕上进行移动。第一电子设备具体执行哪些操作与第二指令具体指示的内容有关,而第二指令具体指示的内容与用户的第二操作有关,具体情况请参考下文中的情况一、情况二、情况三。In the embodiment of the present application, when the cursor is displayed in a static state, when the first electronic device receives the second electronic device sent by the second electronic device, Instruction, a corresponding operation can be performed according to the second instruction, for example, the cursor can be changed to a pointing state according to the second instruction, and at least one of the cursor, the focus where the cursor currently stays, and the list displayed on the screen of the first electronic device can be moved on the screen of the first electronic device. The specific operations performed by the first electronic device are related to the content specifically indicated by the second instruction, and the specific content indicated by the second instruction is related to the second operation of the user. For specific situations, please refer to the following situations 1, 2, and 3.
1422,响应于用户的第三操作,所述第二电子设备生成第三指令,所述第三指令用于指示播放所述光标停留的目标焦点对应的画面;1422. In response to a third operation of the user, the second electronic device generates a third instruction, where the third instruction is used to instruct to play a picture corresponding to the target focus where the cursor is located;
1424,所述第二电子设备向所述第一电子设备发送所述第三指令。1424. The second electronic device sends the third instruction to the first electronic device.
1426,所述第一电子设备接收所述第二电子设备发送的第三指令,根据所述第三指令播放所述光标停留的目标焦点对应的画面。1426, the first electronic device receives the third instruction sent by the second electronic device, and plays the picture corresponding to the target focus where the cursor is located according to the third instruction.
本申请实施例提供的方案,第一电子设备可以根据第二电子设备发送的第一指令将光标显示为静止态,且在光标为静止态的情况下,第一电子设备可以根据第二电子设备发送的第二指令将光标变化为指向态,并将光标、光标当前停留的焦点和第一电子设备屏幕上显示的列表中的至少一个在第一电子设备的屏幕上进行移动,当移动停止时,光标显示为静止态,此时,第二电子设备可以根据用户的第三操作生成第三指令,第一电子设备可以根据接收的第三指令播放光标移动停止时停留的目标焦点所对应的画面。本申请实施例提供的方案,通过区分光标的状态且当光标处于指向态时,第一电子设备可以根据接收的指令将光标、光标当前停留的焦点和列表中的至少一个进行移动,当光标处于静止态时,光标、光标当前停留的焦点和列表不可移动,可以解决指向交互难以精准控制的问题,防止用户因误操作而导致的光标抖动,从而实现高效交互,提升用户体验。According to the solution provided by the embodiment of the present application, the first electronic device can display the cursor as a static state according to the first instruction sent by the second electronic device, and when the cursor is in the static state, the first electronic device can change the cursor to a pointing state according to the second instruction sent by the second electronic device, and move at least one of the cursor, the focus where the cursor currently stays, and the list displayed on the screen of the first electronic device on the screen of the first electronic device. When the movement stops, the cursor is displayed in a static state. At this time, the second electronic device can generate a third instruction according to the third operation of the user, and the first electronic device can play the picture corresponding to the target focus where the cursor stops when the movement stops according to the received third instruction. According to the solution provided by the embodiment of the present application, by distinguishing the state of the cursor and when the cursor is in the pointing state, the first electronic device can move at least one of the cursor, the focus where the cursor currently stays, and the list according to the received instruction. When the cursor is in the static state, the cursor, the focus where the cursor currently stays, and the list cannot be moved, which can solve the problem that it is difficult to accurately control the pointing interaction, and prevent the cursor from jittering due to user misoperation, thereby achieving efficient interaction and improving user experience.
可选地,在一些实施例中,所述响应于用户的第二操作,生成第二指令,包括:Optionally, in some embodiments, generating a second instruction in response to a second operation of the user includes:
响应于所述第二操作,确定所述第二操作的操作类型,所述操作类型包括指向操作、滑动操作;In response to the second operation, determining an operation type of the second operation, where the operation type includes a pointing operation and a sliding operation;
根据所述第二操作的操作类型生成所述第二指令。The second instruction is generated according to the operation type of the second operation.
本申请实施例提供的方案,响应于第二操作,第二电子设备可以先确定该第二操作的操作类型,并根据第二操作的操作类型较为准确地生成第二指令并发送给第一电子设备,从而第一电子设备可以根据第二指令执行相应地动作,由于第二指令是基于第二操作的操作类型生成的,换句话说,第二指令包括的内容可以反映用户对第二电子设备的操作,从而第一电子设备在根据第二指令执行相应地操作时,可以与用户的第二操作实现同步,例如,第二操作为指向操作,第一电子设备可以根据该指向操作执行光标和/或光标停留的焦点的移动,而不会执行列表的滑动,可以进一步实现高效交互,提升用户体验。According to the solution provided in the embodiment of the present application, in response to the second operation, the second electronic device can first determine the operation type of the second operation, and more accurately generate a second instruction according to the operation type of the second operation and send it to the first electronic device, so that the first electronic device can perform a corresponding action according to the second instruction. Since the second instruction is generated based on the operation type of the second operation, in other words, the content included in the second instruction can reflect the user's operation on the second electronic device, so that when the first electronic device performs the corresponding operation according to the second instruction, it can be synchronized with the user's second operation. For example, the second operation is a pointing operation, and the first electronic device can move the cursor and/or the focus where the cursor rests according to the pointing operation without sliding the list, which can further achieve efficient interaction and enhance user experience.
可选地,在一些实施例中,所述响应于所述第二操作,确定所述第二操作的操作类型,包括:Optionally, in some embodiments, in response to the second operation, determining the operation type of the second operation includes:
响应于所述第二操作,确定移动轨迹对应的数值与第一阈值的大小,或者,确定角度差值和第二阈值的大小,其中,所述移动轨迹为所述第二操作包括的作用于所述第二电子设备的屏幕上的手指的移动轨迹,所述角度差值为由于所述第二操作导致的所述第二电子设备的姿态角的变化的差值;In response to the second operation, determining the magnitude of a numerical value corresponding to the movement trajectory and a first threshold, or determining the magnitude of an angle difference and a second threshold, wherein the movement trajectory is a movement trajectory of a finger acting on a screen of the second electronic device included in the second operation, and the angle difference is a difference in a change in a posture angle of the second electronic device caused by the second operation;
若所述移动轨迹对应的数值大于所述第一阈值,确定所述第二操作为所述滑动操作;If the value corresponding to the movement trajectory is greater than the first threshold, determining that the second operation is the sliding operation;
若所述角度差值大于所述第二阈值,确定所述第二操作为所述指向操作。If the angle difference is greater than the second threshold, it is determined that the second operation is the pointing operation.
本申请实施例提供的方案,若第二操作包括的作用于第二电子设备的屏幕上的手指的移动轨迹对应的数值大于第一阈值,第二电子设备可以确定第二操作为滑动操作;若由于所述第二操作导致的所述第二电子设备的姿态角的变化的差值大于第二阈值,第二电子设备可以确定第二操作为指向操作。换句话说,第二电子设备可以根据移动轨迹和姿态角的变化的差值确定第二操作是滑动操作还是指向操作,并根据操作类型生成相应的指令并发送给第一电子设备,从而第一电子设备可以根据接收的指令执行相应的动作,可以防止由于操作类型不确定而导致生成的第二指令所指示的内容的不准确,导致第一电子设备执行有误,因此,本申请实施例可以实现精准交互,提升用户体验。The solution provided by the embodiment of the present application is that if the value corresponding to the movement trajectory of the finger acting on the screen of the second electronic device included in the second operation is greater than the first threshold, the second electronic device can determine that the second operation is a sliding operation; if the difference in the change of the posture angle of the second electronic device caused by the second operation is greater than the second threshold, the second electronic device can determine that the second operation is a pointing operation. In other words, the second electronic device can determine whether the second operation is a sliding operation or a pointing operation based on the difference in the movement trajectory and the change in the posture angle, and generate a corresponding instruction based on the operation type and send it to the first electronic device, so that the first electronic device can perform a corresponding action according to the received instruction, which can prevent the inaccuracy of the content indicated by the generated second instruction due to the uncertainty of the operation type, resulting in an error in the execution of the first electronic device. Therefore, the embodiment of the present application can achieve precise interaction and improve user experience.
可选地,在一些实施例中,若所述第二操作的操作类型为所述指向操作,所述第二指令用于指示所述光标和/或所述光标当前停留的焦点在所述第一电子设备的屏幕上移动的方向和/或距离;Optionally, in some embodiments, if the operation type of the second operation is the pointing operation, the second instruction is used to indicate the direction and/or distance in which the cursor and/or the focus where the cursor currently resides moves on the screen of the first electronic device;
若所述第二操作的操作类型为所述滑动操作,所述第二指令用于指示所述第一电子设备屏幕上显示的列表在所述第一电子设备的屏幕上移动的方向和/或距离。If the operation type of the second operation is the sliding operation, the second instruction is used to indicate the direction and/or distance in which the list displayed on the screen of the first electronic device moves on the screen of the first electronic device.
本申请实施例提供的方案,若第二操作的操作类型为指向操作,第二指令用于指示光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的方向和/或距离;若第二操作的操作类型为滑动操作,第二指令用于指示第一电子设备屏幕上显示的列表在第一电子设备的屏幕上移动的方向和/或距离。从而第一电子设备可以根据第二指令准确地对光标、光标当前停留的焦点和第一电子设备屏幕上显示的列表中的 至少一个进行移动,可以进一步实现高效交互,提升用户体验。In the solution provided by the embodiment of the present application, if the operation type of the second operation is a pointing operation, the second instruction is used to indicate the direction and/or distance that the cursor and/or the focus where the cursor currently stays moves on the screen of the first electronic device; if the operation type of the second operation is a sliding operation, the second instruction is used to indicate the direction and/or distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device. Thus, the first electronic device can accurately move the cursor, the focus where the cursor currently stays, and the list displayed on the screen of the first electronic device according to the second instruction. At least one movement can further achieve efficient interaction and enhance user experience.
上文指出,响应于用户的第一操作,第二电子设备生成第一指令;响应于用户的第二操作,第二电子设备生成第二指令;其中,第二指令具体指示的内容与第一操作和第二操作有关,具体请参考下文。As mentioned above, in response to the user's first operation, the second electronic device generates a first instruction; in response to the user's second operation, the second electronic device generates a second instruction; wherein the specific content indicated by the second instruction is related to the first operation and the second operation, please refer to the following for details.
情况一:Case 1:
所述第一操作为所述用户的手指按住所述第二电子设备的屏幕,所述第二操作为手持所述第二电子设备的所述用户的手腕向第一方向移动;The first operation is that the user presses the screen of the second electronic device with a finger, and the second operation is that the user moves the wrist of the user holding the second electronic device in a first direction;
所述第二指令用于指示所述光标按照所述第一方向移动且移动第一距离。The second instruction is used to instruct the cursor to move in the first direction and over a first distance.
所述根据所述第二指令将所述光标显示为指向态,且将所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上进行移动,包括:The step of displaying the cursor in a pointing state according to the second instruction and moving at least one of the cursor, a focus on which the cursor currently resides, and a list displayed on the screen of the first electronic device on the screen of the first electronic device includes:
根据所述第二指令将所述光标显示为指向态,且将所述光标在所述第一电子设备的屏幕上按照所述第一方向移动所述第一距离。The cursor is displayed in a pointing state according to the second instruction, and the cursor is moved by the first distance in the first direction on the screen of the first electronic device.
关于情况一的内容具体可以参考上述图3所示的内容,不再赘述。For details about the first situation, please refer to the content shown in FIG. 3 above, which will not be described in detail.
本申请实施例提供的方案,第二指令所指示的具体内容与第一操作和第二操作有关,若第一操作为用户的手指按住第二电子设备的屏幕,第二操作为手持第二电子设备的用户的手腕向第一方向移动,则第二指令可以指示光标按照第一方向移动且移动第一距离,此时第一电子设备可以根据该第二指令将光标在第一电子设备的屏幕上按照第一方向移动第一距离,即第一电子设备可以根据第二指令准确地对光标进行移动,可以解决指向交互难以精准控制的问题,从而进一步实现高效交互,提升用户体验。In the solution provided in the embodiment of the present application, the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's wrist holding the second electronic device moving in a first direction, then the second instruction can instruct the cursor to move in the first direction and move a first distance. At this time, the first electronic device can move the cursor on the screen of the first electronic device in the first direction and by the first distance according to the second instruction, that is, the first electronic device can accurately move the cursor according to the second instruction, which can solve the problem that pointing interaction is difficult to accurately control, thereby further realizing efficient interaction and improving user experience.
可选地,在一些实施例中,所述第二指令还用于指示处于所述指向态的所述光标呈现第一状态,所述第一状态表征所述光标移动的方向。Optionally, in some embodiments, the second instruction is further used to instruct the cursor in the pointing state to present a first state, wherein the first state represents a direction in which the cursor moves.
本申请实施例提供的方案,第二指令还用于指示处于所述指向态的光标呈现第一状态,该第一状态表征光标移动的方向,通过这样的设计可以更好地向用户反馈交互状态,从而提升用户体验。In the solution provided in the embodiment of the present application, the second instruction is also used to instruct the cursor in the pointing state to present a first state, and the first state represents the direction of movement of the cursor. Through such a design, the interaction status can be better fed back to the user, thereby improving the user experience.
情况二:Case 2:
所述第一操作为所述用户的手指按住所述第二电子设备的屏幕,所述第二操作为所述用户的手指在所述第二电子设备上的屏幕沿第二方向滑动;The first operation is that the user's finger presses the screen of the second electronic device, and the second operation is that the user's finger slides the screen of the second electronic device along a second direction;
所述第二指令用于指示所述第一电子设备屏幕上显示的列表按照第二方向移动且移动第二距离。The second instruction is used to instruct the list displayed on the screen of the first electronic device to move in a second direction and a second distance.
所述根据所述第二指令将所述光标显示为指向态,且将所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上进行移动,包括:The step of displaying the cursor in a pointing state according to the second instruction and moving at least one of the cursor, a focus on which the cursor currently resides, and a list displayed on the screen of the first electronic device on the screen of the first electronic device includes:
根据所述第二指令将所述光标显示为指向态,且将所述列表在所述第一电子设备的屏幕上按照所述第二方向移动所述第二距离。The cursor is displayed in a pointing state according to the second instruction, and the list is moved by the second distance in the second direction on the screen of the first electronic device.
关于情况二的内容具体可以参考上述图4所示的内容,不再赘述。For details about the second situation, please refer to the content shown in FIG. 4 above, which will not be described in detail.
本申请实施例提供的方案,第二指令所指示的具体内容与第一操作和第二操作有关,若第一操作为用户的手指按住第二电子设备的屏幕,第二操作为所述用户的手指在第二电子设备上的屏幕沿第二方向滑动;则第二指令可以指示第一电子设备屏幕上显示的列表按照第二方向移动且移动第二距离,此时,第一电子设备可以根据第二指令列表在第一电子设备的屏幕上按照第二方向移动第二距离,即第一电子设备可以根据第二指令准确地对第一电子设备屏幕上显示的列表进行移动,可以进一步实现高效交互,提升用户体验。In the solution provided in the embodiment of the present application, the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is the user's finger pressing the screen of the second electronic device, and the second operation is the user's finger sliding the screen of the second electronic device along the second direction; then the second instruction can instruct the list displayed on the screen of the first electronic device to move in the second direction and a second distance. At this time, the first electronic device can move the second distance in the second direction on the screen of the first electronic device according to the second instruction list, that is, the first electronic device can accurately move the list displayed on the screen of the first electronic device according to the second instruction, which can further achieve efficient interaction and improve user experience.
可选地,在一些实施例中,所述第二指令还用于指示处于所述指向态的所述光标呈现第二状态,所述第二状态表征所述列表移动的方向和所述光标形变的幅度。Optionally, in some embodiments, the second instruction is further used to instruct the cursor in the pointing state to present a second state, and the second state represents the direction of movement of the list and the amplitude of the cursor deformation.
本申请实施例提供的方案,第二指令还用于指示处于指向态的光标呈现第二状态,该第二状态表征第一电子设备屏幕上显示的列表移动的方向和光标形变的幅度,通过这样的设计可以更好地向用户反馈交互状态,从而提升用户体验。In the solution provided in an embodiment of the present application, the second instruction is also used to instruct the cursor in the pointing state to present a second state, and the second state represents the direction of movement of the list displayed on the screen of the first electronic device and the amplitude of the cursor deformation. Through such a design, the interaction status can be better fed back to the user, thereby improving the user experience.
情况三:Case 3:
所述第一操作为所述用户的手指在所述第二电子设备的屏幕上进行点击后抬起并在抬起后再次点击,所述第二操作为手持所述第二电子设备的所述用户的手腕向第三方向移动;The first operation is that the user's finger clicks on the screen of the second electronic device, lifts up, and then clicks again after being lifted up, and the second operation is that the user's wrist holding the second electronic device moves in a third direction;
所述第二指令用于指示所述光标按照所述第三方向移动且移动第三距离。The second instruction is used to instruct the cursor to move along the third direction and a third distance.
所述根据所述第二指令将所述光标显示为指向态,且将所述光标、所述光标当前停留的焦点和所述第一电子设备屏幕上显示的列表中的至少一个在所述第一电子设备的屏幕上进行移动,包括:The step of displaying the cursor in a pointing state according to the second instruction and moving at least one of the cursor, a focus on which the cursor currently resides, and a list displayed on the screen of the first electronic device on the screen of the first electronic device includes:
根据所述第二指令将所述光标显示为指向态,且将所述光标和所述光标当前停留的焦点在所述第一 电子设备的屏幕上按照所述第三方向移动所述第三距离。According to the second instruction, the cursor is displayed as a pointing state, and the cursor and the focus currently on which the cursor is located are placed on the first The screen of the electronic device moves the third distance along the third direction.
关于情况三的内容具体可以参考上述图5所示的内容,不再赘述。For details about situation three, please refer to the content shown in FIG. 5 above, which will not be described in detail.
本申请实施例提供的方案,第二指令所指示的具体内容与第一操作和第二操作有关,若第一操作为用户的手指在第二电子设备的屏幕上进行点击后抬起并在抬起后再次点击,第二操作为手持所述第二电子设备的所述用户的手腕向第三方向移动;则第二指令可以指示光标按照第三方向移动且移动第三距离,此时,第一电子设备可以根据第二指令将光标和光标当前停留的焦点在第一电子设备的屏幕上按照第三方向移动第三距离,即第一电子设备可以根据第二指令准确地对光标和光标当前停留的焦点进行移动,可以进一步实现高效交互,提升用户体验。In the solution provided in the embodiment of the present application, the specific content indicated by the second instruction is related to the first operation and the second operation. If the first operation is that the user's finger clicks on the screen of the second electronic device and then lifts up and clicks again after lifting up, and the second operation is that the wrist of the user holding the second electronic device moves to a third direction; then the second instruction can instruct the cursor to move in the third direction and move a third distance. At this time, the first electronic device can move the cursor and the focus where the cursor is currently located on the screen of the first electronic device by a third distance in the third direction according to the second instruction, that is, the first electronic device can accurately move the cursor and the focus where the cursor is currently located according to the second instruction, which can further achieve efficient interaction and improve user experience.
可选地,在一些实施例中,所述第二指令还用于指示处于所述指向态的所述光标呈现第三状态,所述第三状态表征所述光标和所述光标停留的焦点移动的方向。Optionally, in some embodiments, the second instruction is further used to instruct the cursor in the pointing state to present a third state, and the third state represents the direction in which the cursor and the focus where the cursor rests move.
本申请实施例提供的方案,第二指令还包括处于指向态的光标呈现第三状态,该第三状态表征光标和光标停留的焦点移动的方向,通过这样的设计可以更好地向用户反馈交互状态,从而提升用户体验。In the solution provided in the embodiment of the present application, the second instruction also includes the cursor in the pointing state presenting a third state, and the third state represents the direction of movement of the cursor and the focus where the cursor rests. Through such a design, the interaction status can be better fed back to the user, thereby improving the user experience.
可选地,在一些实施例中,当所述用户的手指在所述第二电子设备的屏幕上进行点击后抬起并在抬起后再次点击且再次点击停留的时长大于预设阈值时,所述方法还包括:Optionally, in some embodiments, when the user's finger clicks on the screen of the second electronic device and then lifts up and clicks again after lifting up, and the duration of the second click is greater than a preset threshold, the method further includes:
所述第二电子设备生成第四指令,所述第四指令用于指示所述第一电子设备显示功能框,所述功能框中包括用于控制所述第一电子设备当前显示的画面的功能键;The second electronic device generates a fourth instruction, where the fourth instruction is used to instruct the first electronic device to display a function box, where the function box includes function keys for controlling a screen currently displayed by the first electronic device;
所述第二电子设备向所述第一电子设备发送所述第四指令。The second electronic device sends the fourth instruction to the first electronic device.
所述第一电子设备接收所述第二电子设备发送的第四指令,根据所述第四指令显示功能框,所述功能框中包括用于控制所述第一电子设备当前显示的画面的功能键。The first electronic device receives the fourth instruction sent by the second electronic device, and displays a function box according to the fourth instruction, wherein the function box includes function keys for controlling the screen currently displayed by the first electronic device.
本申请实施例提供的方案,当用户的手指在第二电子设备的屏幕上进行点击后抬起并在抬起后再次点击且再次点击停留的时长大于预设阈值时,第二电子设备可以生成第四指令并发送给第一电子设备,第一电子设备可以根据第四指令显示功能框,该功能框中包括用于控制第一电子设备当前显示的画面的功能键,本申请实施例提供了一种显示功能框的方法,通过这样的设计可以与指向操作或滑动操作区分开,且通过功能键可以调整当前显示的画面。According to the solution provided by the embodiment of the present application, when the user's finger clicks on the screen of the second electronic device and then lifts it, and then clicks again after lifting it, and the duration of the second click is greater than a preset threshold, the second electronic device can generate a fourth instruction and send it to the first electronic device. The first electronic device can display a function box according to the fourth instruction, and the function box includes function keys for controlling the screen currently displayed by the first electronic device. The embodiment of the present application provides a method for displaying a function box, which can be distinguished from a pointing operation or a sliding operation through such a design, and the currently displayed screen can be adjusted through the function keys.
可选地,在一些实施例中,若根据所述第二指令将所述光标移出所述第一电子设备的屏幕,处于所述指向态的所述光标显示第四状态,所述第四状态表征所述光标从所述第一电子设备的屏幕移出的方向和所述光标移出所述第二电子设备的屏幕的幅度;Optionally, in some embodiments, if the cursor is moved out of the screen of the first electronic device according to the second instruction, the cursor in the pointing state displays a fourth state, and the fourth state represents the direction in which the cursor moves out of the screen of the first electronic device and the amplitude by which the cursor moves out of the screen of the second electronic device;
所述方法还包括:The method further comprises:
响应于用户的第四操作,所述第二电子设备生成第五指令,所述第五指令用于指示所述光标移动的方向以使得所述光标显示在所述第一电子设备的屏幕上;In response to a fourth operation of the user, the second electronic device generates a fifth instruction, wherein the fifth instruction is used to indicate a direction in which the cursor moves so that the cursor is displayed on the screen of the first electronic device;
所述第二电子设备向所述第一电子设备发送所述第五指令。The second electronic device sends the fifth instruction to the first electronic device.
所述第一电子设备接收所述第二电子设备发送的第五指令,根据所述第五指令将所述光标显示在所述第一电子设备的屏幕上。The first electronic device receives the fifth instruction sent by the second electronic device, and displays the cursor on the screen of the first electronic device according to the fifth instruction.
本申请实施例提供的方案,若第一电子设备根据第二指令将光标移出第一电子设备的屏幕,处于指向态的光标显示第四状态,该第四状态表征光标从所述第一电子设备的屏幕移出的方向和光标移出所述第二电子设备的屏幕的幅度;第二电子设备可以响应于用户的第四操作生成第五指令并发送给第一电子设备,从而第一电子设备可以根据第五指令将光标重新显示在第一电子设备的屏幕上。在第一电子设备在根据第五指令使得光标重新显示在第一电子设备的屏幕上的过程中,光标形态会随之发生变化,光标形变的程度可以表征第二电子设备的姿态偏出第一电子设备的角度,通过这样的动效设计可以更好地向用户反馈交互状态,从而提升用户体验。According to the solution provided by the embodiment of the present application, if the first electronic device moves the cursor out of the screen of the first electronic device according to the second instruction, the cursor in the pointing state displays the fourth state, and the fourth state represents the direction in which the cursor moves out of the screen of the first electronic device and the amplitude of the cursor moving out of the screen of the second electronic device; the second electronic device can generate a fifth instruction in response to the user's fourth operation and send it to the first electronic device, so that the first electronic device can redisplay the cursor on the screen of the first electronic device according to the fifth instruction. In the process of the first electronic device redisplaying the cursor on the screen of the first electronic device according to the fifth instruction, the shape of the cursor will change accordingly, and the degree of the cursor deformation can represent the angle of the posture of the second electronic device deviating from the first electronic device. Through such a dynamic effect design, the interaction status can be better fed back to the user, thereby improving the user experience.
可选地,在一些实施例中,所述光标和所述光标当前停留的焦点在所述第一电子设备的屏幕上移动的距离与第二电子设备转动的速度有关,所述第一电子设备屏幕上显示的列表在所述第一电子设备的屏幕上移动的距离与所述用户在所述第二电子设备的屏幕上滑动的速度有关。Optionally, in some embodiments, the distance that the cursor and the focus where the cursor currently rests move on the screen of the first electronic device is related to the speed at which the second electronic device rotates, and the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device.
本申请实施例提供的方案,光标和光标当前停留的焦点在第一电子设备的屏幕上移动的距离与第二电子设备转动的速度有关,第一电子设备屏幕上显示的列表在第一电子设备的屏幕上移动的距离与用户在第二电子设备的屏幕上滑动的速度有关,当第二电子设备转动的速度为固定值时,或者,用户在第二电子设备的屏幕上滑动的速度为固定时,通过调整显控比,可以调整光标或列表的移动距离,可以提升用户体验。 In the solution provided by the embodiment of the present application, the distance that the cursor and the focus where the cursor currently rests move on the screen of the first electronic device is related to the rotation speed of the second electronic device, and the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device. When the rotation speed of the second electronic device is a fixed value, or when the sliding speed of the user on the screen of the second electronic device is fixed, the movement distance of the cursor or the list can be adjusted by adjusting the display-control ratio, thereby improving the user experience.
可选地,在一些实施例中,所述第二电子设备转动的速度越快,所述显控比越大,所述光标和/或所述光标当前停留的焦点在所述第一电子设备的屏幕上移动的距离越大;Optionally, in some embodiments, the faster the second electronic device rotates, the greater the display-control ratio is, and the greater the distance that the cursor and/or the focus where the cursor currently stays moves on the screen of the first electronic device is;
所述第二电子设备转动的速度越慢,所述显控比越小,所述光标和/或所述光标当前停留的焦点在所述第一电子设备的屏幕上移动的距离越小。The slower the rotation speed of the second electronic device is, the smaller the display-control ratio is, and the smaller the distance that the cursor and/or the focus where the cursor currently stays moves on the screen of the first electronic device is.
本申请实施例提供的方案,光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离与第二电子设备转动的速度有关,即,第二电子设备转动的速度越快,显控比越大,则光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离越大,第二电子设备转动的速度越慢,显控比越小,则光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离越小。通过根据第二电子设备转动的速度调整显控比进一步调整光标和/或光标当前停留的焦点移动的距离,在一定程度上,可以兼顾移动的速度和精度,具体地,第二电子设备转动的速度越快,则最终光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离越大,可以理解为当第二电子设备转动的速度越快时,优先考虑光标和/或光标当前停留的焦点移动的效率,即将光标和/或光标当前停留的焦点快速移动到相应位置;第二电子设备转动的速度越慢,则最终光标和/或光标当前停留的焦点在第一电子设备的屏幕上移动的距离越小,可以理解为当第二电子设备转动的速度越慢时,优先考虑光标和/或光标当前停留的焦点移动的精度,即将光标和/或光标当前停留的焦点缓慢移动到精确位置。In the solution provided by the embodiment of the present application, the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device is related to the rotation speed of the second electronic device, that is, the faster the second electronic device rotates and the larger the display-control ratio, the greater the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device; the slower the second electronic device rotates and the smaller the display-control ratio, the smaller the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device. By adjusting the display control ratio according to the rotation speed of the second electronic device and further adjusting the distance that the cursor and/or the focus where the cursor is currently resting moves, to a certain extent, the speed and accuracy of the movement can be taken into account. Specifically, the faster the second electronic device rotates, the greater the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device. It can be understood that when the second electronic device rotates faster, the efficiency of the movement of the cursor and/or the focus where the cursor is currently resting is given priority, that is, the cursor and/or the focus where the cursor is currently resting is quickly moved to the corresponding position; the slower the second electronic device rotates, the smaller the distance that the cursor and/or the focus where the cursor is currently resting moves on the screen of the first electronic device. It can be understood that when the second electronic device rotates slower, the accuracy of the movement of the cursor and/or the focus where the cursor is currently resting is given priority, that is, the cursor and/or the focus where the cursor is currently resting is slowly moved to the precise position.
可选地,在一些实施例中,所述用户在所述第二电子设备的屏幕上滑动的速度越快,所述显控比越大,所述第一电子设备屏幕上显示的列表在所述第一电子设备的屏幕上移动的距离越大;Optionally, in some embodiments, the faster the user slides on the screen of the second electronic device, the larger the display-control ratio is, and the greater the distance the list displayed on the screen of the first electronic device moves on the screen of the first electronic device;
所述用户在所述第二电子设备的屏幕上滑动的速度越慢,所述显控比越小,所述第一电子设备屏幕上显示的列表在所述第一电子设备的屏幕上移动的距离越小。The slower the user slides on the screen of the second electronic device, the smaller the display-to-control ratio is, and the smaller the distance the list displayed on the screen of the first electronic device moves on the screen of the first electronic device.
本申请实施例提供的方案,第一电子设备屏幕上显示的列表在第一电子设备的屏幕上移动的距离与用户在第二电子设备的屏幕上滑动的速度有关,即,用户在第二电子设备的屏幕上滑动的速度越快,显控比越大,则列表在第一电子设备的屏幕上移动的距离越大,用户在第二电子设备的屏幕上滑动的速度越慢,显控比越小,则列表在第一电子设备的屏幕上移动的距离越小。通过根据用户在第二电子设备的屏幕上滑动的速度调整显控比进一步调整列表移动的距离,在一定程度上,可以兼顾移动的速度和精度,具体地,用户在第二电子设备的屏幕上滑动的速度越快,则最终列表在第一电子设备的屏幕上移动的距离越大,可以理解为当用户在第二电子设备的屏幕上滑动的速度越快时,优先考虑列表移动的效率,即将列表快速移动到相应位置;用户在第二电子设备的屏幕上滑动的速度越慢,则最终列表在第一电子设备的屏幕上移动的距离越小,可以理解为当用户在第二电子设备的屏幕上滑动速度越慢时,优先考虑列表移动的精度,即将列表缓慢移动到精确位置。In the solution provided by the embodiment of the present application, the distance that the list displayed on the screen of the first electronic device moves on the screen of the first electronic device is related to the speed at which the user slides on the screen of the second electronic device, that is, the faster the user slides on the screen of the second electronic device, the larger the display-control ratio, and the larger the distance that the list moves on the screen of the first electronic device, and the slower the user slides on the screen of the second electronic device, the smaller the display-control ratio, and the smaller the distance that the list moves on the screen of the first electronic device. By adjusting the display-control ratio according to the speed at which the user slides on the screen of the second electronic device, the distance that the list moves on the screen of the first electronic device is further adjusted. To a certain extent, the speed and accuracy of movement can be taken into account. Specifically, the faster the user slides on the screen of the second electronic device, the larger the distance that the final list moves on the screen of the first electronic device. It can be understood that when the user slides on the screen of the second electronic device faster, the efficiency of the list movement is given priority, that is, the list is quickly moved to the corresponding position; the slower the user slides on the screen of the second electronic device, the smaller the distance that the final list moves on the screen of the first electronic device. It can be understood that when the user slides on the screen of the second electronic device slower, the accuracy of the list movement is given priority, that is, the list is slowly moved to a precise position.
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It is understandable that, in order to realize the above functions, the electronic device includes hardware and/or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
在采用对应各个功能划分各个功能模块的情况下,图15示出了上述实施例中涉及的电子设备1500的一种可能的组成示意图,如图15所示,该电子设备1500可以包括:收发模块1510和处理模块1520。In the case of dividing each functional module according to each function, FIG15 shows a possible composition diagram of the electronic device 1500 involved in the above embodiment. As shown in FIG15 , the electronic device 1500 may include: a transceiver module 1510 and a processing module 1520 .
当电子设备1500用于实现图14所述方法实施例中第一电子设备的功能时,所述处理模块1520可以用于支持电子设备1500执行上述步骤1414、1420、1426等,和/或用于本文所描述的技术的其他过程。When the electronic device 1500 is used to implement the function of the first electronic device in the method embodiment described in Figure 14, the processing module 1520 can be used to support the electronic device 1500 to execute the above steps 1414, 1420, 1426, etc., and/or other processes for the technology described in this article.
当电子设备1500用于实现图14所述方法实施例中第二电子设备的功能时,所述收发模块1510可以用于支持电子设备1500执行上述步骤1412、1418、1424等,和/或用于本文所描述的技术的其他过程。When the electronic device 1500 is used to implement the function of the second electronic device in the method embodiment described in Figure 14, the transceiver module 1510 can be used to support the electronic device 1500 to execute the above steps 1412, 1418, 1424, etc., and/or other processes for the technology described in this article.
所述处理模块1520可以用于支持电子设备1500执行上述步骤1410、1416、1422等,和/或用于本文所描述的技术的其他过程。The processing module 1520 may be used to support the electronic device 1500 in executing the above steps 1410 , 1416 , 1422 , etc., and/or other processes for the technology described herein.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。 It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
本实施例提供的电子设备,用于执行上述本申请的方法,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to execute the method of the present application described above, and thus can achieve the same effect as the above-mentioned implementation method.
在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行上述各个单元执行的步骤。存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。In the case of using integrated units, the electronic device may include a processing module, a storage module and a communication module. Among them, the processing module can be used to control and manage the actions of the electronic device, for example, it can be used to support the electronic device to execute the steps performed by the above-mentioned various units. The storage module can be used to support the electronic device to execute stored program codes and data, etc. The communication module can be used to support the communication between the electronic device and other devices.
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图1所示结构的设备。In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1 .
图16示出了上述实施例涉及的电子设备800的另一种可能的组成示意图,如图16所示,该电子设备800可以包括通信单元810、输入单元820、处理单元830、输出单元(或也可以称为显示单元)840、外设接口850、存储单元860、电源870、视频解码器880以及音频解码器890。Figure 16 shows another possible composition diagram of the electronic device 800 involved in the above embodiment. As shown in Figure 16, the electronic device 800 may include a communication unit 810, an input unit 820, a processing unit 830, an output unit (or also called a display unit) 840, a peripheral interface 850, a storage unit 860, a power supply 870, a video decoder 880 and an audio decoder 890.
通信单元810用于建立通信信道,使电子设备800通过所述通信信道以连接至远程服务器,并从所述远程服务器下媒体数据。所述通信单元810可以包括WLAN模块、蓝牙模块、NFC模块、基带模块等通信模块,以及所述通信模块对应的射频(Radio Frequency,简称RF)电路,用于进行无线局域网络通信、蓝牙通信、NFC通信、红外线通信及/或蜂窝式通信系统通信,例如宽带码分多重接入(wideband code division multiple access,W-CDMA)及/或高速下行封包存取(high speed downlink packet access,HSDPA)。所述通信模块810用于控制电子设备中的各组件的通信,并且可以支持直接内存存取。The communication unit 810 is used to establish a communication channel so that the electronic device 800 can connect to a remote server through the communication channel and download media data from the remote server. The communication unit 810 may include communication modules such as a WLAN module, a Bluetooth module, an NFC module, a baseband module, and a radio frequency (RF) circuit corresponding to the communication module, which is used to perform wireless local area network communication, Bluetooth communication, NFC communication, infrared communication and/or cellular communication system communication, such as wideband code division multiple access (W-CDMA) and/or high speed downlink packet access (HSDPA). The communication module 810 is used to control the communication of various components in the electronic device and can support direct memory access.
输入单元820可以用于实现用户与电子设备的交互和/或信息输入到电子设备中。在本申请具体实施方式中,输入单元可以是触控面板,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。The input unit 820 can be used to implement user interaction with the electronic device and/or input information into the electronic device. In the specific implementation of the present application, the input unit can be a touch panel, or other human-computer interaction interfaces, such as physical input keys, microphones, etc., or other external information acquisition devices, such as cameras, etc.
处理单元830为电子设备的控制中心,可以利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储单元内的软件程序和/或模块,以及调用存储在存储单元内的数据,以执行电子设备的各种功能和/或处理数据。如上述步骤1410、1416、1422,或步骤1414、1420、1426等可以通过处理单元1430实现。The processing unit 830 is the control center of the electronic device, and can use various interfaces and lines to connect various parts of the entire electronic device, and execute or execute software programs and/or modules stored in the storage unit, and call data stored in the storage unit to perform various functions of the electronic device and/or process data. For example, the above steps 1410, 1416, 1422, or steps 1414, 1420, 1426, etc. can be implemented by the processing unit 1430.
输出单元840包括但不限于影像输出单元和声音输出单元。影像输出单元用于输出文字、图片和/或视频。在本申请的具体实施方式中,上述输入单元820所采用的触控面板亦可同时作为输出单元840的显示面板。例如,当触控面板检测到在其上的触摸或接近的手势操作后,传送给处理单元以确定触摸事件的类型,随后处理单元根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图16中,输入单元820与输出单元840是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板与显示面板集成一体而实现电子设备的输入和输出功能。例如,所述影像输出单元可以显示各种图形化用户接口以作为虚拟控制组件,包括但不限于窗口、卷动轴、图标及剪贴簿,以供用户通过触控方式进行操作。The output unit 840 includes but is not limited to an image output unit and a sound output unit. The image output unit is used to output text, pictures and/or videos. In a specific embodiment of the present application, the touch panel used by the above-mentioned input unit 820 can also be used as a display panel of the output unit 840 at the same time. For example, when the touch panel detects a touch or proximity gesture operation on it, it is transmitted to the processing unit to determine the type of touch event, and then the processing unit provides a corresponding visual output on the display panel according to the type of touch event. Although in Figure 16, the input unit 820 and the output unit 840 are used as two independent components to realize the input and output functions of the electronic device, in some embodiments, the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device. For example, the image output unit can display various graphical user interfaces as virtual control components, including but not limited to windows, scroll bars, icons and scrapbooks, for users to operate by touch.
存储单元860可用于存储软件程序以及模块,处理单元通过运行存储在存储单元的软件程序以及模块,从而执行电子设备的各种功能应用以及实现数据处理。The storage unit 860 may be used to store software programs and modules. The processing unit executes various functional applications of the electronic device and realizes data processing by running the software programs and modules stored in the storage unit.
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的方法。This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的方法。This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the method in the above-mentioned embodiment.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的方法。In addition, an embodiment of the present application also provides a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the chip executes the methods in the above-mentioned method embodiments.
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功 能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above implementation modes, those skilled in the art can understand that for the convenience and simplicity of description, only the above functions are used. The division of energy modules is illustrated by way of example. In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。 The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (26)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211538582.XA CN118138813B (en) | 2022-12-01 | 2022-12-01 | Cursor control method and electronic device |
| CN202211538582.X | 2022-12-01 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024114770A1 true WO2024114770A1 (en) | 2024-06-06 |
Family
ID=91231281
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/135670 Ceased WO2024114770A1 (en) | 2022-12-01 | 2023-11-30 | Cursor control method and electronic device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN118138813B (en) |
| WO (1) | WO2024114770A1 (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103677240A (en) * | 2012-09-24 | 2014-03-26 | 株式会社理光 | Virtual touch interaction method and equipment |
| CN106326491A (en) * | 2016-09-14 | 2017-01-11 | 广东小天才科技有限公司 | Efficient topic searching method and device |
| CN111935522A (en) * | 2015-01-05 | 2020-11-13 | 三星电子株式会社 | Image display device and method |
| WO2022124561A1 (en) * | 2020-12-08 | 2022-06-16 | 삼성전자 주식회사 | Electronic device control method using plurality of sensors, and electronic device thereof |
| CN115315685A (en) * | 2020-02-03 | 2022-11-08 | 苹果公司 | Cursor and touchscreen user interface integration |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102026728B1 (en) * | 2012-05-02 | 2019-09-30 | 엘지전자 주식회사 | Media system, electronic device and method of providing screen interface feedback |
| CN110633018B (en) * | 2019-07-30 | 2021-04-09 | 华为技术有限公司 | Method, mobile terminal and first system for controlling display of large-screen device |
| CN114035714A (en) * | 2021-09-24 | 2022-02-11 | 武汉联影医疗科技有限公司 | Cursor control method and device, ultrasonic equipment and storage medium |
-
2022
- 2022-12-01 CN CN202211538582.XA patent/CN118138813B/en active Active
-
2023
- 2023-11-30 WO PCT/CN2023/135670 patent/WO2024114770A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103677240A (en) * | 2012-09-24 | 2014-03-26 | 株式会社理光 | Virtual touch interaction method and equipment |
| CN111935522A (en) * | 2015-01-05 | 2020-11-13 | 三星电子株式会社 | Image display device and method |
| CN106326491A (en) * | 2016-09-14 | 2017-01-11 | 广东小天才科技有限公司 | Efficient topic searching method and device |
| CN115315685A (en) * | 2020-02-03 | 2022-11-08 | 苹果公司 | Cursor and touchscreen user interface integration |
| WO2022124561A1 (en) * | 2020-12-08 | 2022-06-16 | 삼성전자 주식회사 | Electronic device control method using plurality of sensors, and electronic device thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118138813A (en) | 2024-06-04 |
| CN118138813B (en) | 2025-10-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7081048B2 (en) | System navigation bar display method, system navigation bar control method, graphical user interface, and electronic devices | |
| CN109445572B (en) | Method for quickly calling up small window in full-screen display video, graphical user interface and terminal | |
| CN110471639B (en) | Display method and related device | |
| EP4131911A1 (en) | Application interface interaction method, electronic device, and computer readable storage medium | |
| CN111669459B (en) | Keyboard display method, electronic device and computer readable storage medium | |
| CN117707349B (en) | Method for detecting pen point direction of handwriting pen, electronic equipment and handwriting pen | |
| CN114764298A (en) | Cross-device object dragging method and device | |
| CN110647274A (en) | Interface display method and device | |
| WO2021000881A1 (en) | Screen splitting method and electronic device | |
| WO2021036571A1 (en) | Desktop editing method and electronic device | |
| CN114579016A (en) | A method, electronic device and system for sharing an input device | |
| US12204919B2 (en) | Interface display method and electronic device | |
| CN110633043A (en) | A split-screen processing method and terminal device | |
| US20230236714A1 (en) | Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device | |
| CN111566606B (en) | Interface display method and electronic equipment | |
| WO2021190524A1 (en) | Screenshot processing method, graphic user interface and terminal | |
| WO2021057699A1 (en) | Method for controlling electronic device with flexible screen, and electronic device | |
| WO2021078032A1 (en) | User interface display method and electronic device | |
| CN110830645A (en) | Operation method and electronic equipment | |
| US20240427486A1 (en) | Icon moving method, related graphical interface, and electronic device | |
| WO2022111690A1 (en) | Method for sharing input device, electronic devices, and system | |
| CN115016697A (en) | Screen projection method, computer device, readable storage medium, and program product | |
| CN114356196A (en) | A display method and electronic device | |
| CN115145515A (en) | Screen projection method and related device | |
| CN120104079A (en) | Multi-device collaboration method and related device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23896912 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |