WO2023001011A1 - Cursor interaction method, electronic device, and medium thereof - Google Patents

Cursor interaction method, electronic device, and medium thereof Download PDF

Info

Publication number
WO2023001011A1
WO2023001011A1 PCT/CN2022/104934 CN2022104934W WO2023001011A1 WO 2023001011 A1 WO2023001011 A1 WO 2023001011A1 CN 2022104934 W CN2022104934 W CN 2022104934W WO 2023001011 A1 WO2023001011 A1 WO 2023001011A1
Authority
WO
WIPO (PCT)
Prior art keywords
cursor
icon
target icon
interface
electronic device
Prior art date
Application number
PCT/CN2022/104934
Other languages
French (fr)
Chinese (zh)
Inventor
范振华
曹原
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023001011A1 publication Critical patent/WO2023001011A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/04817Interaction 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 using icons

Definitions

  • the present application belongs to the field of electronic technology, and in particular relates to a cursor interaction method, an electronic device and a medium thereof.
  • many electronic devices support human-computer interaction, and users can achieve their own goals through the human-computer interaction methods provided by electronic devices.
  • the user can select an icon of a certain application program displayed on the touch screen by moving a finger on the touch screen of the tablet computer to open the application program.
  • a cursor is generally displayed on the touch screen of the tablet computer, which will be synchronized with the movement of the user's finger, so that the user can perceive the selected application through the movement of the cursor.
  • the process of an application is generally displayed on the touch screen of the tablet computer, which will be synchronized with the movement of the user's finger, so that the user can perceive the selected application through the movement of the cursor.
  • an embodiment of the present application provides a cursor interaction method.
  • the electronic device determines the physical properties of each icon, such as the quality, magnetic force, and friction of the icon, according to the pixel attributes of each application program icon in its user interface (UI).
  • UI user interface
  • the cursor determines the physical properties of the cursor, such as mass, magnetism, friction, etc., so that when the cursor is close to an icon, the cursor can be accelerated due to the magnetic force between the cursor and the icon ( Attracted by the icon) to approach the icon, and according to the size of the magnetic force between the cursor and each icon, the icon or cursor will have different deformations.
  • the animation interaction effect in human-computer interaction is more in line with physical laws, thereby improving the user's human-computer interaction experience.
  • the embodiment of the present application provides a cursor interaction method, which can be applied to electronic devices, and the method includes: determining a target icon interacting with the cursor; displaying the physical properties of the cursor and the physical properties of the target icon Animation interaction effect, wherein the physical properties are based on the image information of the cursor and the image information of the target icon, which is beneficial to the preset physical rules and simulates the physical properties of objects in the physical world, and the animation interaction effect shows that the cursor and the target icon are in the The physical phenomena produced by following the corresponding physical laws during the interaction process.
  • the electronic device before displaying the animation interaction effect between the cursor and the icon, the electronic device must first determine which icon the cursor interacts with, and then display the animation interaction effect between the cursor and the icon (ie, the target icon). Moreover, in this application, the animation interaction effect between the cursor and the icon is generated by the electronic device based on the physical properties of the cursor and the icon, so each animation interaction effect must be related to the physical properties of the cursor and the physical properties of an icon. There is a one-to-one mapping relationship between physical attributes. For example, if the physical attribute of the cursor is the physical attribute under the system theme of the bright color theme, the physical attribute of the icon is the physical attribute of the WeChat icon, and the cursor under the system theme is the bright color theme.
  • the animation interaction effect displayed when the WeChat icon interacts is related to the physical properties of the cursor under the bright color theme and the physical properties of the WeChat icon.
  • the physical property refers to the image information of the electronic device based on the icon and the cursor, such as the pixel value of the image corresponding to the icon or the cursor, simulating the physical property of the object in the physical world, such as the mass, magnetism, and friction coefficient of the object in the physical world etc., using the preset physical rules to set the physical attributes for the cursor and icons in the electronic device, the purpose is reflected in two aspects: on the one hand, it is to make the cursor more consistent with the real world in the physical world during the interaction with the icon.
  • the animation interaction effect between the cursor and the icon is a manifestation of the physical phenomenon produced by the cursor and the icon following the corresponding physical laws during the interaction process; on the other hand, it is to make each Icons can have unique physical properties based on their own image information, so that the cursor can produce different animation interaction effects when interacting with different icons.
  • the magnetic attraction force of the icon is also large, so that the deformation of the cursor when it is close to the icon is also large, and the quality of the icon with lighter color is small, the magnetic force is also small, and the cursor is in the process of interacting with it.
  • the magnetic attraction force of the icon is also small, so that the amount of deformation that occurs when the cursor approaches the icon is also small.
  • the electronic device first determines the target icon that interacts with the cursor, and then determines the physical properties of the cursor and the physical properties of the target icon according to the physical properties of the target icon and the physical properties of the cursor.
  • the animation interaction effect related to the property and display the animation interaction effect during the interaction process between the cursor and the target icon.
  • not only the interaction process between the cursor and the icon in the electronic device is more in line with the interaction process of the real object in the physical world, but also different animation interaction effects are provided for the interaction between icons with different physical properties and the cursor, and the cursor is improved.
  • the variety of animation effects in the process of interacting with icons improves the user's interactive experience.
  • the method for determining the target icon for interaction with the cursor includes: setting a hot zone including the icon, and the distance between each boundary of the hot zone and the center of the icon If the distance is greater than the preset distance, when the cursor enters the hot zone, it is determined that the icon in the hot zone is the target icon.
  • the electronic device when the electronic device determines a target icon for interaction with the cursor, it may determine whether the cursor is going to approach the icon according to the distance between the cursor and the icon. Specifically, the electronic device can set a hot zone for the icon, wherein the distance between each boundary of the hot zone and the center of the icon is greater than a preset distance, and when the cursor enters the hot zone, it considers that the cursor is approaching the icon and takes the icon as the target icon . Among them, the preset distance can be dynamically adjusted by the electronic device according to the number of existing icons in the interface of the electronic device.
  • the preset distance can be set smaller at this time, such as 5 pixels, or the preset distance is not set, that is, the edge of the icon image corresponding to the icon is the hot zone At this time, as long as the cursor contacts the edge of the icon image corresponding to the icon, the icon is determined to be the target icon; when the number of icons in the electronic device interface is small, the preset distance can be set larger, such as 10 pixels, so that Better divide the hot zone boundary between icons, and then better judge the target icon that interacts with the cursor. It should be understood that the present application does not limit the manner of how to determine the target icon for interaction with the cursor.
  • the physical properties include mass, magnetic force, and a friction coefficient of an interface where the cursor and the icon are located.
  • the electronic device displays one or more of the following animation interaction effects:
  • the cursor When the cursor is close to the target icon, the cursor accelerates to approach the target icon under the magnetic attraction of the target icon; when the cursor leaves the target icon, the cursor decelerates and moves away from the target icon under the magnetic attraction of the target icon; when the cursor approaches or When the cursor is separated from the target icon, the cursor is deformed under the magnetic attraction of the target icon; when the cursor is close to or separated from the target icon, the target icon is deformed under the magnetic attraction of the cursor; In this case, the target icon tilts toward the direction of the cursor.
  • the above embodiment is an animation interaction effect generated during the interaction between the cursor and a certain icon (target icon) in the electronic device, that is, during the interaction between the cursor and a target icon, the cursor can simultaneously accelerate or decelerate, Animation effects such as deformation of the cursor or icon, tilting of the icon, etc. It should be noted that, in order to facilitate the explanation of the animation interaction effect of the interaction between the cursor and the icon in this application, the following will take the interaction between the cursor and an icon as an example for illustration.
  • the cursor can be Interaction with multiple icons, for example, the cursor enters the hot zone of multiple icons at the same time, in this case, the electronic device can display the animation interaction effect of the cursor interacting with multiple icons at the same time, it should also be understood that the cursor is affected by the The effect of the force is the resultant force of the magnetic attraction of multiple icons acting on the cursor at the same time, and the frictional resistance between the cursor and the interface.
  • the electronic device displays one or more of the following animation interaction effects: when the cursor is close to the target icon, the cursor accelerates towards the target icon under the action of the magnetic force of the target icon, the cursor and frictional resistance; when the cursor leaves the target icon In the case of , the cursor decelerates away from the target icon under the action of the magnetic force of the target icon, the cursor and frictional resistance.
  • the electronic device can set the cursor and icon for the cursor.
  • the friction coefficient between the interface so that when the cursor interacts with the icon, the cursor is also affected by the friction resistance between it and the interface.
  • the electronic device can also set the friction coefficient between it and the interface for the icon, so that the icon is also affected by the friction resistance between it and the interface when it is close to the boundary of the hot zone.
  • the friction coefficient between the cursor and the interface or the friction coefficient between the icon and the interface it is related to the blurring degree of the interface, the blurring degree of the icon, and the blurring degree of the cursor.
  • the blurring degree of the interface is related to the system setting of the electronic device, for example, if the system setting of the electronic device is "frosted", the blurring degree of the interface is relatively high.
  • the image information of the icon includes the pixel value of the icon image corresponding to the icon; and the method further includes: according to the pixel value of the icon image
  • the pixel value of the background color of the interface determines the quality of the icon, and the quality of the icon is positively correlated with the difference between the pixel value of the icon image and the pixel value of the background color of the interface.
  • the electronic device can set the simulated quality for the icon according to the pixel value of the icon image of the icon object, and the pixel value of the icon image is related to the pixel value of the background color of the interface where the icon is located, and the pixel value of the icon image is related to The greater the difference in pixel values of the background color, the greater the quality of the icon.
  • the manner in which the electronic device specifically sets the quality for the icon will be described in detail in the specific embodiments below, and will not be repeated here.
  • the magnetic force of the icon is positively correlated with the mass of the icon.
  • the mass of the icon is positively correlated with the magnetic force of the icon, that is, the greater the mass of the icon, the greater the magnetic force of the icon.
  • the frictional resistance between the cursor and the interface where the icon is located and the quality of the cursor and the friction coefficient between the cursor and the interface where the icon is located Correlation, the friction coefficient between the cursor and the interface is negatively correlated with the pixel value of the interface, and the friction coefficient between the cursor and the interface is a constant greater than 1.
  • the friction resistance experienced by the cursor and the icon during the interaction process is related to the friction coefficient between the cursor and the interface, and the friction coefficient between the cursor and the interface is negatively related to the pixel value of the interface, that is, the electronic device The larger the pixel value of the interface, the smaller the friction coefficient between the cursor and the interface.
  • the pixel value of the electronic device interface is OXFFFFFF, and the electronic device interface is white. At this time, the friction coefficient between the cursor and the interface is the smallest.
  • the electronic device The pixel value of the interface is OXOOOOOO, and the interface of the electronic device is black. At this time, the friction coefficient between the cursor and the interface is the largest.
  • the physical law includes at least one of a friction formula, an acceleration formula, and an elastic force formula.
  • the icons include the icons of the application programs installed on the desktop of the electronic device and the icons on the application program interface during the running of the application programs. icon. It should be understood that since the cursor interaction method of the present application is a physical attribute set by the electronic device for the icon based on the image information of the icon, the physical attribute has nothing to do with whether the icon is installed on the electronic device, and whether the icon is located on the desktop of the electronic device or otherwise. The interface has nothing to do with it. Therefore, the icons in the above embodiments and possible implementations include not only the icons of the application programs installed on the desktop of the electronic device, but also the icons displayed on the application program interface during the running of these application programs. icon.
  • the embodiment of the present application also provides an electronic device, the electronic device includes a memory, which stores computer program instructions; a processor, and the processor and the memory are coupled, and when the computer program instructions stored in the memory are executed by the processor, the The electronic device performs the following operations: determine a target icon interacting with the cursor; display animation interaction effects related to the physical properties of the cursor and the physical properties of the target image, wherein the physical properties are based on the image information of the cursor and the image information of the target image, It is beneficial to the preset physical rules, which are obtained by simulating the physical properties of objects in the physical world, and the animation interaction effect shows the physical phenomena produced by the cursor and the target image following the corresponding physical laws during the interaction process.
  • determining the target icon for interaction with the cursor includes: setting a hot zone including the icon, and the distance between each boundary of the hot zone and the center of the icon is greater than a predetermined distance. Set the distance; when the cursor enters the hot zone, determine the icon in the hot zone as the target icon.
  • the physical properties include mass, magnetic force, and a friction coefficient of an interface where the cursor and the icon are located.
  • the electronic device displays one or more of the following animation interaction effects: When the cursor is close to the target icon, under the magnetic attraction of the target icon, the cursor accelerates to approach the target icon; when the cursor leaves the target icon, the cursor decelerates away from the target icon under the magnetic attraction of the target icon; when the cursor approaches or leaves the target In the case of an icon, the cursor is deformed under the magnetic attraction of the target icon; when the cursor is close to or away from the target icon, the target icon is deformed under the magnetic attraction of the cursor; when the cursor is in contact with the target icon , the target icon tilts in the direction of the cursor.
  • the electronic device displays one or more of the following animation interaction effects including: when the cursor is close to the target icon, the cursor accelerates towards the target icon under the action of the magnetic force of the target icon, the cursor and frictional resistance; In the case of an icon, the cursor decelerates away from the target icon under the action of the magnetic force of the target icon, the cursor and frictional resistance.
  • the image information of the icon includes the pixel value of the icon image corresponding to the icon
  • the method further includes: according to the pixel value of the icon image
  • the pixel value of the background color of the interface determines the quality of the icon, and the quality of the icon is positively correlated with the difference between the pixel value of the icon image and the pixel value of the background color of the interface.
  • the magnetic force of the icon is positively correlated with the mass of the icon.
  • the frictional resistance between the cursor and the interface where the icon is located and the quality of the cursor and the friction coefficient between the cursor and the interface where the icon is located Correlation, the friction coefficient between the cursor and the interface is negatively correlated with the pixel value of the interface, and the friction coefficient between the cursor and the interface is a constant greater than 1.
  • the physical law includes at least one of a friction formula, an acceleration formula, and an elastic force formula.
  • the icons include the icons of the application programs installed on the desktop of the electronic device and the icons on the application program interface during the running of the application programs. icon.
  • the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and it is characterized in that, when the computer program is executed by a processor, any possible solution in the above-mentioned first aspect can be realized.
  • the cursor interaction method in the implementation is characterized in that, when the computer program is executed by a processor, any possible solution in the above-mentioned first aspect can be realized.
  • an embodiment of the present application provides a computer program product that, when the computer program product is run on an electronic device, causes the electronic device to execute the cursor interaction method in any possible implementation manner of the first aspect above.
  • Fig. 1 is a diagram of an application scenario of cursor interaction provided by some embodiments
  • Fig. 2 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments
  • Fig. 3 is another animation interaction effect diagram of the interaction between the cursor and the icon provided by some embodiments.
  • Fig. 4 is a schematic flowchart of an example of generating an interactive animation effect between a cursor and an icon provided by some embodiments;
  • Fig. 5 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments.
  • Fig. 6 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments.
  • Fig. 7 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments.
  • Fig. 8 is a schematic diagram of a physical principle of interaction between a cursor and an icon provided by some embodiments
  • Fig. 9 is a schematic diagram of a physical principle of interaction between a cursor and an icon provided by some embodiments.
  • Fig. 10 is a schematic diagram of a physical principle of interaction between a cursor and an icon provided by some embodiments
  • Fig. 11 is a schematic diagram of a physical principle of interaction between a cursor and an icon provided by some embodiments
  • Fig. 12 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments.
  • Fig. 13 is a schematic flowchart of a method for determining a target icon approached by a cursor provided by some embodiments;
  • Fig. 14 is a schematic diagram of an example of determining the target icon approached by the cursor provided by some embodiments.
  • Fig. 15A is the display and control gain curve of the Windows touch screen
  • Fig. 15B is a Mac touch screen display and control gain curve
  • Fig. 16A is an example of display control gain curve diagram provided by some embodiments.
  • Fig. 16B is a schematic diagram of the relationship between the moving speed of the cursor and the actual input speed of the user provided by some embodiments;
  • Fig. 17 is a schematic diagram of the relationship between the moving distance of the cursor and the speed of the cursor provided by some embodiments;
  • Fig. 18A is a schematic diagram of an example of the relationship between cursor moving distance and cursor speed provided by some embodiments.
  • Fig. 18B is a schematic diagram of an example of the relationship between cursor moving distance and cursor speed provided by some embodiments.
  • Fig. 19A is a schematic diagram of a cursor movement process without Kalman filter processing provided by some embodiments.
  • Fig. 19B is a schematic diagram of a cursor movement process processed by Kalman filtering provided by some embodiments.
  • Fig. 20 is a schematic diagram of the hardware structure of a tablet computer provided by some embodiments.
  • Fig. 21 is a schematic diagram of a software structure of a tablet computer provided by some embodiments.
  • the illustrative embodiments of the present application include, but are not limited to, interactive methods, electronic devices, storage media, and the like.
  • the electronic device will set some animation interaction effects for the human-computer interaction process, so that when the user moves the cursor close to or away from a certain application icon, the cursor will move closer to or away from a certain application icon.
  • the application icon is deformed to indicate to the user that the application icon has been selected or is about to be disengaged.
  • the electronic device when the electronic device is developing the system, it will pre-set the animation interaction effect between the cursor and the icon of the application program on the system desktop, and apply the animation interaction effect on the system desktop application icons, but the preset animation interaction effects have the following defects:
  • the preset animation interaction effects are limited in type, because the preset animation interaction effects do not take into account the characteristics of each application icon, such as each The pixel value of the application icon, which causes the preset animation interaction effect to be essentially the same, that is, the animation interaction effect generated when the cursor interacts with any application icon is similar;
  • the preset animation interaction effect It is limited in number.
  • the animation interaction effect set is generally aimed at the application icon installed on the desktop of the electronic device.
  • the icon in the application program interface generated when an application is running for example, the icon on the interface after a certain program is opened, it does not
  • an animation interaction effect for the cursor to interact with the icon for example, the icon on the interface after a certain program is opened.
  • the user can move the cursor 101 to the icon of the target application program and open the application program.
  • the following animation interaction effect will be produced between the cursor 101 and the icon of the weather application 102 (hereinafter referred to as the weather icon 102):
  • the size of the cursor 101 will change to prompt the user to contact the icon at this time; when the user moves the cursor 101 away from the icon, the size of the cursor 101 will also change. Change, to prompt the user to leave the icon at this time; and after the user moves the cursor 101 and releases it, the time-consuming time for the cursor 101 to approach and select the icon is the same as the time-consuming time for the cursor 101 to leave the icon.
  • the animation interaction effect between the cursor 101 and the weather icon 102 can be divided into: the cursor 101 approaches the weather icon 102 stage, the cursor 101 selects the weather icon 102 stage, and the cursor 101 breaks away from the weather icon 102 stage, wherein, from The time taken from the cursor 101 approaching the weather icon 102 to the cursor 101 selecting the weather icon 102 is t1, the time from the cursor 101 selecting the weather icon 102 to the cursor 101 leaving the weather icon 102 is t2, and t1 is equal to t2. It should be understood that the time during which the user stays the cursor 101 on the icon is not counted here.
  • the cursor 101 is close to the weather icon 102, and contacts with the hot area P 1 edge of the weather icon 102, at this moment, the weather icon 102 will be close to the cursor 101; when the cursor 101 contacts the weather icon 102, the cursor 101
  • the deformation as shown in Figure 2B takes place to remind the user that the weather icon 102 has been touched at this moment; afterward, as shown in Figure 2C, the layer where the cursor 101 is located is hidden behind the layer where the weather icon 102 is located, and the weather icon 102 appears Transform (increase in volume) to prompt the user that the weather icon 102 has been selected at this time.
  • the hot zone P1 refers to the zone where the electronic device considers that the cursor 101 has selected the weather icon 102 when the cursor 101 touches the zone.
  • the animation interaction effect between the cursor 101 and the weather icon 102 is the same as when the user moves the cursor 101 close to the weather icon 102 , but the process is reversed. Specifically, as shown in FIG. 2D, the cursor 101 gradually departs from the weather icon 102; and when the cursor 101 moves to the edge of the hot zone P1, as shown in FIG. 2E, the weather icon 102 returns to the initial size as shown in FIG. 2A, Cursor 101 then completely disengages from weather icon 102 . In this way, the animation interaction effect of the user moving the cursor 101 away from the weather icon 102 is realized, and this process takes time t2, and t1 is equal to t2.
  • the animation interaction effect between the cursor 101 and the weather icon 102 is preset by the electronic device for each application icon on the system desktop, that is, for other applications on the desktop of the electronic device, such as Do it now 105, IG (instagram) icon 106, setting 107 or short message 108 etc., the interactive animation of cursor 101 and aforementioned icon and the interactive animation of cursor 101 and weather icon 102 are consistent;
  • the device is pre-set for the application icon on the system desktop, so it cannot be applied to the icon in the application interface after the user opens an application, for example, when the user uses the DingTalk application 104, the cursor 101 on the desktop
  • the above-mentioned animation interaction effect can be generated when approaching or away from the DingTalk icon 104, but after the DingTalk application 104 is opened, since the electronic device cannot predict the icon type on the DingTalk application 104 interface, the user moves the cursor 101 to approach or When moving away from the icon on the DingTalk application 104 interface, there will no longer be an animation interaction effect
  • the electronic device sets the animation interaction effect between the cursor 101 and the icon, it will display the physical phenomenon of the real world on the man-machine In the interactive interface display, the way of human-computer interaction is more in line with the way of interaction in the real world.
  • the electronic device sets the animation interaction effect between the cursor 101 and the icon, it will display the physical phenomenon of the real world on the man-machine In the interactive interface display, the way of human-computer interaction is more in line with the way of interaction in the real world.
  • the electronic device sets the animation interaction effect between the cursor 101 and the icon, it will display the physical phenomenon of the real world on the man-machine In the interactive interface display, the way of human-computer interaction is more in line with the way of interaction in the real world.
  • the electronic device sets the animation interaction effect between the cursor 101 and the icon, it will display the physical phenomenon of the real world on the man-machine In the interactive interface display, the way of human-computer interaction is more in line with the way of interaction in the real world.
  • This physical phenomenon is manifested in the animation interaction effect set by the electronic device: when the user moves the cursor 101 close to the target icon, the cursor 101 accelerates to approach the target icon under the magnetic force of the target icon; when the user moves the cursor 101 away from the target icon, the cursor 101 101 will slow down under the magnetic force of the target icon.
  • the electronic device determines each application icon corresponding to the physical world based on the characteristics of each application program icon in the electronic device, for example, the color of each application program icon. Based on the physical properties of the application icons such as quality and magnetism, different animation interaction effects for the icons of different application programs installed in the system to interact with the cursor 101 are set based on the physical properties of each application program icon.
  • the electronic device sets the animation interaction effect for the cursor 101 and the icon based on the characteristics of each icon, so, for different application program icons, if the corresponding physical attributes of each application program icon are different, then each application program icon and the cursor 101
  • the animation interaction effect is also different, and it can be understood that the animation interaction effect set based on the characteristics of the application icon has nothing to do with when the electronic device installs the application and whether the icon is generated by an application during operation, so , the animation interaction effect can also be applied to the icon on the application program interface of a certain application when it is running.
  • the electronic device may set different animation interaction effects simulating physical phenomena in the real world when the user moves the cursor 101 close to or away from the weather icon 102 .
  • the animation interaction effect of the interaction between the cursor 101 and the weather icon 102 is as follows: when the cursor 101 is close to an icon with magnetic force, under the action of the magnetic force of the icon, the cursor 101 will accelerate to approach the icon; when the cursor 101 leaves the icon with magnetic force At this time, under the action of the magnetic force of the icon, the cursor 101 will be resisted and decelerate, which causes the time consumption of the cursor 101 to approach the icon to be different from that of leaving the icon. When the icon is displayed, it will be deformed under the action of the icon's magnetic force.
  • the cursor 101 approaches the weather icon 102 and contacts the edge of the hot area P1 of the weather icon 102.
  • the magnetic force between the cursor 101 and the weather icon 102 will make the cursor 101 Accelerate and approach the weather icon 102, on the one hand, as shown in Figure 3B, it will drive the weather icon 102 to move towards the direction where the cursor 101 is located; when the cursor 101 contacts the weather icon 102, the cursor 101 will also deform as shown in Figure 3B , so as to remind the user that the cursor 101 has touched the weather icon 102 at this time; then, as shown in FIG. Continue to approach the edge of the hot zone P 1 under the action of inertia; finally, as shown in FIG. 3D , the weather icon 102 returns to the center of the hot zone P 1 . In this way, an animation interaction effect in which the user moves the cursor 101 to select the weather icon 102 is realized, and this process takes time t3.
  • the animation interaction effect between the cursor 101 and the weather icon 102 is the same as when the user moves the cursor 101 close to the weather icon 102 , but the process is reversed.
  • the weather icon 102 gradually approaches the edge of the hot zone P1 under the magnetic attraction of the cursor 101, and the cursor 101 gradually breaks away from the weather icon 102; and when the cursor 101 appears again, as shown in FIG.
  • the electronic device sets different animation interaction effects for the cursor 101 and each application program icon based on the physical properties of the application program icons, which is more in line with the rules of object interaction in the real world, and can better provide Users bring a good interactive experience.
  • the animation interaction effect displayed when the cursor 101 approaches or departs from a certain application program icon is used as an example for illustration, and the animation interaction effect between the cursor 101 and the application program icon described below is provided by the electronic device. It is generated when the cursor 101 interacts with a certain application program icon for the first time. It can be understood that in practical applications, the cursor 101 will interact with the application program icon many times. Therefore, in order to save power consumption of the electronic device, the electronic device can The animation interaction effect between the set cursor 101 and the icon is stored in the memory of the electronic device, and during the subsequent interaction process between the cursor 101 and the icon, the electronic device can directly obtain the set cursor 101 from the memory The animation interaction effect of interacting with the icon and displaying it.
  • the electronic devices in the above embodiments may be various electronic devices that have the function of displaying desktop icons and supporting cursor interaction
  • electronic devices include but are not limited to laptop computers, desktop computers, tablet computers, mobile phones, server , wearable devices, head-mounted displays, mobile email devices, portable game consoles, portable music players, reader devices, or other electronic devices capable of accessing the Internet.
  • the electronic device 100 is a tablet computer 100 as an example for description below.
  • FIG. 4 is a schematic flowchart of an example of an electronic device generating an animation interaction effect between a cursor and an icon provided by some embodiments. As shown in FIG. 4, method 400 includes:
  • step 402 the image information of the icon image corresponding to the icon is obtained, and the physical attributes of the icon are set according to preset physical rules.
  • the rules for calculating the physical attributes of icons can be preset, and then use the preset physical rules to target image information such as the pattern, color, and coordinates of each pixel in the icon image corresponding to the icon. , set the physical properties corresponding to the icon.
  • the physical properties of an icon may include the quality, magnetism, etc. of the icon.
  • the physical properties of the icon may be set to be similar to those of metal, that is, Set larger quality and magnetic force; and for icons with cartoonish patterns, you can set their physical properties to be close to elastic balls, that is, set smaller quality and magnetic force.
  • the tablet computer 100 acquires the pixel value of the icon image corresponding to the icon, and determines the quality of the icon according to the pixel value of the icon image and the pixel value of the background color of the UI interface.
  • the icon quality can be calculated by the following formula (1).
  • a is the current pixel value of the icon image corresponding to the icon
  • b is the pixel value of the background color of the UI interface
  • the current pixel value of the icon image can be the average value of all the pixel values of the icon image.
  • the tablet computer 100 also needs to use a normalization formula to normalize the unit pixel quality of the icon image obtained by using the formula (1), so as to reduce the order of magnitude of the icon pixel unit quality, which is convenient for subsequent Icon calculations for other physical properties.
  • the above normalization formula (2) can be the following formula:
  • X t is the unit mass of the normalized icon pixel
  • is the preset normalized intermediate value
  • MaxValue is the largest pixel value in the unit pixel in the icon image
  • MinValue is the smallest in the unit pixel in the icon image Pixel values.
  • the tablet computer 100 uses the formula (2) to normalize the result calculated according to the formula (1), the unit mass of the icon pixel whose order of magnitude is reduced can be obtained.
  • the tablet computer 100 uses the summation formula (3) to calculate the sum of the masses of all unit pixels in the icon image to obtain the mass M 1 of the icon (unit: kilogram (kg)).
  • formula (3) can be expressed as:
  • M 1 represents the quality of the icon
  • n represents the number of pixels of the icon image
  • x represents the quality of a unit pixel in the icon image.
  • the tablet computer 100 After obtaining the mass M1 of the icon, the tablet computer 100 will calculate the magnetic force of the icon according to the mass of the icon.
  • the tablet computer 100 can set the quality of the icon to be proportional to the magnetic force of the icon.
  • the magnetic force of the icon can be 20 times the mass of the icon.
  • the magnetic force of the icon is 20M 1 (unit: cattle (N)).
  • the present application does not limit the proportional relationship between the mass of the icon and the magnetic force of the icon.
  • the magnetic force of the icon may be n times the mass of the icon, and n is a constant greater than 0.
  • n may be 2, 3,, 3.5, ..., 10, 11, ..., 21, 22 etc.
  • Step 404 setting physical attributes for the cursor 101 .
  • the tablet computer 100 also needs to set physical properties for the cursor 101 to simulate the real world, and the tablet computer 100 can set different physical properties for the cursor 101 according to different desktop themes.
  • the physical properties of the cursor 101 include the mass, magnetism and the like of the cursor 101 .
  • the quality of the cursor 101 can be preset by the developer according to the system characteristics of the tablet computer 100 .
  • the mass of the cursor 101 can be set according to the system version or system theme.
  • the system theme is night mode. Since the system theme color is dark, the mass of the cursor 101 can be set to a larger value, such as 0.1 kg.
  • the mass of the cursor 101 can be set to a small value, such as 0.01 kg.
  • the tablet computer 100 calculates the magnetic force of the cursor 101 according to the mass of the cursor 101 .
  • the quality of the cursor 101 is directly proportional to the magnetic force of the cursor 101.
  • the magnetic force of the cursor 101 can be 20 times the mass of the cursor 101. Assuming that the mass of the cursor 101 is M 2 (kg), the magnetic force of the cursor 101 is 20M 2 (N). It should be understood that the present application also does not limit the proportional relationship between the mass of the cursor 101 and the magnetic force of the cursor 101 .
  • the tablet computer 100 calculates the coefficient of friction between the cursor 101 and the UI interface according to the quality of the cursor 101 , so as to subsequently calculate the frictional resistance f1 between the cursor 101 and the UI interface.
  • the tablet computer 100 can calculate the coefficient of friction G between the cursor 101 and the UI interface through the following formula (4):
  • the friction conversion coefficient can be set in advance by the research and development personnel, and the purpose is to adjust the order of magnitude of the friction coefficient to a lower order of magnitude.
  • the function of the friction conversion factor is to adjust the n in the friction coefficient 10n to a lower order of magnitude, for example, n is a small value such as 0.1, 1, 2, 3, etc., and OXFFFFFF is the white pixel value. Hexadecimal representation of the result.
  • the hexadecimal representation result of the pixel value of the UI interface background color is OXOOOOOO
  • the hexadecimal representation result of the pixel value of the UI interface background color is OXFFFFFF
  • the friction coefficient G is also positively correlated with the UI interface background ambiguity, that is, the greater the UI interface background ambiguity, the greater the friction coefficient G, and the smaller the UI interface background ambiguity, the greater the friction coefficient G. Also smaller.
  • the user can set the UI interface to the "frosted" mode through the system settings of the tablet computer 100. Assuming that the background color pixel values of the UI interface are the same, then when the UI interface is in the "frosted" mode, the friction coefficient of the UI interface G is larger than the friction coefficient G when the UI interface is in normal mode.
  • Step 406 according to the physical property of the cursor 101 and the physical property of the icon, an animation interaction effect when the cursor 101 interacts with the icon is generated.
  • the tablet computer 100 can set different animation interaction effects for the cursor 101 and icons with different physical attributes according to physical laws. For example, if the quality of the icon is relatively large and the magnetic force is relatively strong, then when the cursor 101 approaches or leaves the icon, the magnetic attraction received will be stronger, and the cursor 101 will approach the icon faster or leave the icon more slowly; The quality of 101 under the system theme is bright color is greater than that under the system theme of dark color, then the cursor 101 touches the icon under the bright color theme, and the tilt of the icon will be smaller than that of the cursor 101 under the dark theme. resulting inclination.
  • the cursor 101 accelerates towards the icon or decelerates away from the icon (refer to FIG. 3); Deformation (see FIG. 6 ) that conforms to physical laws occurs to remind the user that the icon has been selected by the cursor 101 or that the cursor 101 is approaching or moving away from the icon, and it can be understood that when the cursor 101 or the icon is subject to a greater magnetic force, the greater the amount of deformation. or when the user moves the cursor 101 to select an icon, the icon is “pressed” by the cursor 101 to produce a 3D tilt effect as shown in FIG. 7 . Wherein, the animation interaction effect of the interaction between the cursor 101 and the icon will be described in detail below, and will not be repeated here.
  • the animation interaction effect of cursor interaction realized according to the cursor interaction method of the present application will be introduced below with reference to FIGS. 5 to 12 .
  • the animation interaction effect between the above-mentioned cursor 101 and each icon provided by the embodiment of the present application will be introduced in detail below from the perspectives of the time taken for the cursor 101 to approach or move away from the icon, and the resulting deformation.
  • the coin makes contact; the user continues to move the coin upwards, as shown in Figure 8C, when the user moves the coin to a distance of L3 from the magnet, the coin makes contact with the magnet at this time, and as shown in Figure 8D, since the coin is pressed by the user Can't get close to the magnet, so the magnet is close to the coin under the action of the coin's magnetic force.
  • the object T1 will have acceleration, so that the object T1 can accelerate to approach the object T2. If the plane where the object T2 and the object T1 are located is not a smooth plane at this time, then the object T1 is still affected by frictional resistance in the process of approaching the object T2. At this time, the acceleration of the object T1 is determined by the magnetic force of the object T2 received by the object T1 and the frictional resistance between the object T1 and the plane are jointly determined.
  • the process of calculating the acceleration of the cursor 101 relative to the icon is as follows:
  • the tablet computer 100 calculates the coefficient of friction G between the cursor 101 and the background of the UI interface by using the above formula (4).
  • the background color as bright color as an example below
  • the frictional resistance f1 experienced by the cursor 101 can be calculated according to formula (5):
  • g is the gravitational acceleration, generally 10m/s 2 .
  • the cursor 101 when the user moves the cursor 101 to the magnetic force range of the icon, the cursor 101 will accelerate towards the icon with acceleration a1, and it can be understood that when the cursor 101 leaves the icon and continues to move, the cursor 101 will be subjected to the magnetic force of the icon 1.
  • the frictional resistance between the cursor 101 and the interface makes the cursor 101 decelerate and stop. For example, as shown in FIG.
  • the cursor 101 when the user moves the cursor 101 into the magnetic field range of the icon, under the action of the icon magnetic force F1 and frictional resistance f, the cursor 101 will have an acceleration a 1 in the same direction as the cursor 101 moves, and the acceleration a 1 The cursor 101 can be accelerated to approach the icon, and when the user moves the cursor 101 away from the icon, under the action of the icon magnetic force F1 and frictional resistance f, the cursor 101 will also have a certain acceleration that is opposite to the direction of the cursor 101, so that the cursor 101 The speed away from the icon gradually decreases and eventually stops.
  • the electronic device can set the icon to be not completely fixed, that is, the icon can approach the cursor 101 under the action of the cursor 101 , and, when the cursor 101 leaves the icon or selects the icon, the icon returns to its original position. That is, the electronic device sets one end of the icon to be fixedly connected to a virtual spring, such as shown in FIG.
  • the effect produces animation interaction effects such as rebound and jump, and finally returns to the original position under the action of the virtual spring force.
  • the elastic force of the spring follows Hooke's law, and it should be understood that this application does not limit the animation interaction effect between the icon and the spring based on the elastic force of the spring.
  • each icon since each icon has magnetic force, there will be an attractive force between the cursor 101 and each icon, so that when the cursor 101 approaches or moves away from the icon, it will be deformed by the magnetic force of the icon.
  • the cursor 101 is at the edge of the hot zone P3 of the WeChat icon 103 at this time; and when the user continues to move the cursor 101 close to the WeChat icon 103, as shown in Figure 5C, the layer where the cursor 101 is located is hidden in the lower layer of the layer where the WeChat icon 103 is located, and the volume of the WeChat icon 103 will become larger.
  • the above-mentioned embodiments have introduced the process that the cursor 101 deforms due to the gravitational force of the icon when the cursor 101 approaches or leaves the icon. 101 deformed under the gravitational force.
  • the cursor 101 is at the edge of the hot zone P 4 of the DingTalk icon 104 at this time;
  • the deformation as shown in Figure 6B will occur; and when the user moves the cursor 101 and continues to approach the DingTalk icon 104, the layer where the cursor 101 is located is hidden under the layer where the DingTalk icon 104 is located, and the visual effect at this time is
  • the cursor 101 is integrated with the DingTalk icon 104, and the DingTalk icon 104 is deformed as shown in Figure 6C. It can be seen that the "volume" of the DingTalk icon 104 in Figure 6C is larger than that of the DingTalk icon 104 in Figure 6A "volume".
  • the DingTalk icon 104 When the user moves the cursor 101 away from the DingTalk icon 104, the DingTalk icon 104 will follow the cursor 101 and move to the edge of the hot zone P4 as shown in FIG. Detach, and under the gravitational force of the cursor 101, the DingTalk icon 104 will deform as shown in Figure 6E; then when the cursor 101 is completely detached from the DingTalk icon 104, as shown in Figure 6F, the DingTalk icon 104 will recover to the initial shape as shown in Figure 6A.
  • the cursor 101 and the icon have attributes similar to objects in the real physical world.
  • the Y object when an X object is used to press an Y object, the Y object generally deforms or tilts toward the pressing direction.
  • the surface of the Y object A concave area is formed as shown in FIG. 11B , or the Y object is tilted toward the pressing direction, so in some embodiments, the icon can also have a 3D tilting effect as shown in FIG. 7 due to being selected by the cursor 101 .
  • the cursor 101 is now at the edge of the hot zone P5 of the do-now icon 105.
  • the icon 105 will be deformed as shown in Figure 7C, that is, the icon icon The "volume" of the 105 will increase.
  • a corresponding light effect may occur on the icon to remind the user that the icon has been selected.
  • the cursor 101 is at the edge of the hot zone P6 of the Instagram icon 106 (hereinafter referred to as "IG icon").
  • the cursor 101 When the user continues to move the cursor 101 and contacts the IG icon 106, the cursor 101 will Generate a light effect to prompt the user to select the IG icon 106, and the light effect of the cursor 101 will be reflected through the IG icon 106, providing the user with a visual effect as shown in Figure 12B; when the user continues to move the cursor 101, in order to The user shows the movement track of the cursor 101, the cursor 101 will continue to emit light and move under the IG icon 106 (as shown in Figure 12C to Figure 12D), the visual effect at this time is that the user can observe the movement of the cursor 101 through the IG icon 106 track, so that the user can determine the position of the cursor 101 and perform subsequent operations, for example, the user moves the cursor 101 to the hot zone P 6 .
  • the above is the animation interaction effect generated when the user uses the cursor 101 to approach or leave the icon provided by the cursor interaction method of the present application.
  • the human-computer interaction mode of the user through the cursor 101 and the icon is closer to the user's interaction mode in the physical world, and the user's human-computer interaction experience is improved.
  • the cursor interaction method of the present application since the image information of each icon is different, the physical attributes of each icon determined based on the image information are also different, and the magnetic attraction force generated between the cursor 101 and each icon is also different. are not the same, so when the user moves the cursor 101 close to or away from different application program icons in the interface shown in FIG. Therefore, compared with the single animation interaction effect preset by the electronic device mentioned above, the cursor interaction method of the present application can provide users with a better human-computer interaction experience.
  • the tablet computer 100 needs to determine the target icon that the user moves the cursor 101 close to, and then determine the animation associated with the cursor 101 and the target icon. interaction effect, and display the animation interaction effect during the interaction process between the cursor 101 and the target icon.
  • the method for the tablet computer 100 to determine the target icon approached by the cursor 101 and display the corresponding animation interaction effect according to the cursor 101 and the target icon is shown in FIG. 13 , the method 1300 includes:
  • Step 1302 acquiring the distance between the cursor 101 and the icon.
  • the tablet computer 100 needs to determine whether the cursor 101 is going to approach the icon according to the distance between the cursor 101 and the icon.
  • the tablet computer 100 can obtain the distance between the cursor 101 and the center of the icon as a sign for judging whether the cursor 101 is close to the icon, or can obtain the distance between the cursor 101 and the boundary of the hot zone where the icon is located as a sign for whether the cursor 101 is close to the icon . For example, as shown in FIG. 14A , the tablet computer 100 can determine whether the cursor 101 is close to the cursor 101 according to whether the distance L X1X3 between the center point Px3 of the cursor 101 and the center point Px1 of the WeChat icon 103 is greater than or equal to a preset value.
  • the cursor 101 may also determine the target icon approached by the cursor 101 according to the distance between the center point Px3 of the cursor 101 and the edge of the hot zone of the icon. Specifically, as shown in FIG. 14B , the tablet computer 100 can determine whether the cursor 101 is close to the cursor 101 according to whether the distance Lx1 between the center point Px3 of the cursor 101 and the hot zone P3 of the WeChat icon 103 is greater than or equal to a preset value.
  • Step 1304 according to the distance between the cursor 101 and the icon, determine whether the icon is a target icon.
  • the tablet computer 100 will determine whether the icon is a target icon approached by the cursor 101 according to the distance between the cursor 101 and an icon. Specifically, in some embodiments, the tablet computer 100 judges whether the distance between the cursor 101 and the icon is greater than or equal to a preset value, and if the distance between the cursor 101 and the icon is greater than or equal to the preset value, determines whether the icon is the target icon approached by the cursor 101 . For example, take the distance L X1X3 between the center point Px3 of the cursor 101 and the center point Px1 of the WeChat icon 103 shown in FIG.
  • the WeChat icon 103 is determined as the target icon. For another example, take the distance between the center point Px3 of the cursor 101 shown in FIG. If the edge distance Lx1 is greater than a preset value (for example, 5 pixels), then the WeChat icon 103 is determined as the target icon.
  • Step 1306 acquire the animation interaction effect related to the physical properties of the cursor 101 and the target icon, and display the animation interaction effect.
  • the tablet computer 100 determines the target icon, it will obtain the animation interaction effect related to the physical properties of the cursor 101 and the target icon from the animation interaction effect between the cursor 101 and the icon generated according to the above method 400, and display the animation interaction effect on the cursor 101 During the interaction with the target icon, the animation interaction effect is displayed.
  • the manner in which the tablet computer 100 obtains the animation interaction effect related to the cursor 101 and the icon may be:
  • the tablet computer 100 After the tablet computer 100 generates the animation interaction effect between the cursor 101 and an icon for the first time, associate the animation interaction effect with the physical properties of the cursor 101 and the physical properties of the icon, and associate the animation interaction effect with the cursor 101
  • the association between the physical attributes and the physical attributes of the icon, as well as the animation interaction effect are stored in the memory of the tablet computer 100, so that when the tablet computer 100 obtains the animation interaction effect of the interaction between the cursor 101 and an icon,
  • the animation interaction effect may be determined and displayed according to the association relationship between the animation interaction effect and the physical properties of the cursor 101 and the physical properties of the icon.
  • the above association relationship may be the number corresponding to the physical property of the cursor 101, the number corresponding to the physical property of the icon, and the number of the animation interaction effect, wherein the number of the physical property of the cursor 101 may correspond to the system theme of the tablet computer 100 , for example, assuming that the physical property number of the cursor 101 is 001, it indicates the physical property of the cursor 101 under the bright color theme; the physical property number of the icon can correspond to the coordinates of the center point of the icon, for example, the coordinates of the center point of the WeChat icon 103 are (100, 140) Then the physical attribute number of the icon is 100-140; the numbering of the animation interaction effect can correspond to the order in which the tablet computer 100 generates the animation interaction effect.
  • the serial number is 000013, so the animation interaction effect between the cursor 101 and the WeChat icon 103, and the relationship between the physical properties of the cursor 101 and the WeChat icon 103 is: 001-100-140-000013.
  • the tablet computer 100 determines that the target icon approached by the cursor 101 is the WeChat icon 103, it only needs to follow the physical attribute numbers 100-140 of the WeChat icon 103 and the physical attribute number 001 of the cursor 101 to determine the cursor 101 and the WeChat icon from the memory.
  • the animation interaction effect between the icons 103 is 001-100-140-000013.
  • the user may pass through multiple icons when moving the cursor 101, so that the distance between the cursor 101 and the multiple icons is greater than or equal to a preset value.
  • the tablet computer 100 will determine that the multiple icons are all targets icon, and then simultaneously display animation interaction effects between multiple icons and the cursor 101 .
  • the distance K X1X3 between the center point Px3 of the cursor 101 and the center point Px1 of the Wechat icon 103 and the distance LX1X2 between the center point Px2 of the icon 105 to be done soon are all greater than the preset value (for example, 5 pixels), so when the cursor 101 is located at the position shown in FIG.
  • the moving speed of the cursor 101 may be 30 pixels/8 milliseconds, and for example, the user sometimes stops moving the cursor 101, but the cursor 101 will continue to move toward In this case, the user cannot predict the final position of the cursor 101 according to the actual speed of moving the cursor 101, so that in the above situation, the user may touch an icon by mistake when moving the cursor 101, for example, in In the interface shown in FIG. 1 , when the user quickly slides the cursor 101 to get close to the weather icon 102, since the speed at which the cursor 101 moves on the interface may be greater than the actual speed at which the user moves the cursor 101, the cursor 101 may cross the weather icon 102 at this time. , and stay on the short message icon 108 at last.
  • the tablet computer 100 can dynamically adjust the moving speed of the cursor 101 on the tablet computer 100 according to the speed at which the user moves the cursor 101 .
  • the user can control the final stop position of the cursor 101 to avoid the above situation. For example, when the user needs to approach a certain icon, the cursor 101 can move faster to help the user approach the target icon, and when the user is about to approach a certain icon, the cursor 101 can move slowly to help the user accurately select the target icon.
  • the tablet computer 100 can dynamically adjust the moving speed of the cursor 101 by setting the display control gain.
  • the tablet computer 100 can select a larger display control gain, so that the actual speed at which the user moves the cursor 101 can be converted into a larger movement of the cursor 101 Speed, so that the cursor 101 can approach the icon faster; when the user needs to move the cursor 101 to select an icon, the tablet computer 100 can select a smaller display control gain, so that the actual speed of the user moving the cursor 101 is the same as that of the cursor 101.
  • the moving speed on the tablet computer 101 can be approached as soon as possible, so that the user can predict the moving speed of the cursor 101 on the tablet computer 100 according to the actual speed of the moving cursor 101 , and then realize precise control of the position of the cursor 101 .
  • FIG. 15A is a display and control gain curve of a Windows touch screen.
  • the display and control gains of a Windows touch screen can be divided into “fast”, “medium”, and “slow” grades, corresponding to the curves s1, s2, and s3 shown in FIG. 15A. It can be seen from FIG.
  • the tablet computer 100 dynamically adjusts the display control gain according to the speed at which the user moves the cursor 101 to adjust the moving speed of the cursor 101 on the touch screen, the speed at which the user moves the cursor 101 has a certain effect. Only when the speed at which the user moves the cursor 101 exceeds 5 pixels per millisecond, the tablet computer 100 will adjust the display control gain level of the touch screen to "fast", so that the speed at which the cursor 101 moves on the touch screen will also change accordingly. fast, and when the speed of the user moving the cursor 101 is less than 5 pixels per millisecond, the tablet computer 100 will not adjust the display control gain level to "fast". Moreover, the display control gains shown in FIG.
  • the speed at which the cursor 101 moves on the touch screen will not be greater than the speed at which the user actually moves the cursor 101 . It can be understood that when the user moves the cursor 101 close to the icon, he of course hopes that the cursor 101 can approach the icon as quickly as possible, and based on the display control gain curve shown in FIG. The speed of actually moving the cursor 101 can only be increased at the same time, and even so, the speed of the cursor 101 moving on the touch screen will not exceed the speed at which the user actually moves the cursor 101, which obviously does not meet the user's expectations.
  • Figure 15B shows the display control gain curve of the Mac touch screen.
  • the display control gain of the Mac touch screen can also be divided into “fast”, “medium” and “slow” grades, corresponding to the curve s4, curve s5 and curve s6 shown in Figure 15B respectively , the difference from the display control gain curve of the Windows touch screen is that the detection accuracy of the Mac touch screen is higher than that of the Windows touch screen. It can be seen from FIG. 15B that no matter the display control gain level of the Mac touch screen is "fast”, “medium” or “slow", as long as the user actually moves the cursor 101 at a speed greater than 0, the cursor 101 will have a speed on the touch screen.
  • the display and control gains that can be adjusted by the Mac touch screen are all less than or equal to 1, that is, for the Mac touch screen, the speed at which the cursor 101 moves on the Mac touch screen will not exceed the actual speed at which the user moves the cursor 101 . Understandably, similar to the Windows touch screen in FIG. 15A, this also does not meet user expectations.
  • the present application will combine the friction resistance and the magnetic attraction force of the icon during the movement of the cursor 101 calculated in the above method 400 to design the tablet computer 100 as shown in Figure 16 below.
  • Display and control gain curve wherein, FIG. 16A is the display and control gain curve of the touch screen of the tablet computer 100, and FIG. 16B is corresponding to different display and control gain levels in FIG. speed) curves.
  • FIG. 16A is the display and control gain curve of the touch screen of the tablet computer 100. It can be seen from FIG. 16 that the detection accuracy of the touch screen of the tablet computer 100 is relatively high. An operation by the user to move the cursor 101 such that the cursor 101 has a speed as shown in FIG. 16B can be detected.
  • the display and control gain grade of the touch screen of the tablet computer 100 is "slow"
  • the display and control gain is a fixed value of 0.25, that is, the moving speed of the cursor 101 is always equal to the actual moving speed of the cursor 101 by the user.
  • the user can predict the position where the cursor 101 will be moved by the speed at which the cursor 101 is moved, so that the user can manipulate the cursor 101 more accurately, especially when the user moves the cursor 101 When selecting certain icons or function options.
  • the user when the user moves the cursor 101 to select between the weather icon 102 and the short message icon 108, the user can control the cursor 101 more precisely to select between the weather icon 102 and the short message icon 108. to make a choice between clicks without accidental clicks.
  • the tablet computer 100 can change the moving speed of the cursor 101 from 375 pixels per millisecond to "fast". Adjusted to 0 pixels per millisecond, the tablet computer 100 can also adjust the moving speed of the cursor 101 from 180 pixels per millisecond to 0 pixels per millisecond when the display control gain level is "medium”, and the tablet computer 100 can also adjust the speed of the cursor 101 to 0 pixels per millisecond. When the gain control level is set to "slow", the moving speed of the cursor 101 is adjusted from 30 pixels per millisecond to 0 pixels per millisecond.
  • the display control gain of the touch screen of the tablet computer 100 may be greater than 1, that is, the speed at which the cursor 101 moves on the touch screen of the tablet computer 100 may be greater than the speed at which the user actually moves the cursor 101 .
  • FIG. 16B it can be seen from FIG. 16B that when the user actually moves the cursor 101 at the same speed, the higher the display control gain level, the faster the cursor 101 moves.
  • the moving speed of the cursor 101 is 357 pixels per 8 milliseconds
  • the moving speed of the cursor 101 is 180 pixels per 8 milliseconds.
  • the moving speed of the cursor 101 is 30 pixels every 8 milliseconds.
  • the tablet computer 100 can dynamically adjust the display control gain level of the touch screen of the tablet computer 100 according to the speed at which the user actually moves the cursor 101 , so that the user can control the cursor 101 more precisely. For example, in some embodiments, when the cursor 101 is far away from the target position, the user will move the cursor 101 faster so that it can approach the target position as soon as possible. is "fast", so that when the user moves the cursor 101 at the same speed, the cursor 101 can have a faster speed to get closer to the target position; when the cursor 101 is closer to the target position, the user moves the cursor 101 The speed will be slowed down so that the cursor 101 can be controlled to accurately reach the target position. At this time, the tablet computer 100 can adjust the display control gain level of the touch screen to "slow", so that the user can control the cursor 101 more precisely.
  • the above-mentioned tablet computer 100 touch screen display and control gain levels “fast”, “medium”, “slow” and the numbers of corresponding curves a, b, c are only exemplary. In other embodiments, the tablet computer 100 There can be more display and control gain grades on the touch screen, and correspondingly, more display and control gain curves. Moreover, it is also exemplary that the grades of the above-mentioned display control gains are expressed as “fast”, “medium” and "slow”.
  • the grades of display control gain can also be expressed as numbers, letters, etc., for example, “fast The display control gain level of the "grade is expressed as "5", the display control gain level of the "medium” level is expressed as “0”, the display control gain level of the "slow” level is expressed as "-5" and so on. There is no limit to the number and representation of the gain levels displayed and controlled on the touch screen of the computer 100 .
  • the initial speed of the cursor 101 depends on the speed when the user moves the cursor 101 and releases the cursor 101, if the speed when the user releases the cursor 101 is different, the cursor 101 is affected by the same frictional resistance f1, and the final staying position will be different. Not the same. Specifically, a schematic diagram of the relationship between the speed of the cursor 101 and the distance moved by the cursor 101 is shown in FIG. After being released at the maximum speed, the final moving distance of the cursor 101 will be different due to the difference in its maximum speed. For example, when the user releases the cursor 101, the speed of the cursor 101 reaches the maximum value.
  • Curves (a), (b) The maximum speed of the cursor 101 corresponding to (c) is va, vb, vc respectively, and the moving distance of the cursor 101 is Sa, Sb, Sc. As can be seen from FIG. 17, vc is greater than va than vb, and Sc is greater than Sa than Sb.
  • the reporting position of the cursor 101 is discontinuous.
  • the tablet computer The distance intervals of the cursor 101 displayed on the display screen 100 are h1, h2, and h3 respectively, and it can be seen from the figure that h1, h2, and h3 are not equal.
  • the distance of the cursor 101 on the display screen of the tablet computer 100 can be as shown in FIG.
  • Kalman filtering (Kalman filtering) operation may be performed on the position of the cursor 101 to make the position of the cursor 101 more precise, so that the reported position displayed on the tablet computer 100 is more accurate.
  • X k is the system state of the tablet computer 100 at time k
  • U k is the user’s control amount of the cursor 101 at time k
  • a and B are input and output system parameters of the tablet computer 100 of the tablet computer 100
  • Z k is time k
  • H is the parameter of the tablet computer 100 input and output system
  • W k represents the noise in the moving process of the cursor 101
  • V k represents the noise of the measurement process
  • the covariance of W k is Q
  • the V k is Covariance is R
  • K-1) is the result predicted by the previous state
  • K-1) is the optimal result of the previous state
  • U k is the user's control amount in the current state
  • U k is 0.
  • the user's control amount refers to the user's control amount such as the strength and duration of moving the cursor 101 .
  • K) X (K
  • I is a matrix whose values are all 1.
  • K) is P (K-1
  • Fig. 20 shows a schematic structural diagram of an example of a tablet computer 100 provided by some embodiments.
  • the tablet computer 100 may include a processor 110, a screen 111, an internal memory 120, an interface module 130, a power module 140, a wireless communication module 150, a mobile communication module 160, an audio module 170, a camera 180, and a touch sensor 190.
  • the structure shown in the embodiment of the present application does not constitute a specific limitation on the tablet computer 100 .
  • the tablet computer 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange different components.
  • the illustrated components can be realized 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 (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the processor 110 may execute a method for displaying an interface of an application.
  • the screen 111 is used to display images, videos and the like.
  • the tablet computer 100 can dynamically adjust the positions of the display elements in the display interface of the application according to the size of the display area of the display interface of the application on the screen 111 .
  • the internal memory 120 may be used to store computer-executable program code, which includes instructions.
  • the internal memory 120 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the tablet computer 100 .
  • the display style parameters of the application, the layout rules of the display elements in the display interface of the application, and the display style models of the display elements may be stored in the internal memory 120 .
  • the layout rules here are used to configure the default display interface of the application.
  • the interface module 130 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the tablet computer 100.
  • the external memory card communicates with the processor 110 through the interface module 130 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the power module 140 receives the input of the battery, and provides power for the processor 110, the internal memory 120, the display screen 111 and so on.
  • the wireless communication module 150 can provide applications on the tablet computer 100 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (blue tooth, BT), global navigation, etc. Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • wireless local area networks wireless local area networks, WLAN
  • wireless fidelity wireless fidelity, Wi-Fi
  • Bluetooth blue tooth, BT
  • global navigation etc.
  • Satellite system global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the mobile communication module 160 can provide wireless communication solutions including 2G/3G/4G/5G applied on the tablet computer 100 .
  • the tablet computer 100 realizes the display function through the GPU, the display screen 111 , and the application processor.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • the tablet computer 100 can realize the shooting function through the camera 180 and the application processor.
  • the touch sensor 190 is also called “touch device”.
  • the touch sensor 190 may be disposed on the screen 111, and the touch sensor 190 and the screen 111 constitute a touch screen, also called “touch screen”.
  • the touch sensor 190 is used to identify the user operation performed by the user on the screen 111 of the tablet computer 100 and obtain physical data of the user operation, for example, the physical data includes the force and direction of the user operation, etc. .
  • FIG. 21 is a block diagram of the software structure of the tablet computer 100 according to the embodiment of the present invention.
  • the tablet computer 100 can be divided into application program layer, application program framework layer, Android runtime (Android runtime) and system library, and kernel layer.
  • the application program layer may include a series of application program packages.
  • the application package may include application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application program package may include a gallery application and the like.
  • Application framework layers can include view systems, gesture recognition systems, and more.
  • the gesture recognition system is used to recognize the user's operation performed on the gallery application on the screen of the tablet computer 100 .
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build the display interface of the application.
  • the display interface may be composed of one or more display elements, where the display elements refer to the elements in the display interface of the application on the screen of the electronic device.
  • display elements may include buttons, text, pictures, pop-up windows, menus, title bars, lists, or search boxes.
  • the display interface of the application may include at least one display element.
  • the view system can be used to implement the layout scheme of the display interface of the application of the present application.
  • the view system can be based on the display area of the display interface of the application on the screen of the tablet computer 100 size, dynamically adjust the position of the display elements in the display interface; at the same time, the view system can also configure the display style model for the application's display interface, and when the application starts, the view system uses the application's display style parameters to calculate through the display style model The display effect of the display elements in the display interface.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the embodiment of the present application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and operable on the at least one processor, and the processor executes The computer program implements the steps in any of the above method embodiments.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.
  • An embodiment of the present application provides a computer program product.
  • the computer program product When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the foregoing method embodiments when executed.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • all or part of the processes in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in computer-readable storage media.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the computer-readable medium may at least include: any entity or device capable of carrying computer program codes to a photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • a photographing device/terminal device a recording medium
  • a computer memory a read-only memory (ROM), a random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunication signals
  • software distribution media such as U disk, mobile hard disk, magnetic disk or optical disk, etc.
  • computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.
  • the disclosed device/network device and method may be implemented in other ways.
  • the device/network device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in 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 or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the term “if” may be construed depending on the context as “when” or “once” or “in response to determining” or “in response to detecting” .
  • the phrase “if determined” or “if [the described condition or event] is detected” may be construed, depending on the context, to mean “once determined” or “in response to the determination” or “once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
  • references to "one embodiment” or “some embodiments” or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the technical field of electronics, and in particular to a cursor interaction method, an electronic device, and a medium thereof. In the cursor interaction method of the present application, an electronic device determines, according to pixel attributes of each application program icon in a user interface (UI) of the electronic device, physical attributes of each icon, for example, mass, magnetic force, and other physical attributes of the icon, and determines physical attributes such as mass and magnetic force of a cursor and a friction coefficient between the cursor and the interface according to the size, color, and shape of the cursor; and therefore, the electronic device can generate and display different animation interaction effects in an interaction process of the cursor and different icons according to the physical attributes of the cursor and the different icons, such that the animation interaction effects in human-computer interaction better conforms to a physical rule, a human-computer interaction process is more appealing, and the human-computer interaction experience of a user is further improved.

Description

光标交互方法、电子设备及其介质Cursor interaction method, electronic device and medium thereof
本申请要求于2021年07月20日提交中国专利局、申请号为202110823307.1、申请名称为“光标交互方法、电子设备及其介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110823307.1 and the application name "cursor interaction method, electronic equipment and its medium" submitted to the China Patent Office on July 20, 2021, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请属于电子技术领域,尤其涉及一种光标交互方法、电子设备及其介质。The present application belongs to the field of electronic technology, and in particular relates to a cursor interaction method, an electronic device and a medium thereof.
背景技术Background technique
目前很多电子设备都支持人机交互,用户可以通过电子设备提供的人机交互方式实现自己的目的。例如,用户可以通过在平板电脑的触摸屏上,移动手指选中显示在触摸屏上的某一个应用程序的图标,以打开该应用程序。在此过程中,为了让用户能够感知到选中某个应用程序的过程,平板电脑触摸屏上一般会显示光标,该光标将同步于用户移动手指的动作,以使用户能够通过光标的移动来感知选中某个应用程序的过程。At present, many electronic devices support human-computer interaction, and users can achieve their own goals through the human-computer interaction methods provided by electronic devices. For example, the user can select an icon of a certain application program displayed on the touch screen by moving a finger on the touch screen of the tablet computer to open the application program. During this process, in order to allow the user to perceive the process of selecting an application, a cursor is generally displayed on the touch screen of the tablet computer, which will be synchronized with the movement of the user's finger, so that the user can perceive the selected application through the movement of the cursor. The process of an application.
发明内容Contents of the invention
为了带给用户更多样、更具趣味的人机交互体验,本申请实施例提供了一种光标交互方法。在本申请实施例的光标交互方法中,电子设备根据其用户界面(user interface,UI)中各个应用程序图标的像素属性,确定每个图标的物理属性,例如是该图标的质量、磁力、摩擦力等物理属性,同时根据光标的大小、颜色以及形状确定光标的质量、磁力、摩擦力等物理属性,使得光标在靠近某个图标时,由于光标与图标之间的磁力作用,光标能够加速(被图标吸引)靠近图标,并根据光标与每个图标之间磁力的大小,使得图标或光标产生不同的形变。通过这种方式,使得人机交互中的动画交互效果更符合物理规律,进而提高用户的人机交互体验。In order to bring more diverse and more interesting human-computer interaction experiences to users, an embodiment of the present application provides a cursor interaction method. In the cursor interaction method of the embodiment of the present application, the electronic device determines the physical properties of each icon, such as the quality, magnetic force, and friction of the icon, according to the pixel attributes of each application program icon in its user interface (UI). At the same time, according to the size, color and shape of the cursor, determine the physical properties of the cursor, such as mass, magnetism, friction, etc., so that when the cursor is close to an icon, the cursor can be accelerated due to the magnetic force between the cursor and the icon ( Attracted by the icon) to approach the icon, and according to the size of the magnetic force between the cursor and each icon, the icon or cursor will have different deformations. In this way, the animation interaction effect in human-computer interaction is more in line with physical laws, thereby improving the user's human-computer interaction experience.
下面介绍本申请的技术方案。The technical solution of the present application is introduced below.
第一方面,本申请实施例提供了一种光标交互方法,该方法可应用于电子设备,方法包括:确定与光标产生交互的目标图标;显示与光标的物理属性以及目标图标的物理属性相关的动画交互效果,其中,物理属性是基于光标的图像信息和目标图标的图像信息,利于预设的物理规则,模拟物理世界中物体的物理属性得到的,并且动画交互效果展示出光标和目标图标在交互过程中遵循对应的物理规律所产生的物理现象。In the first aspect, the embodiment of the present application provides a cursor interaction method, which can be applied to electronic devices, and the method includes: determining a target icon interacting with the cursor; displaying the physical properties of the cursor and the physical properties of the target icon Animation interaction effect, wherein the physical properties are based on the image information of the cursor and the image information of the target icon, which is beneficial to the preset physical rules and simulates the physical properties of objects in the physical world, and the animation interaction effect shows that the cursor and the target icon are in the The physical phenomena produced by following the corresponding physical laws during the interaction process.
可以理解,电子设备在显示光标与图标之间的动画交互效果之前,必然要首先确定光标是与哪个图标产生交互,然后再显示光标与该图标(即目标图标)之间的动画交互效果。并且,在本申请中,光标与图标之间的动画交互效果是电子设备基于光标的物理属性以及图标的物理属性生成的,所以,每个动画交互效果必然与光标的物理属性以及某个图标的物理属性之间有一一对应的映射关系,例如,如果光标的物理属性是系统主题为亮色主题下的物理属性,图标的物理属性为微信图标的物理属性,光标在系统主题为亮色主题下与微信图标交互时显示的动画交互效果即与光标在亮色主题下的物理属性以及微信图标的物理属性相关联。其中,物理属性指的是电子设备基于图标以及光标的图像信息,例如是图标或光标对应的图像的像素值,模拟物理世界中物体的物理属性,例如物理世界中物体的质量、磁力、摩擦系数等,利用预设的物理规则,为电子设备中的光标以及图标设置的物理属性,其目的体现在两方面:一方面是为了使得光标在与图标交互 的过程中,能够更符合物理世界中真实物体交互的场景,对应地,光标与图标之间的动画交互效果则是光标与图标在交互过程中遵循对应的物理规律产生的物理现象的一种表现形式;另一方面则是为了使得每个图标都能有基于自身图像信息的独有的物理属性,进而使得光标在与不同的图标交互时,能够产生不同的动画交互效果,例如,颜色较深的图标的质量大、磁力也大,光标在与其交互过程中,受到该图标的磁吸引力也大,使得光标靠近该图标时发生的形变量也较大,而颜色较浅的图标的质量小、磁力也小、光标在与其交互过程中,受到该图标的磁吸引力也小,使得光标靠近该图标时发生的形变量也较小。It can be understood that before displaying the animation interaction effect between the cursor and the icon, the electronic device must first determine which icon the cursor interacts with, and then display the animation interaction effect between the cursor and the icon (ie, the target icon). Moreover, in this application, the animation interaction effect between the cursor and the icon is generated by the electronic device based on the physical properties of the cursor and the icon, so each animation interaction effect must be related to the physical properties of the cursor and the physical properties of an icon. There is a one-to-one mapping relationship between physical attributes. For example, if the physical attribute of the cursor is the physical attribute under the system theme of the bright color theme, the physical attribute of the icon is the physical attribute of the WeChat icon, and the cursor under the system theme is the bright color theme. The animation interaction effect displayed when the WeChat icon interacts is related to the physical properties of the cursor under the bright color theme and the physical properties of the WeChat icon. Among them, the physical property refers to the image information of the electronic device based on the icon and the cursor, such as the pixel value of the image corresponding to the icon or the cursor, simulating the physical property of the object in the physical world, such as the mass, magnetism, and friction coefficient of the object in the physical world etc., using the preset physical rules to set the physical attributes for the cursor and icons in the electronic device, the purpose is reflected in two aspects: on the one hand, it is to make the cursor more consistent with the real world in the physical world during the interaction with the icon. In the scene of object interaction, correspondingly, the animation interaction effect between the cursor and the icon is a manifestation of the physical phenomenon produced by the cursor and the icon following the corresponding physical laws during the interaction process; on the other hand, it is to make each Icons can have unique physical properties based on their own image information, so that the cursor can produce different animation interaction effects when interacting with different icons. In the process of interacting with it, the magnetic attraction force of the icon is also large, so that the deformation of the cursor when it is close to the icon is also large, and the quality of the icon with lighter color is small, the magnetic force is also small, and the cursor is in the process of interacting with it. The magnetic attraction force of the icon is also small, so that the amount of deformation that occurs when the cursor approaches the icon is also small.
有基于此,在本申请的一些实施例中,电子设备首先确定与光标产生交互的目标图标,然后根据目标图标的物理属性以及光标的物理属性,确定出与光标的物理属性以及目标图标的物理属性相关的动画交互效果,并在光标与目标图标的交互过程中,显示该动画交互效果。通过这种方式,不仅使电子设备中光标与图标的交互过程更加符合物理世界中真实物体的交互过程,而且为具有不同物理属性的图标与光标的交互提供了不同的动画交互效果,提高了光标与图标交互过程中动画效果的多样性,进而提高了用户的交互体验。Based on this, in some embodiments of the present application, the electronic device first determines the target icon that interacts with the cursor, and then determines the physical properties of the cursor and the physical properties of the target icon according to the physical properties of the target icon and the physical properties of the cursor. The animation interaction effect related to the property, and display the animation interaction effect during the interaction process between the cursor and the target icon. In this way, not only the interaction process between the cursor and the icon in the electronic device is more in line with the interaction process of the real object in the physical world, but also different animation interaction effects are provided for the interaction between icons with different physical properties and the cursor, and the cursor is improved. The variety of animation effects in the process of interacting with icons improves the user's interactive experience.
结合第一方面,在第一方面的一种可能的实现方式中,确定与光标产生交互的目标图标的方法包括:设置包括图标的热区,并且热区的各边界与图标中心之间的距离大于预设距离,在光标进入热区的情况下,确定热区中的图标为目标图标。With reference to the first aspect, in a possible implementation of the first aspect, the method for determining the target icon for interaction with the cursor includes: setting a hot zone including the icon, and the distance between each boundary of the hot zone and the center of the icon If the distance is greater than the preset distance, when the cursor enters the hot zone, it is determined that the icon in the hot zone is the target icon.
在一些实施例中,电子设备在确定与光标产生交互的目标图标时,可以根据光标与图标之间的距离,判断光标是否要靠近该图标。具体地,电子设备可以为图标设置热区,其中热区各边界与图标中心的距离大于预设距离,在光标进入该热区时,即认为光标要靠近该图标,并将该图标作为目标图标。其中,预设距离可以根据电子设备界面中现存图标的数量,由电子设备进行动态地调整,例如,当电子设备界面中图标数量较多时,预设距离如果设置地过大,图标热区之间可能会出现重叠,不利于判断与光标产生交互的目标图标,故此时预设距离可以设置地小一些,例如5像素,或者不设置预设距离,即图标对应的图标图像边缘即为热区的边界,此时光标只要与图标对应的图标图像边缘产生接触,即确定该图标为目标图标;当电子设备界面中图标数量较少时,预设距离可以设置地较大,例如10像素,以便于更好地划分图标与图标之间的热区界限,进而更好地判断与光标产生交互的目标图标。应理解,本申请对如何判断与光标产生的交互的目标图标的方式不作限制。In some embodiments, when the electronic device determines a target icon for interaction with the cursor, it may determine whether the cursor is going to approach the icon according to the distance between the cursor and the icon. Specifically, the electronic device can set a hot zone for the icon, wherein the distance between each boundary of the hot zone and the center of the icon is greater than a preset distance, and when the cursor enters the hot zone, it considers that the cursor is approaching the icon and takes the icon as the target icon . Among them, the preset distance can be dynamically adjusted by the electronic device according to the number of existing icons in the interface of the electronic device. There may be overlapping, which is not conducive to judging the target icon that interacts with the cursor, so the preset distance can be set smaller at this time, such as 5 pixels, or the preset distance is not set, that is, the edge of the icon image corresponding to the icon is the hot zone At this time, as long as the cursor contacts the edge of the icon image corresponding to the icon, the icon is determined to be the target icon; when the number of icons in the electronic device interface is small, the preset distance can be set larger, such as 10 pixels, so that Better divide the hot zone boundary between icons, and then better judge the target icon that interacts with the cursor. It should be understood that the present application does not limit the manner of how to determine the target icon for interaction with the cursor.
结合第一方面以及上述可能的实现方式,在第一方面的另一种可能的实现方式中,物理属性包括质量、磁力、光标与图标所在界面的摩擦系数。With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner of the first aspect, the physical properties include mass, magnetic force, and a friction coefficient of an interface where the cursor and the icon are located.
结合第一方面以及上述可能的实现方式,在第一方面的另一种可能的实现方式中,在光标与目标图标的交互过程中,电子设备显示如下一种或多种动画交互效果:In combination with the first aspect and the foregoing possible implementation manners, in another possible implementation manner of the first aspect, during the interaction process between the cursor and the target icon, the electronic device displays one or more of the following animation interaction effects:
在光标靠近目标图标的情况下,光标在目标图标的磁力吸引下,加速靠近目标图标;在光标脱离目标图标的情况下,光标在目标图标的磁力吸引下,减速远离目标图标;在光标靠近或脱离目标图标的情况下,光标在目标图标的磁力吸引下,发生形变;在光标靠近或脱离目标图标的情况下,目标图标在光标的磁力吸引下,发生形变;在光标与目标图标产生接触的情况下,目标图标向光标所在方向发生倾斜。When the cursor is close to the target icon, the cursor accelerates to approach the target icon under the magnetic attraction of the target icon; when the cursor leaves the target icon, the cursor decelerates and moves away from the target icon under the magnetic attraction of the target icon; when the cursor approaches or When the cursor is separated from the target icon, the cursor is deformed under the magnetic attraction of the target icon; when the cursor is close to or separated from the target icon, the target icon is deformed under the magnetic attraction of the cursor; In this case, the target icon tilts toward the direction of the cursor.
可以理解,上述实施例为电子设备中光标与某一个图标(目标图标)的交互过程中,产生的动画交互效果,即光标在与一个目标图标的交互过程中,可以同时产生光标加速或减速、光标或图标产生形变、图标发生倾斜等动画效果。需要说明的是,为了便于解释说明本申请中光标与图 标交互的动画交互效果,所以下文都以光标与某一个图标之间的交互为例进行说明,可以理解,在一些实施例中,光标可以与多个图标产生交互,例如,光标同时进入多个图标的热区,在这种情况下,电子设备可以同时显示光标与多个图标交互的动画交互效果,还应理解,此时光标受到的力的作用为多个图标同时作用在光标上的磁吸引力,以及光标与界面之间的摩擦阻力的合力。It can be understood that the above embodiment is an animation interaction effect generated during the interaction between the cursor and a certain icon (target icon) in the electronic device, that is, during the interaction between the cursor and a target icon, the cursor can simultaneously accelerate or decelerate, Animation effects such as deformation of the cursor or icon, tilting of the icon, etc. It should be noted that, in order to facilitate the explanation of the animation interaction effect of the interaction between the cursor and the icon in this application, the following will take the interaction between the cursor and an icon as an example for illustration. It can be understood that in some embodiments, the cursor can be Interaction with multiple icons, for example, the cursor enters the hot zone of multiple icons at the same time, in this case, the electronic device can display the animation interaction effect of the cursor interacting with multiple icons at the same time, it should also be understood that the cursor is affected by the The effect of the force is the resultant force of the magnetic attraction of multiple icons acting on the cursor at the same time, and the frictional resistance between the cursor and the interface.
结合第一方面以及上述可能的实现方式,在第一方面的另一种可能的实现方式中,在光标与目标图标的交互过程中,光标与目标图标所在的界面之间产生阻碍光标运动的摩擦阻力,并且电子设备显示如下一种或多种动画交互效果:在光标靠近目标图标的情况下,光标在目标图标的磁力、光标与摩擦阻力的作用下,加速靠近目标图标;在光标脱离目标图标的情况下,光标在目标图标的磁力、光标与摩擦阻力的作用下,减速远离目标图标。In combination with the first aspect and the above-mentioned possible implementation manners, in another possible implementation manner of the first aspect, during the interaction process between the cursor and the target icon, friction that hinders the movement of the cursor occurs between the interface where the cursor and the target icon are located Resistance, and the electronic device displays one or more of the following animation interaction effects: when the cursor is close to the target icon, the cursor accelerates towards the target icon under the action of the magnetic force of the target icon, the cursor and frictional resistance; when the cursor leaves the target icon In the case of , the cursor decelerates away from the target icon under the action of the magnetic force of the target icon, the cursor and frictional resistance.
可以理解,在光标与目标图标交互的过程中,光标会不可避免地产生移动,为了使得光标与目标图标的交互过程更加添近物理世界中物体的交互过程,电子设备可以为光标设置光标与图标所在界面之间的摩擦系数,如此,当光标与图标交互的过程中,光标还受到其与界面之间的摩擦阻力的影响。It can be understood that the cursor will inevitably move during the interaction process between the cursor and the target icon. In order to make the interaction process between the cursor and the target icon more similar to the interaction process of objects in the physical world, the electronic device can set the cursor and icon for the cursor. The friction coefficient between the interface, so that when the cursor interacts with the icon, the cursor is also affected by the friction resistance between it and the interface.
同理,如果此时光标也具有磁力,那么光标的磁力在一定范围内也会吸引图标,进而使得图标也发生相对于移动,例如光标在靠近图标的过程中,图标在光标磁力的作用下,逐渐靠近热区边界,不难理解,电子设备也可以为图标设置其与界面之间的摩擦系数,使得图标在靠近热区边界的同时也受到其与界面之间的摩擦阻力的作用。其中,无论是光标与界面的摩擦系数还是图标与界面的摩擦系数,均与界面的模糊程度、图标的模糊程度以及光标的模糊程度有关,例如,界面的模糊程度越大,界面与光标以及界面与图标之间的摩擦系数就越大,图标的模糊程度越大,图标与界面之间的摩擦系数也越大,光标的模糊程度越大,光标与界面之间的摩擦系数也越大。其中,界面模糊程度与电子设备的系统设置有关,例如,电子设备的系统设置如果为“磨砂”,则界面的模糊程度较高。Similarly, if the cursor also has magnetic force at this time, the magnetic force of the cursor will also attract the icon within a certain range, and the icon will also move relative to it. Gradually approaching the boundary of the hot zone, it is not difficult to understand that the electronic device can also set the friction coefficient between it and the interface for the icon, so that the icon is also affected by the friction resistance between it and the interface when it is close to the boundary of the hot zone. Among them, whether it is the friction coefficient between the cursor and the interface or the friction coefficient between the icon and the interface, it is related to the blurring degree of the interface, the blurring degree of the icon, and the blurring degree of the cursor. The greater the coefficient of friction with the icon, the greater the blur of the icon, the greater the coefficient of friction between the icon and the interface, the greater the blur of the cursor, the greater the coefficient of friction between the cursor and the interface. Wherein, the blurring degree of the interface is related to the system setting of the electronic device, for example, if the system setting of the electronic device is "frosted", the blurring degree of the interface is relatively high.
结合第一方面以及上述可能的实现方式,在第一方面的另一种可能的实现方式中,图标的图像信息包括图标对应的图标图像的像素值;并且方法还包括:根据图标图像的像素值与界面的背景颜色的像素值,确定图标的质量,图标的质量与图标图像的像素值和界面的背景颜色的像素值之间的差值正相关。With reference to the first aspect and the above possible implementation manners, in another possible implementation manner of the first aspect, the image information of the icon includes the pixel value of the icon image corresponding to the icon; and the method further includes: according to the pixel value of the icon image The pixel value of the background color of the interface determines the quality of the icon, and the quality of the icon is positively correlated with the difference between the pixel value of the icon image and the pixel value of the background color of the interface.
在一些实施例中,电子设备可以根据图标对象的图标图像的像素值来为图标设置模拟的质量,并且图标图像的像素值与图标所在界面的背景颜色的像素值有关,图标图像的像素值与背景颜色的像素值的差值越大,图标的质量也越大。其中,电子设备具体为图标设置质量的方式将在下文具体实施例部分进行详细介绍,此处不再赘述。In some embodiments, the electronic device can set the simulated quality for the icon according to the pixel value of the icon image of the icon object, and the pixel value of the icon image is related to the pixel value of the background color of the interface where the icon is located, and the pixel value of the icon image is related to The greater the difference in pixel values of the background color, the greater the quality of the icon. Wherein, the manner in which the electronic device specifically sets the quality for the icon will be described in detail in the specific embodiments below, and will not be repeated here.
结合第一方面以及上述可能的实现方式,在第一方面的另一种可能的实现方式中,图标的磁力大小与图标的质量大小正相关。With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner of the first aspect, the magnetic force of the icon is positively correlated with the mass of the icon.
在一些实施例中,图标的质量大小与图标的磁力大小成正相关,即图标的质量越大,图标的磁力也越大。其中,电子设备具体为图标设置磁力的方式将在下文具体实施例部分进行详细介绍,此处不再赘述。In some embodiments, the mass of the icon is positively correlated with the magnetic force of the icon, that is, the greater the mass of the icon, the greater the magnetic force of the icon. Wherein, the manner in which the electronic device specifically sets the magnetic force for the icon will be described in detail in the specific embodiments below, and will not be repeated here.
结合第一方面以及上述可能的实现方式,在第一方面的另一种可能的实现方式中,光标与图标所在界面之间的摩擦阻力与光标的质量以及光标与图标所在界面之间的摩擦系数相关,光标与界面之间的摩擦系数与界面的像素值负相关,光标与界面之间的摩擦系数为大于1的常数。In combination with the first aspect and the above possible implementations, in another possible implementation of the first aspect, the frictional resistance between the cursor and the interface where the icon is located and the quality of the cursor and the friction coefficient between the cursor and the interface where the icon is located Correlation, the friction coefficient between the cursor and the interface is negatively correlated with the pixel value of the interface, and the friction coefficient between the cursor and the interface is a constant greater than 1.
在一些实施例中,光标与图标在交互过程中受到的摩擦阻力与光标与界面之间的摩擦系数相 关,并且,光标与界面之间的摩擦系数与界面的像素值负相关,即,电子设备的界面的像素值越大,光标与界面之间的摩擦系数越小,例如,电子设备界面像素值为OXFFFFFF,电子设备界面为白色,此时光标与界面之间的摩擦系数最小,当电子设备界面像素值为OXOOOOOO,电子设备界面为黑色,此时光标与界面之间的摩擦系数最大。其中,电子设备具体设置光标与界面之间摩擦系数的方式将在下文具体实施例部分进行详细介绍,此处不再赘述。In some embodiments, the friction resistance experienced by the cursor and the icon during the interaction process is related to the friction coefficient between the cursor and the interface, and the friction coefficient between the cursor and the interface is negatively related to the pixel value of the interface, that is, the electronic device The larger the pixel value of the interface, the smaller the friction coefficient between the cursor and the interface. For example, the pixel value of the electronic device interface is OXFFFFFF, and the electronic device interface is white. At this time, the friction coefficient between the cursor and the interface is the smallest. When the electronic device The pixel value of the interface is OXOOOOOO, and the interface of the electronic device is black. At this time, the friction coefficient between the cursor and the interface is the largest. Wherein, the manner in which the electronic device specifically sets the friction coefficient between the cursor and the interface will be described in detail in the specific embodiments below, and will not be repeated here.
应理解,上述图标所在界面与光标所在界面均指电子设备中正在显示的界面。It should be understood that the above interface where the icon is located and the interface where the cursor is located both refer to the interface being displayed on the electronic device.
结合第一方面以及上述可能的实现方式,在第一方面的另一种可能的实现方式中,物理规律包括摩擦力公式、加速度公式,以及弹力公式中的至少一个。With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner of the first aspect, the physical law includes at least one of a friction formula, an acceleration formula, and an elastic force formula.
结合第一方面以及上述可能的实现方式,在第一方面的另一种可能的实现方式中,图标包括安装在电子设备桌面上的应用程序的图标以及应用程序运行过程中,应用程序界面上的图标。应理解,由于本申请的光标交互方法是电子设备基于图标的图像信息为图标设置的物理属性,该物理属性与该图标是何止安装在电子设备上、以及该图标位于电子设备桌面还是电子设备其他界面并无关系,所以,上述各实施例以及可能的实现方式中的图标不仅包括安装在电子设备桌面上的应用程序的图标,还包括这些应用程序在运行的过程中,显示在应用程序界面上的图标。With reference to the first aspect and the above possible implementation manners, in another possible implementation manner of the first aspect, the icons include the icons of the application programs installed on the desktop of the electronic device and the icons on the application program interface during the running of the application programs. icon. It should be understood that since the cursor interaction method of the present application is a physical attribute set by the electronic device for the icon based on the image information of the icon, the physical attribute has nothing to do with whether the icon is installed on the electronic device, and whether the icon is located on the desktop of the electronic device or otherwise. The interface has nothing to do with it. Therefore, the icons in the above embodiments and possible implementations include not only the icons of the application programs installed on the desktop of the electronic device, but also the icons displayed on the application program interface during the running of these application programs. icon.
第二方面,本申请实施例还提供了一种电子设备,该电子设备包括存储器,存储有计算机程序指令;处理器,处理器和存储器耦合,当存储器存储的计算机程序指令被处理器执行时使得电子设备执行以下操作:确定与光标产生交互的目标图标;显示与光标的物理属性以及目标图像的物理属性相关的动画交互效果,其中,物理属性是基于光标的图像信息和目标图像的图像信息,利于预设的物理规则,模拟物理世界中物体物理属性得到的,并且动画交互效果展示出光标和目标图像在交互过程中遵循对应的物理规律所产生的物理现象。In the second aspect, the embodiment of the present application also provides an electronic device, the electronic device includes a memory, which stores computer program instructions; a processor, and the processor and the memory are coupled, and when the computer program instructions stored in the memory are executed by the processor, the The electronic device performs the following operations: determine a target icon interacting with the cursor; display animation interaction effects related to the physical properties of the cursor and the physical properties of the target image, wherein the physical properties are based on the image information of the cursor and the image information of the target image, It is beneficial to the preset physical rules, which are obtained by simulating the physical properties of objects in the physical world, and the animation interaction effect shows the physical phenomena produced by the cursor and the target image following the corresponding physical laws during the interaction process.
结合第二方面,在第二方面的一种可能的实现方式中,确定与光标产生交互的目标图标,包括:设置包括图标的热区,热区的各边界与图标中心之间的距离大于预设距离;在光标进入热区的情况下,确定热区中的图标为目标图标。With reference to the second aspect, in a possible implementation manner of the second aspect, determining the target icon for interaction with the cursor includes: setting a hot zone including the icon, and the distance between each boundary of the hot zone and the center of the icon is greater than a predetermined distance. Set the distance; when the cursor enters the hot zone, determine the icon in the hot zone as the target icon.
结合第二方面以及上述可能的实现方式,在第二方面的另一种可能的实现方式中,物理属性包括质量、磁力、光标与图标所在界面的摩擦系数。With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner of the second aspect, the physical properties include mass, magnetic force, and a friction coefficient of an interface where the cursor and the icon are located.
结合第二方面以及上述可能的实现方式,在第二方面的另一种可能的实现方式中,在光标与目标图标的交互过程中,电子设备显示如下一种或多种动画交互效果:在光标靠近目标图标的情况下,光标在目标图标的磁力吸引下,加速靠近目标图标;在光标脱离目标图标的情况下,光标在目标图标的磁力吸引下,减速远离目标图标;在光标靠近或脱离目标图标的情况下,光标在目标图标的磁力吸引下,发生形变;在光标靠近或脱离目标图标的情况下,目标图标在光标的磁力吸引下,发生形变;在光标与目标图标产生接触的情况下,目标图标向光标所在方向发生倾斜。With reference to the second aspect and the above possible implementation manners, in another possible implementation manner of the second aspect, during the interaction process between the cursor and the target icon, the electronic device displays one or more of the following animation interaction effects: When the cursor is close to the target icon, under the magnetic attraction of the target icon, the cursor accelerates to approach the target icon; when the cursor leaves the target icon, the cursor decelerates away from the target icon under the magnetic attraction of the target icon; when the cursor approaches or leaves the target In the case of an icon, the cursor is deformed under the magnetic attraction of the target icon; when the cursor is close to or away from the target icon, the target icon is deformed under the magnetic attraction of the cursor; when the cursor is in contact with the target icon , the target icon tilts in the direction of the cursor.
结合第二方面以及上述可能的实现方式,在第二方面的另一种可能的实现方式中,在光标与目标图标的交互过程中,光标与目标图标所在的界面之间产生阻碍光标运动的摩擦阻力,并且电子设备显示如下一种或多种动画交互效果包括:在光标靠近目标图标的情况下,光标在目标图标的磁力、光标与摩擦阻力的作用下,加速靠近目标图标;在光标脱离目标图标的情况下,光标在目标图标的磁力、光标与摩擦阻力的作用下,减速远离目标图标。In combination with the second aspect and the above-mentioned possible implementation manners, in another possible implementation manner of the second aspect, during the interaction process between the cursor and the target icon, friction that hinders the movement of the cursor occurs between the interface where the cursor and the target icon are located Resistance, and the electronic device displays one or more of the following animation interaction effects including: when the cursor is close to the target icon, the cursor accelerates towards the target icon under the action of the magnetic force of the target icon, the cursor and frictional resistance; In the case of an icon, the cursor decelerates away from the target icon under the action of the magnetic force of the target icon, the cursor and frictional resistance.
结合第二方面以及上述可能的实现方式,在第二方面的另一种可能的实现方式中,图标的图像信息包括图标对应的图标图像的像素值,该方法还包括:根据图标图像的像素值与界面的背景颜色的像素值,确定图标的质量,图标的质量与图标图像的像素值和界面的背景颜色的像素值之 间的差值正相关。With reference to the second aspect and the above possible implementation manners, in another possible implementation manner of the second aspect, the image information of the icon includes the pixel value of the icon image corresponding to the icon, and the method further includes: according to the pixel value of the icon image The pixel value of the background color of the interface determines the quality of the icon, and the quality of the icon is positively correlated with the difference between the pixel value of the icon image and the pixel value of the background color of the interface.
结合第二方面以及上述可能的实现方式,在第二方面的另一种可能的实现方式中,图标的磁力大小与图标的质量大小正相关。With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner of the second aspect, the magnetic force of the icon is positively correlated with the mass of the icon.
结合第二方面以及上述可能的实现方式,在第二方面的另一种可能的实现方式中,光标与图标所在界面之间的摩擦阻力与光标的质量以及光标与图标所在界面之间的摩擦系数相关,光标与界面之间的摩擦系数与界面的像素值负相关,光标与界面之间的摩擦系数为大于1的常数。In combination with the second aspect and the above possible implementations, in another possible implementation of the second aspect, the frictional resistance between the cursor and the interface where the icon is located and the quality of the cursor and the friction coefficient between the cursor and the interface where the icon is located Correlation, the friction coefficient between the cursor and the interface is negatively correlated with the pixel value of the interface, and the friction coefficient between the cursor and the interface is a constant greater than 1.
结合第二方面以及上述可能的实现方式,在第二方面的另一种可能的实现方式中,物理规律包括摩擦力公式、加速度公式,以及弹力公式中的至少一个。With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner of the second aspect, the physical law includes at least one of a friction formula, an acceleration formula, and an elastic force formula.
结合第二方面以及上述可能的实现方式,在第二方面的另一种可能的实现方式中,图标包括安装在电子设备桌面上的应用程序的图标以及应用程序运行过程中,应用程序界面上的图标。With reference to the second aspect and the above possible implementation manners, in another possible implementation manner of the second aspect, the icons include the icons of the application programs installed on the desktop of the electronic device and the icons on the application program interface during the running of the application programs. icon.
第三方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,其特征在于,计算机程序被处理器执行时实现上述第一方面中任一种可能的实现方式中的光标交互方法。In the third aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and it is characterized in that, when the computer program is executed by a processor, any possible solution in the above-mentioned first aspect can be realized. The cursor interaction method in the implementation.
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面中任一种可能的实现方式中的光标交互方法。In a fourth aspect, an embodiment of the present application provides a computer program product that, when the computer program product is run on an electronic device, causes the electronic device to execute the cursor interaction method in any possible implementation manner of the first aspect above.
可以理解的是,上述第二方面至第四方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the above-mentioned second aspect to the fourth aspect, reference can be made to the relevant description in the above-mentioned first aspect, and details are not repeated here.
附图说明Description of drawings
图1是一些实施例提供的一例光标交互应用场景图;Fig. 1 is a diagram of an application scenario of cursor interaction provided by some embodiments;
图2是一些实施例提供的一例光标与图标交互的动画交互效果图;Fig. 2 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments;
图3是一些实施例提供的另一例光标与图标交互的动画交互效果图;Fig. 3 is another animation interaction effect diagram of the interaction between the cursor and the icon provided by some embodiments;
图4是一些实施例提供的一例生成光标与图标交互动画交互效果的流程示意图;Fig. 4 is a schematic flowchart of an example of generating an interactive animation effect between a cursor and an icon provided by some embodiments;
图5是一些实施例提供的一例光标与图标交互的动画交互效果图;Fig. 5 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments;
图6是一些实施例提供的一例光标与图标交互的动画交互效果图;Fig. 6 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments;
图7是一些实施例提供的一例光标与图标交互的动画交互效果图;Fig. 7 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments;
图8是一些实施例提供的一例光标与图标交互的物理原理示意图;Fig. 8 is a schematic diagram of a physical principle of interaction between a cursor and an icon provided by some embodiments;
图9是一些实施例提供的一例光标与图标交互的物理原理示意图;Fig. 9 is a schematic diagram of a physical principle of interaction between a cursor and an icon provided by some embodiments;
图10是一些实施例提供的一例光标与图标交互的物理原理示意图;Fig. 10 is a schematic diagram of a physical principle of interaction between a cursor and an icon provided by some embodiments;
图11是一些实施例提供的一例光标与图标交互的物理原理示意图;Fig. 11 is a schematic diagram of a physical principle of interaction between a cursor and an icon provided by some embodiments;
图12是一些实施例提供的一例光标与图标交互的动画交互效果图;Fig. 12 is an animation interaction effect diagram of an example of cursor-icon interaction provided by some embodiments;
图13是一些实施例提供的一例确定光标靠近的目标图标的方法流程示意图;Fig. 13 is a schematic flowchart of a method for determining a target icon approached by a cursor provided by some embodiments;
图14是一些实施例提供的一例确定光标靠近的目标图标的示意图;Fig. 14 is a schematic diagram of an example of determining the target icon approached by the cursor provided by some embodiments;
图15A为Windows触摸屏显控增益曲线;Fig. 15A is the display and control gain curve of the Windows touch screen;
图15B为Mac触摸屏显控增益曲线;Fig. 15B is a Mac touch screen display and control gain curve;
图16A是一些实施例提供的一例显控增益曲线图;Fig. 16A is an example of display control gain curve diagram provided by some embodiments;
图16B是一些实施例提供的一例光标移动速度与用户实际输入速度之间关系的曲线示意图;Fig. 16B is a schematic diagram of the relationship between the moving speed of the cursor and the actual input speed of the user provided by some embodiments;
图17是一些实施例提供的一例光标移动距离与光标速度之间关系的曲线示意图;Fig. 17 is a schematic diagram of the relationship between the moving distance of the cursor and the speed of the cursor provided by some embodiments;
图18A是一些实施例提供的一例光标移动距离与光标速度之间关系的示意图;Fig. 18A is a schematic diagram of an example of the relationship between cursor moving distance and cursor speed provided by some embodiments;
图18B是一些实施例提供的一例光标移动距离与光标速度之间关系的示意图;Fig. 18B is a schematic diagram of an example of the relationship between cursor moving distance and cursor speed provided by some embodiments;
图19A是一些实施例提供的一例未经过卡尔曼滤波处理的光标移动过程的示意图;Fig. 19A is a schematic diagram of a cursor movement process without Kalman filter processing provided by some embodiments;
图19B是一些实施例提供的一例经过卡尔曼滤波处理的光标移动过程的示意图;Fig. 19B is a schematic diagram of a cursor movement process processed by Kalman filtering provided by some embodiments;
图20是一些实施例提供的一例平板电脑的硬件结构示意图;Fig. 20 is a schematic diagram of the hardware structure of a tablet computer provided by some embodiments;
图21是一些实施例提供的一例平板电脑的软件结构示意图。Fig. 21 is a schematic diagram of a software structure of a tablet computer provided by some embodiments.
具体实施方式detailed description
下面将使用本领域技术人员通常采用的术语来描述说明性实施例的各个方面。Various aspects of the illustrative embodiments are described below using terms commonly employed by those skilled in the art.
可以理解,本申请的说明性实施例包括但不限于交互方法及电子设备、存储介质等。It can be understood that the illustrative embodiments of the present application include, but are not limited to, interactive methods, electronic devices, storage media, and the like.
为了提升用户在人机交互中的体验,电子设备会为人机交互过程设置一些动画交互效果,以使当用户移动光标靠近或脱离某个应用程序图标的过程中,光标会在靠近或脱离某个应用程序图标时发生形变,以提示用户已经选中或将要脱离应用程序图标。In order to improve the user's experience in human-computer interaction, the electronic device will set some animation interaction effects for the human-computer interaction process, so that when the user moves the cursor close to or away from a certain application icon, the cursor will move closer to or away from a certain application icon. The application icon is deformed to indicate to the user that the application icon has been selected or is about to be disengaged.
例如,在本申请的一些实施例中,电子设备在系统开发时,会预先好设置光标和系统桌面上的应用程序的图标之间交互的动画交互效果,将该动画交互效果应用于系统桌面上的应用程序图标,但是预先设置的动画交互效果具有如下缺陷:首先,预先设置的动画交互效果在种类上具有局限性,因为预先设置的动画交互效果没有考虑到各个应用程序图标的特性,例如各个应用程序图标的像素值,这导致预先设置的动画交互效果在实质上并无不同,也即当光标与任何应用程序图标交互时所产生的动画交互效果都大同小异;其次,预先设置的动画交互效果在数量上是有限的,可以理解,电子设备在系统开发时无法预知电子设备上将会安装多少数量的应用程序,电子设备无法为每一个应用程序都提供不同的动画交互效果;最后,电子设备设置的动画交互效果一般是针对安装在电子设备桌面上的应用程序图标,对于某个应用程序在运行时产生的应用程序界面中的图标,例如某个程序被打开后界面上的图标,则不再有光标与图标交互的动画交互效果。For example, in some embodiments of the present application, when the electronic device is developing the system, it will pre-set the animation interaction effect between the cursor and the icon of the application program on the system desktop, and apply the animation interaction effect on the system desktop application icons, but the preset animation interaction effects have the following defects: First, the preset animation interaction effects are limited in type, because the preset animation interaction effects do not take into account the characteristics of each application icon, such as each The pixel value of the application icon, which causes the preset animation interaction effect to be essentially the same, that is, the animation interaction effect generated when the cursor interacts with any application icon is similar; secondly, the preset animation interaction effect It is limited in number. It is understandable that electronic devices cannot predict how many applications will be installed on electronic devices during system development, and electronic devices cannot provide different animation interaction effects for each application; finally, electronic devices The animation interaction effect set is generally aimed at the application icon installed on the desktop of the electronic device. For the icon in the application program interface generated when an application is running, for example, the icon on the interface after a certain program is opened, it does not There is also an animation interaction effect for the cursor to interact with the icon.
具体地,如图1所示,在图1所示的桌面,用户可以将光标101移动到目标应用程序的图标后打开应用程序。当用户移动光标101选择天气应用程序102时,光标101与天气应用程序102的图标(下称天气图标102)之间会产生如下动画交互效果:Specifically, as shown in FIG. 1 , on the desktop shown in FIG. 1 , the user can move the cursor 101 to the icon of the target application program and open the application program. When the user moves the cursor 101 to select the weather application 102, the following animation interaction effect will be produced between the cursor 101 and the icon of the weather application 102 (hereinafter referred to as the weather icon 102):
即在用户移动光标101靠近图标时,当光标101接触到图标,光标101的大小将发生变化,以提示用户此时与图标发生接触;用户移动光标101脱离图标时,光标101的大小也将发生变化,以提示用户此时正在脱离图标;并且在用户移动光标101并释放后,光标101靠近并选中图标的耗时和光标101脱离图标的耗时是相同的。That is, when the user moves the cursor 101 close to the icon, when the cursor 101 touches the icon, the size of the cursor 101 will change to prompt the user to contact the icon at this time; when the user moves the cursor 101 away from the icon, the size of the cursor 101 will also change. Change, to prompt the user to leave the icon at this time; and after the user moves the cursor 101 and releases it, the time-consuming time for the cursor 101 to approach and select the icon is the same as the time-consuming time for the cursor 101 to leave the icon.
具体如图2所示,光标101与天气图标102之间的动画交互效果可分为:光标101靠近天气图标102阶段,光标101选中天气图标102阶段,光标101脱离天气图标102阶段,其中,从光标101靠近天气图标102到光标101选中天气图标102耗时为t1,从光标101选中天气图标102到光标101离开天气图标102耗时为t2,并且t1等于t2。应理解,此处不计入用户将光标101停留在图标上的时间。Specifically as shown in Figure 2, the animation interaction effect between the cursor 101 and the weather icon 102 can be divided into: the cursor 101 approaches the weather icon 102 stage, the cursor 101 selects the weather icon 102 stage, and the cursor 101 breaks away from the weather icon 102 stage, wherein, from The time taken from the cursor 101 approaching the weather icon 102 to the cursor 101 selecting the weather icon 102 is t1, the time from the cursor 101 selecting the weather icon 102 to the cursor 101 leaving the weather icon 102 is t2, and t1 is equal to t2. It should be understood that the time during which the user stays the cursor 101 on the icon is not counted here.
如图2A所示,光标101靠近天气图标102,并与天气图标102的热区P 1边缘接触,此时,天气图标102会靠近光标101;当光标101与天气图标102产生接触时,光标101发生如图2B所示的形变,以此提醒用户此时已经接触到天气图标102;之后,如图2C所示的,光标101所在图层隐藏在天气图标102所在图层之后,天气图标102发生形变(体积变大)以提示用户此时已经选中天气图标102。如此,实现用户移动光标101选中天气图标102的动画交互效果,并且此过程耗时t1。其中,热区P 1指的是当光标101与该区域发生接触时,电子设备即认为光标101已经选中天气图标102的区域。 As shown in Figure 2A, the cursor 101 is close to the weather icon 102, and contacts with the hot area P 1 edge of the weather icon 102, at this moment, the weather icon 102 will be close to the cursor 101; when the cursor 101 contacts the weather icon 102, the cursor 101 The deformation as shown in Figure 2B takes place to remind the user that the weather icon 102 has been touched at this moment; afterward, as shown in Figure 2C, the layer where the cursor 101 is located is hidden behind the layer where the weather icon 102 is located, and the weather icon 102 appears Transform (increase in volume) to prompt the user that the weather icon 102 has been selected at this time. In this way, an animation interaction effect in which the user moves the cursor 101 to select the weather icon 102 is realized, and this process takes time t1. Wherein, the hot zone P1 refers to the zone where the electronic device considers that the cursor 101 has selected the weather icon 102 when the cursor 101 touches the zone.
当用户移动光标101脱离天气图标102时,光标101与天气图标102之间的动画交互效果与用户移动光标101靠近天气图标102时动画交互效果一致,只是过程相反。具体地,如图2D所示,光标101逐渐脱离天气图标102;并且当光标101移动至热区P 1边缘时,如图2E所示,天气图标102回复至如图2A所示的初始尺寸,然后光标101完全脱离天气图标102。如此,实现用户移动光标101脱离天气图标102的动画交互效果,并且此过程耗时t2,以及t1是等于t2的。 When the user moves the cursor 101 away from the weather icon 102 , the animation interaction effect between the cursor 101 and the weather icon 102 is the same as when the user moves the cursor 101 close to the weather icon 102 , but the process is reversed. Specifically, as shown in FIG. 2D, the cursor 101 gradually departs from the weather icon 102; and when the cursor 101 moves to the edge of the hot zone P1, as shown in FIG. 2E, the weather icon 102 returns to the initial size as shown in FIG. 2A, Cursor 101 then completely disengages from weather icon 102 . In this way, the animation interaction effect of the user moving the cursor 101 away from the weather icon 102 is realized, and this process takes time t2, and t1 is equal to t2.
如前文所述,上述光标101与天气图标102之间的动画交互效果是由电子设备针对系统桌面各应用程序图标预先设置的,也即对于电子设备桌面中的其他应用程序,诸如
Figure PCTCN2022104934-appb-000001
马上办105、IG(instagram)图标106、设置107或者短消息108等,光标101与前述图标的交互动画和光标101与天气图标102的交互动画是一致的;而且,由于前述动画交互效果是电子设备针对系统桌面上的应用程序图标预先设置的,所以无法适用于用户打开某一应用程序后,该应用程序界面中的图标,例如,用户在使用钉钉应用104时,位于桌面上的光标101在接近或者远离钉钉图标104时可以产生上述动画交互效果,但是在钉钉应用104打开后,由于电子设备无法预知钉钉应用104界面上的图标类型,所以此时用户再移动光标101接近或者远离钉钉应用104界面上的图标时,不会再有动画交互效果。
As mentioned above, the animation interaction effect between the cursor 101 and the weather icon 102 is preset by the electronic device for each application icon on the system desktop, that is, for other applications on the desktop of the electronic device, such as
Figure PCTCN2022104934-appb-000001
Do it now 105, IG (instagram) icon 106, setting 107 or short message 108 etc., the interactive animation of cursor 101 and aforementioned icon and the interactive animation of cursor 101 and weather icon 102 are consistent; The device is pre-set for the application icon on the system desktop, so it cannot be applied to the icon in the application interface after the user opens an application, for example, when the user uses the DingTalk application 104, the cursor 101 on the desktop The above-mentioned animation interaction effect can be generated when approaching or away from the DingTalk icon 104, but after the DingTalk application 104 is opened, since the electronic device cannot predict the icon type on the DingTalk application 104 interface, the user moves the cursor 101 to approach or When moving away from the icon on the DingTalk application 104 interface, there will no longer be an animation interaction effect.
为了解决上述问题,改进上述光标101与图标交互的动画交互效果,进一步提升用户体验,电子设备在设置光标101与图标交互的动画交互效果的时候,会将真实世界的物理现象,表现在人机交互的界面显示中,以使人机交互的方式更符合真实世界的交互方式。例如,在物理世界中将某个具有磁力的物体A靠近另一个具有磁力的物体B时,物体B会对物体A产生磁性吸引,使物体A在物体B的磁力作用下加速靠近物体B;当物体A远离物体B时,物体A在物体B磁力作用下发生减速。这种物理现象在电子设备设置的动画交互效果中则表现为:用户移动光标101靠近目标图标时,光标101在目标图标的磁力作用下加速靠近目标图标,当移动光标101远离目标图标时,光标101在目标图标磁力作用下会发生减速。In order to solve the above problems, improve the above-mentioned animation interaction effect between the cursor 101 and the icon, and further enhance the user experience, when the electronic device sets the animation interaction effect between the cursor 101 and the icon, it will display the physical phenomenon of the real world on the man-machine In the interactive interface display, the way of human-computer interaction is more in line with the way of interaction in the real world. For example, in the physical world, when a magnetic object A is brought close to another magnetic object B, the object B will have a magnetic attraction to the object A, so that the object A accelerates to approach the object B under the magnetic force of the object B; when When object A moves away from object B, object A decelerates under the action of object B's magnetic force. This physical phenomenon is manifested in the animation interaction effect set by the electronic device: when the user moves the cursor 101 close to the target icon, the cursor 101 accelerates to approach the target icon under the magnetic force of the target icon; when the user moves the cursor 101 away from the target icon, the cursor 101 101 will slow down under the magnetic force of the target icon.
具体地,在本申请的一些实施例中,电子设备在系统安装成功后,电子设备基于电子设备中各应用程序图标的特性,例如,各个应用程序图标的颜色,确定出对应于物理世界的各个应用程序图标的质量、磁力等物理属性,然后基于各个应用程序图标的物理属性,为系统中安装的不同应用程序的图标设置与光标101交互的不同动画交互效果。由于电子设备是基于各个图标的特性为光标101与图标设置交互的动画交互效果的,所以,对于不同的应用程序图标,如果各个应用程序图标的对应物理属性不同,那么各个应用程序图标与光标101的动画交互效果也不同,而且可以理解,基于应用程序图标的特性设置的动画交互效果与电子设备何时安装该应用程序以及该图标是否为某个应用程序在运行时产生的并无关系,所以,该动画交互效果可以同样适用于某个应用程序在运行时应用程序界面上的图标。Specifically, in some embodiments of the present application, after the system is successfully installed on the electronic device, the electronic device determines each application icon corresponding to the physical world based on the characteristics of each application program icon in the electronic device, for example, the color of each application program icon. Based on the physical properties of the application icons such as quality and magnetism, different animation interaction effects for the icons of different application programs installed in the system to interact with the cursor 101 are set based on the physical properties of each application program icon. Since the electronic device sets the animation interaction effect for the cursor 101 and the icon based on the characteristics of each icon, so, for different application program icons, if the corresponding physical attributes of each application program icon are different, then each application program icon and the cursor 101 The animation interaction effect is also different, and it can be understood that the animation interaction effect set based on the characteristics of the application icon has nothing to do with when the electronic device installs the application and whether the icon is generated by an application during operation, so , the animation interaction effect can also be applied to the icon on the application program interface of a certain application when it is running.
具体地,例如,在图1所示的场景下,电子设备可以在用户移动光标101靠近或脱离天气图标102时,设置不同的模拟真实世界物理现象的动画交互效果。例如,光标101与天气图标102之间交互的动画交互效果为:当光标101靠近具有磁力的图标时,在图标磁力的作用下,光标101会加速靠近该图标,当光标101脱离具有磁力的图标时,在图标磁力的作用下,光标101会受到阻力进而发生减速,这就导致光标101靠近图标的耗时与脱离图标的耗时不同,同时由于图标具有磁力,所以,光标101在靠近或脱离图标时,会在图标磁力的作用下发生形变。Specifically, for example, in the scenario shown in FIG. 1 , the electronic device may set different animation interaction effects simulating physical phenomena in the real world when the user moves the cursor 101 close to or away from the weather icon 102 . For example, the animation interaction effect of the interaction between the cursor 101 and the weather icon 102 is as follows: when the cursor 101 is close to an icon with magnetic force, under the action of the magnetic force of the icon, the cursor 101 will accelerate to approach the icon; when the cursor 101 leaves the icon with magnetic force At this time, under the action of the magnetic force of the icon, the cursor 101 will be resisted and decelerate, which causes the time consumption of the cursor 101 to approach the icon to be different from that of leaving the icon. When the icon is displayed, it will be deformed under the action of the icon's magnetic force.
具体地,如图3A所示,光标101靠近天气图标102,并与天气图标102的热区P 1边缘接触,此时,光标101与天气图标102之间的磁力作用,一方面会使光标101加速靠近天气图标102, 一方面也会如图3B所示的,带动天气图标102朝光标101所在方向移动;当光标101与天气图标102产生接触时,光标101还发生如图3B所示的形变,以此提醒用户此时光标101已经接触到天气图标102;之后,如图3C所示的,光标101所在图层隐藏在天气图标102所在图层之后,天气图标102发生形变,并且天气图标102在惯性的作用下继续靠近热区P 1边缘;最后,如图3D所示,天气图标102回复至热区P 1中心位置。如此,实现用户移动光标101选中天气图标102的动画交互效果,并且此过程耗时t3。 Specifically, as shown in FIG. 3A, the cursor 101 approaches the weather icon 102 and contacts the edge of the hot area P1 of the weather icon 102. At this time, the magnetic force between the cursor 101 and the weather icon 102 will make the cursor 101 Accelerate and approach the weather icon 102, on the one hand, as shown in Figure 3B, it will drive the weather icon 102 to move towards the direction where the cursor 101 is located; when the cursor 101 contacts the weather icon 102, the cursor 101 will also deform as shown in Figure 3B , so as to remind the user that the cursor 101 has touched the weather icon 102 at this time; then, as shown in FIG. Continue to approach the edge of the hot zone P 1 under the action of inertia; finally, as shown in FIG. 3D , the weather icon 102 returns to the center of the hot zone P 1 . In this way, an animation interaction effect in which the user moves the cursor 101 to select the weather icon 102 is realized, and this process takes time t3.
当用户移动光标101离开天气图标102时,光标101与天气图标102之间的动画交互效果与用户移动光标101靠近天气图标102时动画交互效果一致,只是过程相反。具体地,如图3E所示,天气图标102在光标101磁力的吸引下逐渐靠近热区P 1边缘,光标101逐渐脱离天气图标102;并且当光标101再一次出现时,如图3F所示,天气图标102回复至如图3A所示的初始尺寸;最后如图3G所示的,光标101脱离天气图标102,并回复至图3A的初始尺寸,并且天气图标102也复位至如图3A所示的热区P 1中心位置。如此,实现用户移动光标101离开天气图标102的动画交互效果,并且此过程耗时t4。可以理解,在天气图标102磁力作用下,光标101是加速靠近天气图标102,并减速脱离天气图标102的,所以,t3小于t4。 When the user moves the cursor 101 away from the weather icon 102 , the animation interaction effect between the cursor 101 and the weather icon 102 is the same as when the user moves the cursor 101 close to the weather icon 102 , but the process is reversed. Specifically, as shown in FIG. 3E, the weather icon 102 gradually approaches the edge of the hot zone P1 under the magnetic attraction of the cursor 101, and the cursor 101 gradually breaks away from the weather icon 102; and when the cursor 101 appears again, as shown in FIG. 3F, The weather icon 102 returns to the initial size shown in Figure 3A; finally as shown in Figure 3G, the cursor 101 breaks away from the weather icon 102, and returns to the initial size of Figure 3A, and the weather icon 102 also resets to as shown in Figure 3A The location of the hot zone P1 center. In this way, the animation interaction effect of the user moving the cursor 101 away from the weather icon 102 is realized, and this process takes time t4. It can be understood that under the magnetic force of the weather icon 102, the cursor 101 accelerates to approach the weather icon 102 and decelerates away from the weather icon 102, so t3 is smaller than t4.
对比上述不同实施例中的动画交互效果可知,电子设备基于应用程序图标的物理属性,为光标101与各个应用程序图标设置的不同动画交互效果,更符合真实世界中物体交互的规律,更能为用户带来良好的交互体验。Comparing the animation interaction effects in the above different embodiments, it can be seen that the electronic device sets different animation interaction effects for the cursor 101 and each application program icon based on the physical properties of the application program icons, which is more in line with the rules of object interaction in the real world, and can better provide Users bring a good interactive experience.
为了更清楚地了解电子设备基于应用程序图标的物理属性,为光标101与应用程序图标设置的不同的动画交互效果的实施细节,下面将结合附图4-12进行详细介绍。In order to understand more clearly the implementation details of the different animation interaction effects set for the cursor 101 and the application icon based on the physical properties of the application icon on the electronic device, the following will introduce in detail with reference to FIGS. 4-12 .
需要说明的是,下文是以光标101靠近或脱离某一个应用程序图标时显示的动画交互效果为例进行说明,并且下文所述的光标101与应用程序图标的动画交互效果,是由电子设备在光标101第一次与某个应用程序图标产生交互时生成的,可以理解,在实际应用中,光标101与该应用程序图标会有多次交互,故为了节约电子设备的功耗,电子设备可以将设置好的光标101与该图标之间的动画交互效果,存储在电子设备的存储器中,在光标101与该图标随后的交互过程中,电子设备可以直接从存储器中获取已经设置好的光标101与该图标交互的动画交互效果,并进行显示。It should be noted that the animation interaction effect displayed when the cursor 101 approaches or departs from a certain application program icon is used as an example for illustration, and the animation interaction effect between the cursor 101 and the application program icon described below is provided by the electronic device. It is generated when the cursor 101 interacts with a certain application program icon for the first time. It can be understood that in practical applications, the cursor 101 will interact with the application program icon many times. Therefore, in order to save power consumption of the electronic device, the electronic device can The animation interaction effect between the set cursor 101 and the icon is stored in the memory of the electronic device, and during the subsequent interaction process between the cursor 101 and the icon, the electronic device can directly obtain the set cursor 101 from the memory The animation interaction effect of interacting with the icon and displaying it.
应理解,上述实施例中的电子设备可以是具有显示桌面图标功能以及支持光标交互的各种电子设备,例如,电子设备包括但不限于,膝上型计算机、台式计算机、平板计算机、手机、服务器、可穿戴设备、头戴式显示器、移动电子邮件设备、便携式游戏机、便携式音乐播放器、阅读器设备、或能够访问网络的其他电子设备。为了便于理解本申请的光标交互方案,下面将以电子设备100是平板电脑100为例进行说明。It should be understood that the electronic devices in the above embodiments may be various electronic devices that have the function of displaying desktop icons and supporting cursor interaction, for example, electronic devices include but are not limited to laptop computers, desktop computers, tablet computers, mobile phones, server , wearable devices, head-mounted displays, mobile email devices, portable game consoles, portable music players, reader devices, or other electronic devices capable of accessing the Internet. In order to facilitate understanding of the cursor interaction solution of the present application, the electronic device 100 is a tablet computer 100 as an example for description below.
具体地,图4是一些实施例提供的一例电子设备生成光标与图标交互动画交互效果的流程示意图。如图4所示,方法400包括:Specifically, FIG. 4 is a schematic flowchart of an example of an electronic device generating an animation interaction effect between a cursor and an icon provided by some embodiments. As shown in FIG. 4, method 400 includes:
步骤402,获取图标对应的图标图像的图像信息,根据预设物理规则,设置图标的物理属性。In step 402, the image information of the icon image corresponding to the icon is obtained, and the physical attributes of the icon are set according to preset physical rules.
可以理解,在本申请实施例中,可以预先设置计算图标的物理属性的规则,然后利用预设的物理规则,针对图标的图案、颜色、图标对应的图标图像中各像素点的坐标等图像信息,设置图标对应的物理属性。具体地,例如,图标的物理属性可以包括图标的质量、磁力等,对于一些背景颜色较深且其中的图案偏金属风的图标,可以将其的物理属性设置为与金属的物理属性相近,即设置较大的质量、磁力;而对于图案偏卡通的图标,可以将其的物理属性设置为接近弹性球, 即设置较小的质量、磁力。It can be understood that in the embodiment of the present application, the rules for calculating the physical attributes of icons can be preset, and then use the preset physical rules to target image information such as the pattern, color, and coordinates of each pixel in the icon image corresponding to the icon. , set the physical properties corresponding to the icon. Specifically, for example, the physical properties of an icon may include the quality, magnetism, etc. of the icon. For some icons whose background color is darker and whose pattern is more metallic, the physical properties of the icon may be set to be similar to those of metal, that is, Set larger quality and magnetic force; and for icons with cartoonish patterns, you can set their physical properties to be close to elastic balls, that is, set smaller quality and magnetic force.
例如,在一些实施例中,平板电脑100获取图标对应的图标图像的像素值,并根据图标图像的像素值与UI界面的背景颜色的像素值确定图标的质量。具体地,图标质量可以通过以下公式(一)进行计算。For example, in some embodiments, the tablet computer 100 acquires the pixel value of the icon image corresponding to the icon, and determines the quality of the icon according to the pixel value of the icon image and the pixel value of the background color of the UI interface. Specifically, the icon quality can be calculated by the following formula (1).
Figure PCTCN2022104934-appb-000002
Figure PCTCN2022104934-appb-000002
其中,a为图标对应的图标图像当前的像素值,b为UI界面的背景颜色的像素值,X为图标图像单位像素的质量,即图标图像中每个像素点的质量。可以理解,如果UI界面背景颜色为亮色主题,则b=OXFFFFFF(表示白色),如果UI界面背景颜色为暗色主题,则b=OXOOOOOO(表示黑色)。可以理解,像素值也可以用其他进制,例如二进制、十进制等方式来表示,本申请对此不作限制。Wherein, a is the current pixel value of the icon image corresponding to the icon, b is the pixel value of the background color of the UI interface, and X is the quality of the unit pixel of the icon image, that is, the quality of each pixel in the icon image. It can be understood that if the background color of the UI interface is a bright color theme, then b=OXFFFFFF (indicating white), and if the background color of the UI interface is a dark color theme, then b=OXOOOOOO (indicating black). It can be understood that the pixel value can also be represented by other systems, such as binary system and decimal system, which are not limited in this application.
在一些实施例中,图标图像当前的像素值可以取图标图像全部像素值的平均值,以微信图标103为例,微信图标103的整体颜色为绿色,所以可以认为微信图标103的当前像素值为整体颜色的平均值,即海洋绿=OX2E8B57,此时根据公式(一)计算得到的微信图标103的图标图像的单位像素质量为
Figure PCTCN2022104934-appb-000003
In some embodiments, the current pixel value of the icon image can be the average value of all the pixel values of the icon image. Taking the WeChat icon 103 as an example, the overall color of the WeChat icon 103 is green, so it can be considered that the current pixel value of the WeChat icon 103 is The average value of the overall color, i.e. Ocean Green=OX2E8B57, at this time, the unit pixel quality of the icon image of the WeChat icon 103 calculated according to the formula (1) is
Figure PCTCN2022104934-appb-000003
可以看出,平板电脑100利用公式(一)计算出的微信图标103的图标像素单位质量的数量级较大,不利用后续根据图标质量计算图标其他物理属性。所以,在一些实施例中,平板电脑100还需要利用归一化公式对利用公式(一)得到的图标图像的单位像素质量进行归一化处理,以减小图标像素单位质量的数量级,便于后续图标其他物理属性的计算。It can be seen that the mass of the icon pixel unit of the WeChat icon 103 calculated by the tablet computer 100 using the formula (1) is relatively large, and other physical properties of the icon are not used in subsequent calculations based on the icon quality. Therefore, in some embodiments, the tablet computer 100 also needs to use a normalization formula to normalize the unit pixel quality of the icon image obtained by using the formula (1), so as to reduce the order of magnitude of the icon pixel unit quality, which is convenient for subsequent Icon calculations for other physical properties.
可选地,上述归一化公式(二)可以为以下公式:Optionally, the above normalization formula (2) can be the following formula:
X t=(X-μ)/(MaxValue-MinValue)   (二) X t = (X-μ)/(MaxValue-MinValue) (2)
其中,X t为归一化后的图标像素的单位质量,μ为预先设置的归一化中间值,MaxValue为图标图像中单位像素中最大的像素值,MinValue为图标图像中单位像素中最小的像素值。 Among them, X t is the unit mass of the normalized icon pixel, μ is the preset normalized intermediate value, MaxValue is the largest pixel value in the unit pixel in the icon image, and MinValue is the smallest in the unit pixel in the icon image Pixel values.
平板电脑100利用公式(二)对根据公式(一)计算得到的结果进行归一处理后,即可得到数量级减小的图标像素的单位质量。After the tablet computer 100 uses the formula (2) to normalize the result calculated according to the formula (1), the unit mass of the icon pixel whose order of magnitude is reduced can be obtained.
之后,平板电脑100利用求和公式(三)计算图标图像中全部单位像素的质量之和,即可得到图标的质量M 1(单位:千克(kg))。其中,公式(三)可表示为: Afterwards, the tablet computer 100 uses the summation formula (3) to calculate the sum of the masses of all unit pixels in the icon image to obtain the mass M 1 of the icon (unit: kilogram (kg)). Among them, formula (3) can be expressed as:
Figure PCTCN2022104934-appb-000004
Figure PCTCN2022104934-appb-000004
其中,M 1表示图标的质量,n表示图标图像的像素数量,x表示图标图像中单位像素的质量。 Wherein, M 1 represents the quality of the icon, n represents the number of pixels of the icon image, and x represents the quality of a unit pixel in the icon image.
在得到图标的质量M 1后,平板电脑100将根据图标的质量计算图标的磁力。在一些实施例中,平板电脑100可以设置图标的质量与图标的磁力成正比,比如,图标的磁力可以为图标质量的20倍,对于质量为M 1(kg)的图标,图标的磁力为20M 1(单位:牛(N))。应理解,本申请对图标的质量与图标磁力之间的比例关系不作限制,在一些实施例中,图标的磁力可以是图标质量的n倍,n为大于0的常数,例如n可以是2,3,,3.5,…,10,11,…,21,22等值。 After obtaining the mass M1 of the icon, the tablet computer 100 will calculate the magnetic force of the icon according to the mass of the icon. In some embodiments, the tablet computer 100 can set the quality of the icon to be proportional to the magnetic force of the icon. For example, the magnetic force of the icon can be 20 times the mass of the icon. For an icon whose mass is M 1 (kg), the magnetic force of the icon is 20M 1 (unit: cattle (N)). It should be understood that the present application does not limit the proportional relationship between the mass of the icon and the magnetic force of the icon. In some embodiments, the magnetic force of the icon may be n times the mass of the icon, and n is a constant greater than 0. For example, n may be 2, 3,, 3.5, ..., 10, 11, ..., 21, 22 etc.
可以理解,上述各物理属性的计算方式仅仅是示例性的,在本申请其他实施例中,也可以采用其他方式为图标设置物理属性,在此不做限制。It can be understood that the calculation methods of the above physical attributes are only exemplary, and in other embodiments of the present application, other methods may also be used to set the physical attributes for the icon, which is not limited here.
步骤404,为光标101设置物理属性。 Step 404 , setting physical attributes for the cursor 101 .
可以理解,在本申请的实施例中,平板电脑100也需要为光标101设置模拟真实世界的物理 属性,平板电脑100可以根据不同的桌面主题设置为光标101设置不同的物理属性。其中,光标101的物理属性包括光标101的质量、磁力等。It can be understood that, in the embodiment of the present application, the tablet computer 100 also needs to set physical properties for the cursor 101 to simulate the real world, and the tablet computer 100 can set different physical properties for the cursor 101 according to different desktop themes. Wherein, the physical properties of the cursor 101 include the mass, magnetism and the like of the cursor 101 .
在一些实施例中,光标101的质量可以由研发人员根据平板电脑100的系统特性预先设置。例如,光标101的质量可以跟随系统版本或者系统主题进行设置,假设系统主题为夜间模式,由于系统主题颜色为暗色系,那么光标101的质量可以设置为较大数值,例如0.1千克,假设系统主题为白天模式,由于系统主题颜色为亮色系,那么光标101的质量可以设置为较小数值,例如0.01千克。In some embodiments, the quality of the cursor 101 can be preset by the developer according to the system characteristics of the tablet computer 100 . For example, the mass of the cursor 101 can be set according to the system version or system theme. Suppose the system theme is night mode. Since the system theme color is dark, the mass of the cursor 101 can be set to a larger value, such as 0.1 kg. Assuming the system theme In the daytime mode, since the theme color of the system is a bright color system, the mass of the cursor 101 can be set to a small value, such as 0.01 kg.
之后,平板电脑100根据光标101的质量,计算光标101的磁力。在一些实施例中,光标101的质量与光标101的磁力成正比,比如,光标101的磁力可以为光标101质量的20倍,假设光标101质量为M 2(kg),那么光标101的磁力为20M 2(N)。应理解,本申请对光标101的质量与光标101的磁力之间的比例关系同样不作限制。 Then, the tablet computer 100 calculates the magnetic force of the cursor 101 according to the mass of the cursor 101 . In some embodiments, the quality of the cursor 101 is directly proportional to the magnetic force of the cursor 101. For example, the magnetic force of the cursor 101 can be 20 times the mass of the cursor 101. Assuming that the mass of the cursor 101 is M 2 (kg), the magnetic force of the cursor 101 is 20M 2 (N). It should be understood that the present application also does not limit the proportional relationship between the mass of the cursor 101 and the magnetic force of the cursor 101 .
然后,平板电脑100根据光标101的质量,计算光标101与UI界面之间的摩擦系数,以便于后续计算光标101与UI界面之间的摩擦阻力f1。在一些实施例中,平板电脑100可以通过以下公式(四)计算光标101与UI界面之间的摩擦系数G:Then, the tablet computer 100 calculates the coefficient of friction between the cursor 101 and the UI interface according to the quality of the cursor 101 , so as to subsequently calculate the frictional resistance f1 between the cursor 101 and the UI interface. In some embodiments, the tablet computer 100 can calculate the coefficient of friction G between the cursor 101 and the UI interface through the following formula (4):
G=1+(OXFFFFFF一背景颜色像素值)*摩擦力换算系数   (四)G=1+(OXFFFFFF-background color pixel value)*Friction conversion coefficient (4)
其中,摩擦力换算系数可以由研发人员预先进行设置,其目的是将摩擦系数的数量级调整为较低数量级。例如假设摩擦系数为10n,那么摩擦力换算系数的作用则是将摩擦系数10n中的n调整为较低数量级,比如n为0.1、1、2、3等较小数值,OXFFFFFF为白色像素值的16进制表示结果。Among them, the friction conversion coefficient can be set in advance by the research and development personnel, and the purpose is to adjust the order of magnitude of the friction coefficient to a lower order of magnitude. For example, assuming that the friction coefficient is 10n, the function of the friction conversion factor is to adjust the n in the friction coefficient 10n to a lower order of magnitude, for example, n is a small value such as 0.1, 1, 2, 3, etc., and OXFFFFFF is the white pixel value. Hexadecimal representation of the result.
根据上述公式(四)可知,当UI界面背景颜色越深,UI界面背景颜色像素值就越小,UI界面背景的摩擦系数就越大;当UI界面背景颜色越浅,UI界面背景颜色像素值越大,UI界面背景的摩擦系数越小。例如,假设UI界面背景颜色为黑色,则UI界面背景颜色像素值的16进制表示结果为OXOOOOOO,而当UI界面背景颜色为白色,则UI界面背景颜色像素值的16进制表示结果为OXFFFFFF,可以看出,利用公式(四)计算的黑色UI界面背景的摩擦系数要比白色UI界面背景的与光标101的摩擦系数大。According to the above formula (4), when the background color of the UI interface is darker, the pixel value of the UI interface background color is smaller, and the friction coefficient of the UI interface background is larger; when the background color of the UI interface is lighter, the pixel value of the UI interface background color is smaller. The larger the value, the smaller the friction coefficient of the UI interface background. For example, assuming that the background color of the UI interface is black, the hexadecimal representation result of the pixel value of the UI interface background color is OXOOOOOO, and when the background color of the UI interface is white, the hexadecimal representation result of the pixel value of the UI interface background color is OXFFFFFF , it can be seen that the friction coefficient of the black UI interface background calculated by formula (4) is larger than that of the white UI interface background and the cursor 101 .
应理解,在一些实施例中,摩擦系数G还与UI界面背景模糊度正相关,也即UI界面背景模糊度越大,摩擦系数G也越大,UI界面背景模糊度越小,摩擦系数G也越小。例如,用户可以通过平板电脑100的系统设置,将UI界面设置为“磨砂”模式,假设UI界面的背景颜色像素值相同,那么在UI界面为“磨砂”模式的情况下,UI界面的摩擦系数G要比UI界面为正常模式下的摩擦系数G大。It should be understood that, in some embodiments, the friction coefficient G is also positively correlated with the UI interface background ambiguity, that is, the greater the UI interface background ambiguity, the greater the friction coefficient G, and the smaller the UI interface background ambiguity, the greater the friction coefficient G. Also smaller. For example, the user can set the UI interface to the "frosted" mode through the system settings of the tablet computer 100. Assuming that the background color pixel values of the UI interface are the same, then when the UI interface is in the "frosted" mode, the friction coefficient of the UI interface G is larger than the friction coefficient G when the UI interface is in normal mode.
步骤406,根据光标101的物理属性以及图标的物理属性,生成光标101与图标交互时的动画交互效果。 Step 406, according to the physical property of the cursor 101 and the physical property of the icon, an animation interaction effect when the cursor 101 interacts with the icon is generated.
可以理解,在本申请实施例中,平板电脑100可以根据物理规律,为光标101和具有不同物理属性的图标设置不同的动画交互效果。例如,如果图标的质量比较大、磁力比较强,那么光标101在靠近或脱离图标时,受到的磁力吸引就越强,光标101会更快地靠近图标或更慢地脱离图标;又或者如果光标101在系统主题为亮色下的质量比系统主题为暗色下的质量要大,那么光标101在亮色主题下接触图标,图标因之而发生的倾斜会小于光标101在暗色主题下接触图标,图 标因之而发生的倾斜。It can be understood that in the embodiment of the present application, the tablet computer 100 can set different animation interaction effects for the cursor 101 and icons with different physical attributes according to physical laws. For example, if the quality of the icon is relatively large and the magnetic force is relatively strong, then when the cursor 101 approaches or leaves the icon, the magnetic attraction received will be stronger, and the cursor 101 will approach the icon faster or leave the icon more slowly; The quality of 101 under the system theme is bright color is greater than that under the system theme of dark color, then the cursor 101 touches the icon under the bright color theme, and the tilt of the icon will be smaller than that of the cursor 101 under the dark theme. resulting inclination.
具体地,在通过上述步骤402以及404得到光标101的质量、磁力、以及与UI界面的摩擦系数和图标的质量和磁力后,用户在移动光标101靠近或离开图标时,平板电脑100将为光标101与图标之间设置如上图2以及下图5至图11所示的动画交互效果。Specifically, after obtaining the quality and magnetic force of the cursor 101 through the above-mentioned steps 402 and 404, as well as the friction coefficient with the UI interface and the quality and magnetic force of the icon, when the user moves the cursor 101 to approach or leave the icon, the tablet computer 100 will Between 101 and the icon, animation interaction effects as shown in Figure 2 above and Figure 5 to Figure 11 below are set.
例如,光标101在图标磁力作用下,加速靠近图标或减速离开图标(参考图3);或者光标101在图标磁力作用下产生符合物理规律的形变(参考图5),或者图标由于光标的磁力作用发生符合物理规律的形变(参见图6)以提醒用户图标已被光标101选中或光标101正在靠近或远离图标,并且可以理解,当光标101或图标所受到的磁力越大,其形变量也越大;又或者当用户移动光标101选中图标时,图标由于被光标101“按压”而产生如图7所示的3D倾斜效果。其中,光标101与图标之间交互的动画交互效果将在下文进行详细描述,此处不再赘述。For example, under the magnetic force of the icon, the cursor 101 accelerates towards the icon or decelerates away from the icon (refer to FIG. 3); Deformation (see FIG. 6 ) that conforms to physical laws occurs to remind the user that the icon has been selected by the cursor 101 or that the cursor 101 is approaching or moving away from the icon, and it can be understood that when the cursor 101 or the icon is subject to a greater magnetic force, the greater the amount of deformation. or when the user moves the cursor 101 to select an icon, the icon is “pressed” by the cursor 101 to produce a 3D tilt effect as shown in FIG. 7 . Wherein, the animation interaction effect of the interaction between the cursor 101 and the icon will be described in detail below, and will not be repeated here.
对应上文中光标交互的具体实现方法,下面结合附图5至12介绍根据本申请光标交互方法实现的光标交互动画交互效果。具体地,下文将从光标101靠近或远离图标阶段所用的时间、产生的形变等角度,详细介绍本申请实施例提供的上述光标101与各个图标之间的动画交互效果。Corresponding to the specific implementation method of cursor interaction described above, the animation interaction effect of cursor interaction realized according to the cursor interaction method of the present application will be introduced below with reference to FIGS. 5 to 12 . Specifically, the animation interaction effect between the above-mentioned cursor 101 and each icon provided by the embodiment of the present application will be introduced in detail below from the perspectives of the time taken for the cursor 101 to approach or move away from the icon, and the resulting deformation.
(1)光标101靠近或远离图标阶段的耗时将根据图标物理属性发生变化。(1) The time spent when the cursor 101 approaches or moves away from the icon will vary according to the physical properties of the icon.
首先,可以理解,在真实物理世界中,当某一具有磁力的物体T1靠近没有被完全固定的、具有磁力的物体T2时,在物体T2磁力的作用下,物体T1和物体T2之间会呈现相互靠近的趋势。例如,如图8A所示,磁铁形成的磁场范围为P 2,此时用户按压硬币距离磁铁的距离L 1。当用户向上移动硬币进入磁铁的磁场范围P 2,并距离磁铁距离为L 2时,如图8B所示,硬币虽然已经在磁铁的磁力作用范围内,但是由于距离较远,所以磁铁仍未与硬币产生接触;用户继续向上移动硬币,如图8C所示,当用户将硬币移至距离磁铁距离为L 3时,此时硬币与磁铁产生接触,并且如图8D所示,由于硬币被用户按压无法靠近磁铁所以磁铁在于硬币磁力的作用下向硬币靠近。并且,在物体T2磁力的作用下,物体T1会具备加速度,进而使得物体T1能够加速靠近物体T2。如果此时物体T2和物体T1所在的平面不是光滑的平面,那么物体T1在靠近物体T2的过程中还受到摩擦阻力的作用,此时,物体T1的加速度就由物体T1受到的物体T2的磁力以及物体T1与平面之间的摩擦阻力共同决定。 First of all, it can be understood that in the real physical world, when a magnetic object T1 is close to a magnetic object T2 that is not completely fixed, under the action of the magnetic force of the object T2, there will be a gap between the object T1 and the object T2. trend towards each other. For example, as shown in FIG. 8A , the range of the magnetic field formed by the magnet is P 2 , and the user presses the coin at a distance L 1 from the magnet. When the user moves the coin up to enter the magnetic field range P 2 of the magnet, and the distance from the magnet is L 2 , as shown in Figure 8B, although the coin is already within the magnetic force range of the magnet, the magnet is still not in contact with the magnet due to the long distance. The coin makes contact; the user continues to move the coin upwards, as shown in Figure 8C, when the user moves the coin to a distance of L3 from the magnet, the coin makes contact with the magnet at this time, and as shown in Figure 8D, since the coin is pressed by the user Can't get close to the magnet, so the magnet is close to the coin under the action of the coin's magnetic force. Moreover, under the action of the magnetic force of the object T2, the object T1 will have acceleration, so that the object T1 can accelerate to approach the object T2. If the plane where the object T2 and the object T1 are located is not a smooth plane at this time, then the object T1 is still affected by frictional resistance in the process of approaching the object T2. At this time, the acceleration of the object T1 is determined by the magnetic force of the object T2 received by the object T1 and the frictional resistance between the object T1 and the plane are jointly determined.
基于上述物理现象,以光标101为物体T1,图标为物体T2,光标101靠近图标为例,计算光标101相对于图标的加速度的过程如下:Based on the above physical phenomena, taking the cursor 101 as the object T1, the icon as the object T2, and the cursor 101 approaching the icon as an example, the process of calculating the acceleration of the cursor 101 relative to the icon is as follows:
1)首先根据光标101与UI界面的背景摩擦系数计算出光标101所受到的摩擦阻力f1。1) First, calculate the friction resistance f1 experienced by the cursor 101 according to the background friction coefficient between the cursor 101 and the UI interface.
在一些实施例中,平板电脑100利用上述公式(四)计算出光标101与UI界面背景的摩擦系数G。为了便于说明,下面以背景颜色为亮色为例,则光标101与UI背景摩擦系数G=1+(OXFFFFFF-OXFFFFFF)*摩擦力换算系数=1为例,计算光标101与UI界面背景之间的摩擦阻力f1。In some embodiments, the tablet computer 100 calculates the coefficient of friction G between the cursor 101 and the background of the UI interface by using the above formula (4). For the convenience of explanation, take the background color as bright color as an example below, then the cursor 101 and the UI background friction coefficient G=1+(OXFFFFFF-OXFFFFFF)*friction force conversion coefficient=1 as an example, calculate the friction between the cursor 101 and the UI interface background Friction resistance f1.
当计算出光标101与UI背景摩擦系数G后,光标101所受到的摩擦阻力f1可以根据公式(五)计算:After calculating the friction coefficient G between the cursor 101 and the UI background, the frictional resistance f1 experienced by the cursor 101 can be calculated according to formula (5):
f1=光标质量*g*光标与UI界面背景的摩擦系数   (五)f1=cursor quality*g*the friction coefficient between the cursor and the UI interface background (5)
其中,g为重力加速度,一般为10m/s 2Wherein, g is the gravitational acceleration, generally 10m/s 2 .
2)其次,利用公式(六)根据光标101受到的图标的磁力F1以及光标101所受摩擦阻力f1计 算出光标101的总受力F:2) Next, use the formula (6) to calculate the total force F of the cursor 101 according to the magnetic force F1 of the icon received by the cursor 101 and the frictional resistance f1 of the cursor 101:
F=F1+f     (六)F=F1+f (6)
3)根据牛顿定律F=M 2a 1计算出光标101的加速度a 1,并且光标101将以加速度a 1向图标靠近。 3) Calculate the acceleration a 1 of the cursor 101 according to Newton's law F=M 2 a 1 , and the cursor 101 will approach the icon with the acceleration a 1 .
通过上述方法,当用户将光标101移动至图标的磁力范围时,光标101会以加速度a 1加速向图标靠近,并且,可以理解,当光标101脱离图标继续运动时,光标101将受到图标的磁力、光标101与界面之间的摩擦阻力,使得光标101减速运动并停止。例如,如图9所示,当用户移动光标101进入图标的磁场范围,由于在图标磁力F1以及摩擦阻力f的作用下,光标101会具备与光标101移动同向的加速度a 1,该加速度a 1可以使光标101加速靠近图标,而当用户移动光标101离开图标时,在图标磁力F1以及摩擦阻力f的作用下,光标101也会具备某一个与光标101行进方向相反的加速度,使得光标101离开图标的速度逐渐变小并最终停止。 Through the above method, when the user moves the cursor 101 to the magnetic force range of the icon, the cursor 101 will accelerate towards the icon with acceleration a1, and it can be understood that when the cursor 101 leaves the icon and continues to move, the cursor 101 will be subjected to the magnetic force of the icon 1. The frictional resistance between the cursor 101 and the interface makes the cursor 101 decelerate and stop. For example, as shown in FIG. 9 , when the user moves the cursor 101 into the magnetic field range of the icon, under the action of the icon magnetic force F1 and frictional resistance f, the cursor 101 will have an acceleration a 1 in the same direction as the cursor 101 moves, and the acceleration a 1 The cursor 101 can be accelerated to approach the icon, and when the user moves the cursor 101 away from the icon, under the action of the icon magnetic force F1 and frictional resistance f, the cursor 101 will also have a certain acceleration that is opposite to the direction of the cursor 101, so that the cursor 101 The speed away from the icon gradually decreases and eventually stops.
并且,为了使得光标101与图标交互效果更加符合物理世界规律,在一些实施例中,电子设备可以将图标设置为不完全固定的,即图标可以在其与光标101的作用下,向光标101靠近,并且,当光标101脱离图标或选中图标后,图标在回复至原位。即,电子设备将图标的一端设置为与一虚拟弹簧固定连接,例如如图10所示,如此,当光标101与图标在磁力作用下相互靠近后并选中图标后,图标能够由于虚拟弹簧的弹力作用发生诸如回弹、跳动等动画交互效果,并最终在虚拟弹簧弹力的作用下回复至原位。其中,弹簧的弹力作用遵循胡克定律,并且应理解,本申请对图标与弹簧之间,基于弹簧的弹力作用产生的动画交互效果不作限制。Moreover, in order to make the interaction between the cursor 101 and the icon more consistent with the laws of the physical world, in some embodiments, the electronic device can set the icon to be not completely fixed, that is, the icon can approach the cursor 101 under the action of the cursor 101 , and, when the cursor 101 leaves the icon or selects the icon, the icon returns to its original position. That is, the electronic device sets one end of the icon to be fixedly connected to a virtual spring, such as shown in FIG. The effect produces animation interaction effects such as rebound and jump, and finally returns to the original position under the action of the virtual spring force. Wherein, the elastic force of the spring follows Hooke's law, and it should be understood that this application does not limit the animation interaction effect between the icon and the spring based on the elastic force of the spring.
通过上述方法,光标101与图标之间则实现如上图3所示的动画交互效果。Through the above method, the animation interaction effect shown in FIG. 3 above is realized between the cursor 101 and the icon.
(2)光标101靠近或远离图标阶段,光标101将根据图标物理属性发生形变。(2) When the cursor 101 approaches or moves away from the icon, the cursor 101 will deform according to the physical properties of the icon.
如前文所述的,由于每个图标都具有磁力,所以光标101与各个图标之间均会产生吸引力,进而使得光标101在靠近或远离图标时,会受到图标的磁力作用而发生形变。具体地,如图5A所示,此时光标101处于微信图标103的热区P 3边缘;当光标101进一步靠近微信图标103时,光标101会在微信图标103的引力作用下发生如图5B所示的形变;并且当用户继续移动光标101靠近微信图标103时,将如图5C所示,光标101所在图层隐藏在微信图标103所在图层的下层,同时微信图标103的体积会变大。从图5B到图5C的变化过程,在视觉上会呈现出光标101被微信图标103“吸”进微信图标103内,并且微信图标103由于“吸”入光标101,所以微信图标103的体积会增大。 As mentioned above, since each icon has magnetic force, there will be an attractive force between the cursor 101 and each icon, so that when the cursor 101 approaches or moves away from the icon, it will be deformed by the magnetic force of the icon. Specifically, as shown in Figure 5A, the cursor 101 is at the edge of the hot zone P3 of the WeChat icon 103 at this time; and when the user continues to move the cursor 101 close to the WeChat icon 103, as shown in Figure 5C, the layer where the cursor 101 is located is hidden in the lower layer of the layer where the WeChat icon 103 is located, and the volume of the WeChat icon 103 will become larger. From Figure 5B to Figure 5C, the cursor 101 will be "sucked" into the WeChat icon 103 by the WeChat icon 103 visually, and the WeChat icon 103 will be "sucked" into the cursor 101, so the volume of the WeChat icon 103 will be reduced. increase.
同理,当用户移动光标101离开微信图标103时,如图5D所示,由于光标101“吸附”在微信图标103上,所以,微信图标103会跟随光标101靠近热区P 3边缘;然后用户继续移动光标101远离微信图标103,光标101在微信图标103引力的作用下,逐渐从微信图标103中脱离,并且同时发生如图5E所示的形变,同时由于光标101从微信图标103中脱离出来,微信图标103的“体积”也会回复至图5A所示的初始大小;直至光标101完全脱离微信图标103后,如图5F所示,光标101也回复至如图5A所示的初始形状。 Similarly, when the user moves the cursor 101 away from the WeChat icon 103, as shown in Figure 5D, since the cursor 101 is "adsorbed" on the WeChat icon 103, the WeChat icon 103 will follow the cursor 101 and approach the edge of the hot zone P3 ; then the user Continue to move the cursor 101 away from the WeChat icon 103, the cursor 101 is gradually detached from the WeChat icon 103 under the gravitational force of the WeChat icon 103, and at the same time the deformation as shown in Figure 5E occurs, and because the cursor 101 is detached from the WeChat icon 103 , the "volume" of the WeChat icon 103 will also return to the initial size shown in Figure 5A; until the cursor 101 is completely separated from the WeChat icon 103, as shown in Figure 5F, the cursor 101 will also return to the initial shape shown in Figure 5A.
上述实施例介绍了光标101在靠近或离开图标时,由于图标的引力致使光标101发生形变的过程,可以理解的,在一些实施例中,当光标101靠近或离开图标时,图标也可以在光标101的引力作用下发生形变。The above-mentioned embodiments have introduced the process that the cursor 101 deforms due to the gravitational force of the icon when the cursor 101 approaches or leaves the icon. 101 deformed under the gravitational force.
具体地,如图6A所示,此时光标101处于钉钉图标104的热区P 4边缘;当用户移动光标101进一步靠近钉钉图标104时,在光标101引力的作用下,钉钉图标104将发生如图6B所示的形变; 并且当用户移动光标101继续靠近钉钉图标104,光标101所在图层被隐藏在钉钉图标104所在图层的下层,此时在视觉上呈现的效果为光标101与钉钉图标104融为一体,同时钉钉图标104发生如图6C所示的形变,可以看出,图6C中的钉钉图标104的“体积”大于图6A中钉钉图标104的“体积”。 Specifically, as shown in FIG. 6A , the cursor 101 is at the edge of the hot zone P 4 of the DingTalk icon 104 at this time; The deformation as shown in Figure 6B will occur; and when the user moves the cursor 101 and continues to approach the DingTalk icon 104, the layer where the cursor 101 is located is hidden under the layer where the DingTalk icon 104 is located, and the visual effect at this time is The cursor 101 is integrated with the DingTalk icon 104, and the DingTalk icon 104 is deformed as shown in Figure 6C. It can be seen that the "volume" of the DingTalk icon 104 in Figure 6C is larger than that of the DingTalk icon 104 in Figure 6A "volume".
当用户移动光标101脱离钉钉图标104时,钉钉图标104将跟随光标101移动至如图6D所示的热区P 4边缘;然后用户继续移动光标101,光标101将从钉钉图标104中脱离出来,并且在光标101引力的作用下,钉钉图标104将发生如图6E所示的形变;然后当光标101完全脱离钉钉图标104后,如图6F所示,钉钉图标104将回复至如图6A所示的初始形状。 When the user moves the cursor 101 away from the DingTalk icon 104, the DingTalk icon 104 will follow the cursor 101 and move to the edge of the hot zone P4 as shown in FIG. Detach, and under the gravitational force of the cursor 101, the DingTalk icon 104 will deform as shown in Figure 6E; then when the cursor 101 is completely detached from the DingTalk icon 104, as shown in Figure 6F, the DingTalk icon 104 will recover to the initial shape as shown in Figure 6A.
可以理解的是,在另一些实施例中,当用户在钉钉图标104热区P 4范围内移动光标101时,如图6G至图6I示,钉钉图标104不仅能够跟随光标101移动,还将因为被光标101“吸引”而发生如图6G至图6I所示的形变。其中,在图6G中,光标101的中心位置与钉钉图标104的中心位置一致,所以在视觉上呈现的效果为钉钉图标104的边缘向中心聚拢;当用户朝着斜上方向d移动光标101至图6I所示的位置的过程中,钉钉图标104将发生如图6H的形变,直至光标101移动至图6I所示的位置,钉钉图标104回复至如图6G所示的形变。并且还可以理解,在用户移动光标101在钉钉图标104热区P 4移动时,均会发生上述图6G至图6I所示的动画交互效果,直至光标101完全脱离钉钉图标104。 It can be understood that, in some other embodiments, when the user moves the cursor 101 within the hot zone P4 of the DingTalk icon 104, as shown in FIGS. The deformation as shown in FIGS. 6G-6I will occur due to being "attracted" by the cursor 101 . Among them, in FIG. 6G , the center position of the cursor 101 is consistent with the center position of the DingTalk icon 104, so the visual effect is that the edges of the DingTalk icon 104 gather toward the center; when the user moves the cursor toward the diagonally upward direction d 101 to the position shown in FIG. 6I , the nail icon 104 will deform as shown in FIG. 6H , until the cursor 101 moves to the position shown in FIG. 6I , and the nail icon 104 returns to the deformation shown in FIG. 6G . And it can also be understood that when the user moves the cursor 101 in the hot zone P4 of the DingTalk icon 104, the animation interaction effects shown in FIGS.
(3)光标101在选中图标或将要取消选中图标时,图标发生的对应的3D(dimension)效果。(3) When the cursor 101 selects an icon or is about to unselect the icon, a corresponding 3D (dimension) effect occurs on the icon.
由于本申请的交互方法为光标101以及图标均定义了物理属性,使得光标101以及图标具备近似于真实物理世界中物体的属性。而在真实物理世界中,当使用X物体按压Y物体时,Y物体一般会发生形变或者朝按压方向发生一定倾斜,例如,如图11A所示,当使用X物体按压Y物体时,Y物体表面形成如图11B所示的凹陷区域,或者Y物体朝按压方向倾斜,所以在一些实施例中,图标也可以由于被光标101选中而发生如图7所示的3D倾斜效果。Since the interaction method of the present application defines physical attributes for both the cursor 101 and the icon, the cursor 101 and the icon have attributes similar to objects in the real physical world. However, in the real physical world, when an X object is used to press an Y object, the Y object generally deforms or tilts toward the pressing direction. For example, as shown in Figure 11A, when an X object is used to press a Y object, the surface of the Y object A concave area is formed as shown in FIG. 11B , or the Y object is tilted toward the pressing direction, so in some embodiments, the icon can also have a 3D tilting effect as shown in FIG. 7 due to being selected by the cursor 101 .
具体地,如图7A所示,此时光标101处于马上办图标105的热区P 5边缘,当光标101进一步靠近马上办图标105并覆盖马上办图标105上时,马上办图标105会发生如图7B所示的“倾斜”效果,当用户继续移动光标101直至光标101所在图层隐藏在马上办图标105所在图层下方,马上办图标105发生如图7C所示的形变,即马上办图标105的“体积”会增大。 Specifically, as shown in FIG. 7A , the cursor 101 is now at the edge of the hot zone P5 of the do-now icon 105. For the "tilt" effect shown in Figure 7B, when the user continues to move the cursor 101 until the layer where the cursor 101 is located is hidden under the layer where the icon 105 is located, the icon 105 will be deformed as shown in Figure 7C, that is, the icon icon The "volume" of the 105 will increase.
同理,当用户移动光标101离开马上办图标105时,由于光标101再一次覆盖在马上办图标105上,所以马上办图标105会发生如图7D所示“倾斜”效果,直至光标101完全脱离马上办图标105,马上办图标105回复至如图7A所示的初始形状。Similarly, when the user moves the cursor 101 away from the do-now icon 105, since the cursor 101 covers the do-now icon 105 again, the do-now icon 105 will have a "tilt" effect as shown in Figure 7D until the cursor 101 is completely separated The do-now icon 105, the do-now icon 105 returns to the initial shape as shown in FIG. 7A.
(4)光标101在选中图标或将要取消选中图标时,光标101发生光效应,进而影响图标产生光效应。(4) When the cursor 101 selects an icon or is about to unselect an icon, the cursor 101 produces a light effect, which further affects the icon to produce a light effect.
在一些实施例中,为了提示用户已经选中某个图标,当用户移动光标101与图标接触时,图标可以发生对应的光效应以提醒用户该图标已被选中。具体地,如图12A所示,此时光标101在Insta gram图标106(下称“IG图标”)的热区P 6边缘,当用户继续移动光标101与IG图标106接触后,光标101会产生光效应以提示用户已选中IG图标106,并且,光标101的光效应会透过IG图标106反映出来,为用户提供如图12B所示的视觉效果;当用户继续移动光标101时,为了向用户展示光标101的移动轨迹,光标101会继续发光并在IG图标106下移动(如图12C至图12D所示),此时的视觉效果为用户能够透过IG图标106观察到光标101移动的轨迹,以便于用户确定根据光标101的位置,进行后续操作,例如用户将光标101移出至IG图标106的热区P 6. In some embodiments, in order to remind the user that an icon has been selected, when the user moves the cursor 101 to touch the icon, a corresponding light effect may occur on the icon to remind the user that the icon has been selected. Specifically, as shown in FIG. 12A, the cursor 101 is at the edge of the hot zone P6 of the Instagram icon 106 (hereinafter referred to as "IG icon"). When the user continues to move the cursor 101 and contacts the IG icon 106, the cursor 101 will Generate a light effect to prompt the user to select the IG icon 106, and the light effect of the cursor 101 will be reflected through the IG icon 106, providing the user with a visual effect as shown in Figure 12B; when the user continues to move the cursor 101, in order to The user shows the movement track of the cursor 101, the cursor 101 will continue to emit light and move under the IG icon 106 (as shown in Figure 12C to Figure 12D), the visual effect at this time is that the user can observe the movement of the cursor 101 through the IG icon 106 track, so that the user can determine the position of the cursor 101 and perform subsequent operations, for example, the user moves the cursor 101 to the hot zone P 6 .
当用户移动光标101远离IG图标106时,会带给用户如图12E所示的视觉效果,即光标101的光效应会靠近IG图标106的热区P 6边缘;直至光标101完全脱离IG图标106,如图12F所示,光标101的光效应将消失,并且回复至如图12A所示的大小。 When the user moves the cursor 101 away from the IG icon 106, it will bring the user a visual effect as shown in FIG. , as shown in FIG. 12F , the light effect of the cursor 101 will disappear and return to the size shown in FIG. 12A .
以上为通过本申请的光标交互方法提供的用户使用光标101靠近图标或者脱离图标时产生的动画交互效果。通过前述光标101与图标之间的交互动画交互效果,使用户通过光标101与图标进行人机交互的方式更贴近于用户在物理世界中的交互方式,提高了用户的人机交互体验。The above is the animation interaction effect generated when the user uses the cursor 101 to approach or leave the icon provided by the cursor interaction method of the present application. Through the above-mentioned interactive animation interaction effect between the cursor 101 and the icon, the human-computer interaction mode of the user through the cursor 101 and the icon is closer to the user's interaction mode in the physical world, and the user's human-computer interaction experience is improved.
而且可以理解,在本申请的光标交互方法中,由于每个图标的图像信息不同,所以基于图像信息确定的各个图标的物理属性也不相同,进而光标101与各个图标之间产生的磁吸引力也不相同,所以当用户移动光标101靠近或离开如图1所示界面中不同的应用程序图标时,平板电脑100上展示的光标101与图标交互的动画交互效果也不相同。故相较于前文所述的由电子设备预设的单一的动画交互效果,通过本申请的光标交互方法能为用户提供更好的人机交互体验。Moreover, it can be understood that in the cursor interaction method of the present application, since the image information of each icon is different, the physical attributes of each icon determined based on the image information are also different, and the magnetic attraction force generated between the cursor 101 and each icon is also different. are not the same, so when the user moves the cursor 101 close to or away from different application program icons in the interface shown in FIG. Therefore, compared with the single animation interaction effect preset by the electronic device mentioned above, the cursor interaction method of the present application can provide users with a better human-computer interaction experience.
需要说明的是,在实际应用中,在用户移动光标101靠近或远离某个图标的过程中,平板电脑100需要判断用户移动光标101靠近的目标图标,进而确定与光标101和目标图标相关的动画交互效果,并在光标101与目标图标交互过程中显示该动画交互效果。具体地,平板电脑100确定光标101靠近的目标图标以及根据光标101以及目标图标显示对应的动画交互效果的方法如图13所示,方法1300包括:It should be noted that in practical applications, when the user moves the cursor 101 close to or away from a certain icon, the tablet computer 100 needs to determine the target icon that the user moves the cursor 101 close to, and then determine the animation associated with the cursor 101 and the target icon. interaction effect, and display the animation interaction effect during the interaction process between the cursor 101 and the target icon. Specifically, the method for the tablet computer 100 to determine the target icon approached by the cursor 101 and display the corresponding animation interaction effect according to the cursor 101 and the target icon is shown in FIG. 13 , the method 1300 includes:
步骤1302,获取光标101与图标之间的距离。 Step 1302, acquiring the distance between the cursor 101 and the icon.
可以理解,平板电脑100需要根据光标101与某个图标之间的距离,确定光标101是否要靠近该图标。It can be understood that the tablet computer 100 needs to determine whether the cursor 101 is going to approach the icon according to the distance between the cursor 101 and the icon.
在一些实施例中,平板电脑100可以获取光标101与图标中心的距离,作为判断光标101是否靠近图标的标志,也可以获取光标101与图标所在热区边界的距离作为光标101是否靠近图标的标志。例如,如图14A所示,平板电脑100可以根据光标101中心点Px3至微信图标103中心点Px1之间的距离L X1X3是否大于或等于预设值,来确定光标101是否靠近该光标101。 In some embodiments, the tablet computer 100 can obtain the distance between the cursor 101 and the center of the icon as a sign for judging whether the cursor 101 is close to the icon, or can obtain the distance between the cursor 101 and the boundary of the hot zone where the icon is located as a sign for whether the cursor 101 is close to the icon . For example, as shown in FIG. 14A , the tablet computer 100 can determine whether the cursor 101 is close to the cursor 101 according to whether the distance L X1X3 between the center point Px3 of the cursor 101 and the center point Px1 of the WeChat icon 103 is greater than or equal to a preset value.
光标101也可以根据光标101的中心点Px3与图标热区边缘之间的距离,确定光标101靠近的目标图标。具体地,如图14B所示,平板电脑100可以根据光标101中心点Px3至微信图标103热区P 3之间的距离Lx1是否大于或等于预设值,来确定光标101是否靠近该光标101。 The cursor 101 may also determine the target icon approached by the cursor 101 according to the distance between the center point Px3 of the cursor 101 and the edge of the hot zone of the icon. Specifically, as shown in FIG. 14B , the tablet computer 100 can determine whether the cursor 101 is close to the cursor 101 according to whether the distance Lx1 between the center point Px3 of the cursor 101 and the hot zone P3 of the WeChat icon 103 is greater than or equal to a preset value.
步骤1304,根据光标101与图标的距离,确定图标是否为目标图标。 Step 1304, according to the distance between the cursor 101 and the icon, determine whether the icon is a target icon.
可以理解,平板电脑100将根据光标101与某个图标之间的距离大小,来判断该图标是否为光标101靠近的目标图标。具体地,在一些实施例中,平板电脑100判断光标101与图标之间的距离是否大于或等于预设值,在光标101与图标之间的距离大于或等于预设值的情况下,确定图标为光标101靠近的目标图标。例如,以图14A所示的光标101中心点Px3至微信图标103中心点Px1之间的距离L X1X3作为平板电脑100判断微信图标103是否为目标图标为例,当光标101中心点Px3至图标中心点Px1之间的距离L X1X3大于或等于预设值(例如是5像素),则将微信图标103确定为目标图标。又例如,以图14B所示的光标101的中心点Px3与微信图标103热区边缘之间的距离作为平板电脑100判断微信图标103是否为目标图标为例,当光标101中心点Px3至热区边缘的距离Lx1大于预设值(例如是5像素),则将微信图标103确定为目标图标。 It can be understood that the tablet computer 100 will determine whether the icon is a target icon approached by the cursor 101 according to the distance between the cursor 101 and an icon. Specifically, in some embodiments, the tablet computer 100 judges whether the distance between the cursor 101 and the icon is greater than or equal to a preset value, and if the distance between the cursor 101 and the icon is greater than or equal to the preset value, determines whether the icon is the target icon approached by the cursor 101 . For example, take the distance L X1X3 between the center point Px3 of the cursor 101 and the center point Px1 of the WeChat icon 103 shown in FIG. If the distance LX1X3 between the points Px1 is greater than or equal to a preset value (for example, 5 pixels), then the WeChat icon 103 is determined as the target icon. For another example, take the distance between the center point Px3 of the cursor 101 shown in FIG. If the edge distance Lx1 is greater than a preset value (for example, 5 pixels), then the WeChat icon 103 is determined as the target icon.
步骤1306,获取与光标101以及目标图标的物理属性相关的动画交互效果,并显示该动画交互效果。 Step 1306, acquire the animation interaction effect related to the physical properties of the cursor 101 and the target icon, and display the animation interaction effect.
可以理解,平板电脑100在确定好目标图标后,将从根据上述方法400生成的光标101与图 标的动画交互效果中获取与光标101以及目标图标的物理属性相关的动画交互效果,并在光标101与目标图标交互的过程中,显示该动画交互效果。具体地,在一些实施例中,平板电脑100获取与光标101和图标相关的动画交互效果的方式可以是:It can be understood that after the tablet computer 100 determines the target icon, it will obtain the animation interaction effect related to the physical properties of the cursor 101 and the target icon from the animation interaction effect between the cursor 101 and the icon generated according to the above method 400, and display the animation interaction effect on the cursor 101 During the interaction with the target icon, the animation interaction effect is displayed. Specifically, in some embodiments, the manner in which the tablet computer 100 obtains the animation interaction effect related to the cursor 101 and the icon may be:
平板电脑100在首次生成光标101与某个图标之间交互的动画交互效果后,将该动画交互效果与光标101的物理属性以及图标的物理属性进行关联,并将该动画交互效果与光标101的物理属性以及图标的物理属性之间的关联关系,以及该动画交互效果一并存储于平板电脑100的存储器中,如此当平板电脑100获取光标101与某个图标之间交互的动画交互效果时,可以依据该动画交互效果与光标101物理属性以及图标物理属性之间的关联关系,确定该动画交互效果,并进行显示。After the tablet computer 100 generates the animation interaction effect between the cursor 101 and an icon for the first time, associate the animation interaction effect with the physical properties of the cursor 101 and the physical properties of the icon, and associate the animation interaction effect with the cursor 101 The association between the physical attributes and the physical attributes of the icon, as well as the animation interaction effect are stored in the memory of the tablet computer 100, so that when the tablet computer 100 obtains the animation interaction effect of the interaction between the cursor 101 and an icon, The animation interaction effect may be determined and displayed according to the association relationship between the animation interaction effect and the physical properties of the cursor 101 and the physical properties of the icon.
可选地,上述关联关系可以是光标101物理属性对应的编号以及图标物理属性对应的编号和动画交互效果的编号之间的关联关系,其中,光标101物理属性编号可以对应平板电脑100的系统主题,例如,假设光标101物理属性编号为001,则表示亮色主题下光标101具有的物理属性;图标物理属性编号可以对应图标中心点的坐标,例如,微信图标103中心点坐标为(100,140)那么图标物理属性编号即为100-140;动画交互效果的编号可以对应平板电脑100生成该动画交互效果的顺序,例如,平板电脑100生成微信图标103与光标101的顺序为000013,则动画交互效果的编号为000013,如此,光标101与微信图标103之间交互的动画交互效果,以及光标101和微信图标103的物理属性之间的关联关系为:001-100-140-000013。当平板电脑100确定光标101靠近的目标图标为微信图标103时,只需按照微信图标103的物理属性编号100-140,以及光标101的物理属性编号001,即可从存储器中确定光标101与微信图标103之间的动画交互效果001-100-140-000013。Optionally, the above association relationship may be the number corresponding to the physical property of the cursor 101, the number corresponding to the physical property of the icon, and the number of the animation interaction effect, wherein the number of the physical property of the cursor 101 may correspond to the system theme of the tablet computer 100 , for example, assuming that the physical property number of the cursor 101 is 001, it indicates the physical property of the cursor 101 under the bright color theme; the physical property number of the icon can correspond to the coordinates of the center point of the icon, for example, the coordinates of the center point of the WeChat icon 103 are (100, 140) Then the physical attribute number of the icon is 100-140; the numbering of the animation interaction effect can correspond to the order in which the tablet computer 100 generates the animation interaction effect. The serial number is 000013, so the animation interaction effect between the cursor 101 and the WeChat icon 103, and the relationship between the physical properties of the cursor 101 and the WeChat icon 103 is: 001-100-140-000013. When the tablet computer 100 determines that the target icon approached by the cursor 101 is the WeChat icon 103, it only needs to follow the physical attribute numbers 100-140 of the WeChat icon 103 and the physical attribute number 001 of the cursor 101 to determine the cursor 101 and the WeChat icon from the memory. The animation interaction effect between the icons 103 is 001-100-140-000013.
可以理解,在一些实施例中,用户移动光标101时可能经过多个图标,使得光标101距离多个图标的距离均大于或等于预设值,此时平板电脑100将确定多个图标均为目标图标,然后同时显示多个图标与光标101之间的动画交互效果。例如,如图14C所示,光标101的中心点Px3与微信图标103中心点Px1之间的距离K X1X3以及与马上办图标105中心点Px2之间的距离L X1X2的距离均大于预设值(例如5像素),所以平板电脑100在光标101位于图14C所示位置时,将显示光标101与微信图标103以及光标101与微信图标103之间的动画交互效果。 It can be understood that, in some embodiments, the user may pass through multiple icons when moving the cursor 101, so that the distance between the cursor 101 and the multiple icons is greater than or equal to a preset value. At this time, the tablet computer 100 will determine that the multiple icons are all targets icon, and then simultaneously display animation interaction effects between multiple icons and the cursor 101 . For example, as shown in Figure 14C, the distance K X1X3 between the center point Px3 of the cursor 101 and the center point Px1 of the Wechat icon 103 and the distance LX1X2 between the center point Px2 of the icon 105 to be done soon are all greater than the preset value (for example, 5 pixels), so when the cursor 101 is located at the position shown in FIG.
应理解,本申请旨在介绍光标101与图标交互的动画交互效果的实现过程,对电子设备如何判断光标101靠近的目标图标的方式不作限制。It should be understood that the purpose of this application is to introduce the implementation process of the animation interaction effect of the cursor 101 interacting with the icon, and there is no limitation on how the electronic device determines the target icon approached by the cursor 101 .
另外,从上文可以看出,在实现光标101与图标的交互动画的过程中,需要用户操作光标101以靠近或远离图标,而在用户操作光标101靠近图标时,由于光标101在平板电脑100的触摸屏上移动的速度与用户实际移动光标101的速度并不相同,例如,用户在如图1所示的界面上滑动手指以操纵光标101,在物理世界中用户手指滑动光标101的速度可能为15像素/8毫秒,但是在图1所示的界面上,光标101移动的速度可能为30像素/8毫秒,又例如,用户有时候已经停止移动光标101,但是光标101基于惯性还会继续向前运动一段距离,在这种情况下,用户无法根据实际移动光标101的速度预判光标101最终停留的位置,以至于在上述情形下,用户移动光标101可能会误触某一图标,例如在图1所示的界面中,当用户快速滑动光标101以靠近天气图标102时,由于光标101在界面上移动的速度可能大于用户移动光标101的实际速度,此时光标101可能会越过天气图标102,并最终停留在短消息图标108上。In addition, it can be seen from the above that in the process of realizing the interactive animation between the cursor 101 and the icon, the user needs to operate the cursor 101 to approach or move away from the icon, and when the user operates the cursor 101 to approach the icon, since the cursor 101 is on the tablet computer 100 The speed of moving on the touch screen is not the same as the speed at which the user actually moves the cursor 101. For example, the user slides his finger on the interface shown in FIG. 15 pixels/8 milliseconds, but on the interface shown in Figure 1, the moving speed of the cursor 101 may be 30 pixels/8 milliseconds, and for example, the user sometimes stops moving the cursor 101, but the cursor 101 will continue to move toward In this case, the user cannot predict the final position of the cursor 101 according to the actual speed of moving the cursor 101, so that in the above situation, the user may touch an icon by mistake when moving the cursor 101, for example, in In the interface shown in FIG. 1 , when the user quickly slides the cursor 101 to get close to the weather icon 102, since the speed at which the cursor 101 moves on the interface may be greater than the actual speed at which the user moves the cursor 101, the cursor 101 may cross the weather icon 102 at this time. , and stay on the short message icon 108 at last.
故为了使平板电脑100能够根据用户移动光标101的速度动态地调整光标101在平板电脑100 上的移动速度,以使用户能够控制光标101最终停留的位置,以避免上述情况发生。例如,在用户需要接近某个图标时,光标101能够加速移动以帮助用户接近目标图标,而在用户将要接近某个图标时,光标101能够减速移动以帮助用户精确地选中目标图标。在一些实施例中,平板电脑100可以通过设置显控增益,动态地调整光标101的移动速度。也即,当用户需要移动光标101接近某个距离较远的图标时,平板电脑100可以选择一个较大的显控增益,使得用户移动光标101的实际速度能够转换为较大的光标101的移动速度,以使光标101能够更快地靠近图标;当用户需要移动光标101选中某个图标时,平板电脑100可以选择一个较小的显控增益,使得用户移动光标101的实际速度与光标101在平板电脑101上的移动速度尽快能接近,以使用户能够根据移动光标101的实际速度,预测光标101在平板电脑100上的移动速度,进而实现对光标101位置的精准控制。Therefore, in order for the tablet computer 100 to dynamically adjust the moving speed of the cursor 101 on the tablet computer 100 according to the speed at which the user moves the cursor 101 , the user can control the final stop position of the cursor 101 to avoid the above situation. For example, when the user needs to approach a certain icon, the cursor 101 can move faster to help the user approach the target icon, and when the user is about to approach a certain icon, the cursor 101 can move slowly to help the user accurately select the target icon. In some embodiments, the tablet computer 100 can dynamically adjust the moving speed of the cursor 101 by setting the display control gain. That is, when the user needs to move the cursor 101 close to an icon that is far away, the tablet computer 100 can select a larger display control gain, so that the actual speed at which the user moves the cursor 101 can be converted into a larger movement of the cursor 101 Speed, so that the cursor 101 can approach the icon faster; when the user needs to move the cursor 101 to select an icon, the tablet computer 100 can select a smaller display control gain, so that the actual speed of the user moving the cursor 101 is the same as that of the cursor 101. The moving speed on the tablet computer 101 can be approached as soon as possible, so that the user can predict the moving speed of the cursor 101 on the tablet computer 100 according to the actual speed of the moving cursor 101 , and then realize precise control of the position of the cursor 101 .
其中,显控增益(Control Display Gain)表示平板电脑100的触摸屏(显示屏)上光标101移动的速度与用户在显示屏手指移动光标101的速度的比值,即CD Gain=(光标移动速度)/(手指移动光标的速度),其中,手指移动光标101的速度表示用户在物理世界中移动光标101的速度,光标101移动速度表示光标101响应于用户的操作,在触摸屏上移动的速度。Wherein, the control display gain (Control Display Gain) represents the ratio of the speed at which the cursor 101 moves on the touch screen (display screen) of the tablet computer 100 to the speed at which the user moves the cursor 101 on the display screen, i.e. CD Gain=(cursor movement speed)/ (The speed at which the finger moves the cursor), where the speed at which the finger moves the cursor 101 represents the speed at which the user moves the cursor 101 in the physical world, and the speed at which the cursor 101 moves represents the speed at which the cursor 101 moves on the touch screen in response to the user's operation.
为了更好地理解显示控增益的含义,下面简单介绍一些实施例中,平板电脑100基于不同的操作系统实现的上述效果。In order to better understand the meaning of the display control gain, the following briefly introduces the above-mentioned effects achieved by the tablet computer 100 based on different operating systems in some embodiments.
具体地,图15A为Windows触摸屏显控增益曲线,windows触摸屏显控增益可分为“快”、“中”、“慢”等档次,分别对应图15A所示的曲线s1、s2、s3。从图15A可以看出,显控增益档次为“快”时,需要用户移动光标101的速度大于5像素每毫秒时,光标101才会具有速度,并随着用户实际移动光标101的速度增加而增加;而当显控增益档次为“中”时,用户移动光标101的速度不到5像素每8毫秒,光标101就会具有速度;当显控增益档次为“低”时,用户移动光标101的速度只要大于0像素每8毫秒,光标101就会具有速度,说明当显控增益的档次较低时,平板电脑100触摸屏检测用户移动光标101速度的精度较高,即在显控增益档次较低的时候,用户只需做轻微移动,即可操控光标101,而当显控增益档次较高时,平板电脑100触摸屏检测用户移动光标101速度的精度较低,即用户需要大幅度快速移动光标101,才可以操控光标101移动。Specifically, FIG. 15A is a display and control gain curve of a Windows touch screen. The display and control gains of a Windows touch screen can be divided into "fast", "medium", and "slow" grades, corresponding to the curves s1, s2, and s3 shown in FIG. 15A. It can be seen from FIG. 15A that when the gain level of the display control is "fast", the cursor 101 will only have a speed when the user's moving speed of the cursor 101 is greater than 5 pixels per millisecond, and the speed increases with the user's actual moving speed of the cursor 101 increase; and when the display control gain grade is "medium", the speed of the user moving the cursor 101 is less than 5 pixels every 8 milliseconds, the cursor 101 will have a speed; when the display control gain grade is "low", the user moves the cursor 101 As long as the speed is greater than 0 pixels every 8 milliseconds, the cursor 101 will have a speed, indicating that when the level of the display and control gain is low, the touch screen of the tablet computer 100 can detect the speed of the user moving the cursor 101 with high accuracy, that is, when the level of the display and control gain is low When it is low, the user only needs to move the cursor 101 slightly, but when the gain level of display control is high, the accuracy of the touch screen of the tablet computer 100 to detect the speed of the cursor 101 moved by the user is low, that is, the user needs to move the cursor rapidly 101, the cursor 101 can be manipulated to move.
所以基于图15A所示的显控增益曲线,当平板电脑100根据用户移动光标101的速度动态调整显控增益,以调整光标101在触摸屏上的移动速度时,对用户移动光标101的速度是有限制的,即用户移动光标101的速度只有超过了5像素每毫秒,平板电脑100才会将触摸屏的显控增益档次调整为“快”,进而使得光标101在触摸屏上移动的速度也随之变快,而当用户移动光标101的速度小于5像素每毫秒时,平板电脑100不会将显控增益档次调整为“快”。并且,图15A中所示的显控增益均小于1,也即光标101在触摸屏上移动的速度不会大于用户实际移动光标101的速度。可以理解,用户在移动光标101靠近图标时,当然是希望光标101能够尽可能快地靠近图标,而基于图15A所示的显控增益曲线,用户如需使光标101尽可能快地靠近图标,只能同时提高实际移动光标101的速度,而且即便如此,光标101在触摸屏上移动的速度也不会超过用户实际移动光标101的速度,这显然与用户预期不符合。Therefore, based on the display control gain curve shown in FIG. 15A , when the tablet computer 100 dynamically adjusts the display control gain according to the speed at which the user moves the cursor 101 to adjust the moving speed of the cursor 101 on the touch screen, the speed at which the user moves the cursor 101 has a certain effect. Only when the speed at which the user moves the cursor 101 exceeds 5 pixels per millisecond, the tablet computer 100 will adjust the display control gain level of the touch screen to "fast", so that the speed at which the cursor 101 moves on the touch screen will also change accordingly. fast, and when the speed of the user moving the cursor 101 is less than 5 pixels per millisecond, the tablet computer 100 will not adjust the display control gain level to "fast". Moreover, the display control gains shown in FIG. 15A are all less than 1, that is, the speed at which the cursor 101 moves on the touch screen will not be greater than the speed at which the user actually moves the cursor 101 . It can be understood that when the user moves the cursor 101 close to the icon, he of course hopes that the cursor 101 can approach the icon as quickly as possible, and based on the display control gain curve shown in FIG. The speed of actually moving the cursor 101 can only be increased at the same time, and even so, the speed of the cursor 101 moving on the touch screen will not exceed the speed at which the user actually moves the cursor 101, which obviously does not meet the user's expectations.
同样,图15B为Mac触摸屏显控增益曲线,Mac触摸屏的显控增益也可分为“快”、“中”、“慢”档次,分别对应图15B所示的曲线s4、曲线s5、曲线s6,与Windows触摸屏显控增益曲线的不同之处在于,Mac触摸屏的检测精度比Windows触摸屏的检测精度要高。从图15B可以看 出,无论Mac触摸屏的显控增益档次为“快”、“中”或“慢”,只要用户实际移动光标101的速度大于0,光标101在触控屏上都会具有速度。Similarly, Figure 15B shows the display control gain curve of the Mac touch screen. The display control gain of the Mac touch screen can also be divided into "fast", "medium" and "slow" grades, corresponding to the curve s4, curve s5 and curve s6 shown in Figure 15B respectively , the difference from the display control gain curve of the Windows touch screen is that the detection accuracy of the Mac touch screen is higher than that of the Windows touch screen. It can be seen from FIG. 15B that no matter the display control gain level of the Mac touch screen is "fast", "medium" or "slow", as long as the user actually moves the cursor 101 at a speed greater than 0, the cursor 101 will have a speed on the touch screen.
例如,当用户实际移动光标101的速度为5像素每8毫秒时,Mac触摸屏显控增益档次为“快”时,光标101的速度为:5×0.1=0.5像素每8毫秒;当Mac触摸屏显控增益档次为“中”时,光标101的速度为:5×0.15=0.75像素每8毫秒;当Mac触摸屏显控增益档次为“慢”时,光标101的速度为:5×1=5像素每8毫秒,接近于用户的实际输入速度。For example, when the user actually moves the cursor 101 at a speed of 5 pixels per 8 milliseconds, and when the display control gain level of the Mac touch screen is "fast", the speed of the cursor 101 is: 5×0.1=0.5 pixels per 8 milliseconds; When the control gain level is "medium", the speed of the cursor 101 is: 5×0.15=0.75 pixels per 8 milliseconds; when the Mac touch screen display control gain level is "slow", the speed of the cursor 101 is: 5×1=5 pixels Every 8 milliseconds, which is close to the actual input speed of the user.
但是,在同样的场景下,当Windows触摸屏显控增益档次为“快”时,光标101的速度为5×0=0像素每8毫秒,也即Windows触摸屏无法检测到用户移动光标101的动作;当Windows触摸屏显控增益档次为“中”时,光标101的速度为:5×0.1=0.5像素每8毫秒;当Windows触摸屏显控增益档次为“慢”时,光标101的速度无限接近于0,也即此时Windows触摸屏也检测不到用户移动光标101的速度。However, in the same scene, when the Windows touch screen display control gain grade is "fast", the speed of the cursor 101 is 5*0=0 pixels per 8 milliseconds, that is, the Windows touch screen cannot detect the user's movement of the cursor 101; When the display control gain level of the Windows touch screen is "medium", the speed of the cursor 101 is: 5×0.1=0.5 pixels per 8 milliseconds; when the display control gain level of the Windows touch screen is "slow", the speed of the cursor 101 is infinitely close to 0 , that is, at this time, the Windows touch screen cannot detect the speed at which the user moves the cursor 101 .
并且,从图15B可以看出,在用户移动光标101的速度发生变化时,不同于Windows触摸屏通过转换档次的方式检测用户移动光标101的速度,并调整光标101的移动速度,Mac触摸屏是在同一显控增益档次下调整光标101的移动速度的。例如,当用户移动光标101的速度从20像素每8毫秒转换为5像素每8毫秒,Windows触摸屏的显控增益档次必须从“快”转换为“中”才可以检测到用户移动光标101的速度,并将光标101移动速度从20×0.5=10像素每8毫秒调整为5×0.1=0.5像素每8毫秒,而Mac触摸屏只需在显控增益为“快”的档次下,将光标101的速度从20×0.3=6像素每8毫秒调整为5×0.1=0.5像素每8毫秒,从中可以看出,Mac触摸屏调整显控增益档次的响应速度也比Windows触摸屏调整显控增益档次的响应速度快。Moreover, it can be seen from FIG. 15B that when the speed at which the user moves the cursor 101 changes, unlike the Windows touch screen that detects the speed at which the user moves the cursor 101 by switching levels and adjusts the speed at which the cursor 101 moves, the Mac touch screen operates at the same Adjust the moving speed of the cursor 101 under the control gain level. For example, when the speed at which the user moves the cursor 101 changes from 20 pixels per 8 milliseconds to 5 pixels per 8 milliseconds, the display control gain level of the Windows touch screen must be converted from "fast" to "medium" to detect the speed at which the user moves the cursor 101 , and adjust the moving speed of the cursor 101 from 20×0.5=10 pixels every 8 milliseconds to 5×0.1=0.5 pixels every 8 milliseconds, and the Mac touch screen only needs to set the cursor 101 under the “fast” level of the display control gain The speed is adjusted from 20×0.3=6 pixels per 8 milliseconds to 5×0.1=0.5 pixels per 8 milliseconds. It can be seen that the response speed of the Mac touch screen to adjust the display and control gain level is also faster than that of the Windows touch screen to adjust the display and control gain level. quick.
但是,与图15A类似,Mac触摸屏能够调整的显控增益也均小于或等于1,也即对于Mac触摸屏来说,光标101在Mac触摸屏上移动的速度也不会超过用户实际移动光标101的速度。可以理解,与图15A中Windows触摸屏类似,这也不符合用户的期望。However, similar to FIG. 15A , the display and control gains that can be adjusted by the Mac touch screen are all less than or equal to 1, that is, for the Mac touch screen, the speed at which the cursor 101 moves on the Mac touch screen will not exceed the actual speed at which the user moves the cursor 101 . Understandably, similar to the Windows touch screen in FIG. 15A, this also does not meet user expectations.
为了解决上述问题,在一些实施例中,本申请将结合上述方法400中计算出的光标101在移动过程中受到的摩擦阻力以及图标的磁吸引力,为平板电脑100设计如下图16所示的显控增益曲线,其中,图16A为平板电脑100触摸屏的显控增益曲线,图16B为对应于图16A中不同显控增益档次下,光标101移动速度随实际输入速度(用户实际移动光标101的速度)的变化曲线图。In order to solve the above problems, in some embodiments, the present application will combine the friction resistance and the magnetic attraction force of the icon during the movement of the cursor 101 calculated in the above method 400 to design the tablet computer 100 as shown in Figure 16 below. Display and control gain curve, wherein, FIG. 16A is the display and control gain curve of the touch screen of the tablet computer 100, and FIG. 16B is corresponding to different display and control gain levels in FIG. speed) curves.
具体地,图16A为平板电脑100触摸屏的显控增益曲线,从图16中可以看出,平板电脑100触摸屏的检测精度比较高,只要用户移动光标101的速度不为0,平板电脑100触摸屏即可检测到用户移动光标101的操作,使得光标101具有如图16B所示的速度。Specifically, FIG. 16A is the display and control gain curve of the touch screen of the tablet computer 100. It can be seen from FIG. 16 that the detection accuracy of the touch screen of the tablet computer 100 is relatively high. An operation by the user to move the cursor 101 such that the cursor 101 has a speed as shown in FIG. 16B can be detected.
而且,结合图16A和图16B可以看出,当平板电脑100触摸屏的显控增益档次为“慢”时,显控增益为固定值0.25,也即光标101的移动速度一直为用户实际移动光标101的速度的1/4,这种情形下,用户能够通过移动光标101时的速度,预判光标101会被移动到的位置,使得用户能够更加准确地操控光标101,尤其是当用户移动光标101对某些图标或者功能选项进行选择的时候。例如,在如图1所示的界面上,用户移动光标101在天气图标102和短消息图标108之间选择时,用户能够更加精准地控制光标101,以在天气图标102和短消息图标108之间做出选择,而不至于发生误点击。Moreover, it can be seen from FIG. 16A and FIG. 16B that when the display and control gain grade of the touch screen of the tablet computer 100 is "slow", the display and control gain is a fixed value of 0.25, that is, the moving speed of the cursor 101 is always equal to the actual moving speed of the cursor 101 by the user. In this case, the user can predict the position where the cursor 101 will be moved by the speed at which the cursor 101 is moved, so that the user can manipulate the cursor 101 more accurately, especially when the user moves the cursor 101 When selecting certain icons or function options. For example, on the interface shown in Figure 1, when the user moves the cursor 101 to select between the weather icon 102 and the short message icon 108, the user can control the cursor 101 more precisely to select between the weather icon 102 and the short message icon 108. to make a choice between clicks without accidental clicks.
进一步地,由于平板电脑100触摸屏的检测精度较高,当用户移动光标101的速度从快到慢时,从图16A中可以看出,平板电脑100均可以在同一显控增益档次下调整对应的光标101的移动速度。例如,用户移动光标101的速度从120像素每8毫秒转变为0像素每8毫秒,平板电脑 100可以在显控增益档次为“快”的档次下,将光标101的移动速度从375像素每毫秒调整为0像素每毫秒,平板电脑100也可以在显控增益档次为“中”的档次下,将光标101的移动速度从180像素每毫秒调整为0像素每毫秒,平板电脑100还可以在显控增益档次为“慢”的档次下,将光标101的移动速度从30像素每毫秒调整为0像素每毫秒。Furthermore, since the detection accuracy of the touch screen of the tablet computer 100 is relatively high, when the user moves the cursor 101 from fast to slow, it can be seen from FIG. The speed at which the cursor 101 moves. For example, if the speed at which the user moves the cursor 101 changes from 120 pixels per 8 milliseconds to 0 pixels per 8 milliseconds, the tablet computer 100 can change the moving speed of the cursor 101 from 375 pixels per millisecond to "fast". Adjusted to 0 pixels per millisecond, the tablet computer 100 can also adjust the moving speed of the cursor 101 from 180 pixels per millisecond to 0 pixels per millisecond when the display control gain level is "medium", and the tablet computer 100 can also adjust the speed of the cursor 101 to 0 pixels per millisecond. When the gain control level is set to "slow", the moving speed of the cursor 101 is adjusted from 30 pixels per millisecond to 0 pixels per millisecond.
并且,从图16A中可以看出,平板电脑100触摸屏的显控增益可以大于1,也即光标101在平板电脑100触摸屏上移动的速度是可以大于用户实际移动光标101的速度的。具体地,从图16B中可以看出,当用户实际移动光标101的速度相同,显控增益档次越高,光标101的移动速度也越大,例如,假设用户移动光标101的速度为120像素每8毫秒,在“快”档次显控增益下,光标101移动的速度为357像素每8毫秒,在“中”档次显控增益下,光标101移动的速度为180像素每8毫秒,在“慢”档次显控增益下,光标101移动的速度为30像素每8毫秒。Moreover, it can be seen from FIG. 16A that the display control gain of the touch screen of the tablet computer 100 may be greater than 1, that is, the speed at which the cursor 101 moves on the touch screen of the tablet computer 100 may be greater than the speed at which the user actually moves the cursor 101 . Specifically, it can be seen from FIG. 16B that when the user actually moves the cursor 101 at the same speed, the higher the display control gain level, the faster the cursor 101 moves. For example, suppose the user moves the cursor 101 at a speed of 120 pixels per 8 milliseconds, under the "fast" level of display control gain, the moving speed of the cursor 101 is 357 pixels per 8 milliseconds, under the "medium" level of display control gain, the moving speed of the cursor 101 is 180 pixels per 8 milliseconds. Under the level display control gain, the moving speed of the cursor 101 is 30 pixels every 8 milliseconds.
所以,平板电脑100可以根据用户实际移动光标101的速度,动态地调整平板电脑100触摸屏的显控增益档次,以使用户能够更加精准地操控光标101。例如,在一些实施例中,当光标101距离目标位置较远时,用户会较快地移动光标101使其能够尽快靠近目标位置,此时,平板电脑100可以将触摸屏的显控增益档次可以调整为“快”,以使用户在移动光标101的速度相同的情况下,光标101能够具有较快的速度,以更快靠近目标位置;当光标101距离目标位置较近时,用户移动光标101的速度会变慢,以便于控制光标101使其能够准确地抵达目标位置,此时,平板电脑100可以将触摸屏的显控增益档次可以调整为“慢”,以使用户更精准地控制光标101。Therefore, the tablet computer 100 can dynamically adjust the display control gain level of the touch screen of the tablet computer 100 according to the speed at which the user actually moves the cursor 101 , so that the user can control the cursor 101 more precisely. For example, in some embodiments, when the cursor 101 is far away from the target position, the user will move the cursor 101 faster so that it can approach the target position as soon as possible. is "fast", so that when the user moves the cursor 101 at the same speed, the cursor 101 can have a faster speed to get closer to the target position; when the cursor 101 is closer to the target position, the user moves the cursor 101 The speed will be slowed down so that the cursor 101 can be controlled to accurately reach the target position. At this time, the tablet computer 100 can adjust the display control gain level of the touch screen to "slow", so that the user can control the cursor 101 more precisely.
应理解,上述平板电脑100触摸屏显控增益档次“快”、“中”、“慢”及其对应的曲线a、b、c的数量仅为示例性的,在其他实施例中,平板电脑100触摸屏显控增益档次可以更多,对应的,显控增益曲线也可以更多。并且,上述显控增益的档次表示为“快”、“中”、“慢”也是示例性的,在其他实施例中,显控增益的档次还可以表示为数字、字母等,例如,“快”档次的显控增益档次表示为“5”,“中”档次的显控增益档次表示为“0”,“慢”档次的显控增益档次表示为“-5”等等,本申请对平板电脑100触摸屏显控增益档次的数量以及表示方式不作限制。It should be understood that the above-mentioned tablet computer 100 touch screen display and control gain levels "fast", "medium", "slow" and the numbers of corresponding curves a, b, c are only exemplary. In other embodiments, the tablet computer 100 There can be more display and control gain grades on the touch screen, and correspondingly, more display and control gain curves. Moreover, it is also exemplary that the grades of the above-mentioned display control gains are expressed as "fast", "medium" and "slow". In other embodiments, the grades of display control gain can also be expressed as numbers, letters, etc., for example, "fast The display control gain level of the "grade is expressed as "5", the display control gain level of the "medium" level is expressed as "0", the display control gain level of the "slow" level is expressed as "-5" and so on. There is no limit to the number and representation of the gain levels displayed and controlled on the touch screen of the computer 100 .
进一步地,由于光标101的初始速度取决于用户移动光标101并释放光标101时的速度,所以如果用户释放光标101时的速度不同,光标101受到的相同的摩擦阻力f1影响,最终停留的位置会不相同。具体地,光标101速度与光标101移动的距离之间的关系示意图如图17所示,其中,X轴代表光标101移动的距离,Y轴代表光标101的速度,可以看出,当光标101在速度最大时被释放后,由于其最大速度不同,将导致光标101最终移动的距离也不相同,比如,假设用户释放光标101时,光标101的速度达到最大值,曲线(a)、(b)、(c)对应的光标101的最大速度分别为va,vb,vc,以及光标101的移动距离为Sa、Sb、Sc,从图17可知,vc大于va大于vb,并且Sc大于Sa大于Sb。Further, since the initial speed of the cursor 101 depends on the speed when the user moves the cursor 101 and releases the cursor 101, if the speed when the user releases the cursor 101 is different, the cursor 101 is affected by the same frictional resistance f1, and the final staying position will be different. Not the same. Specifically, a schematic diagram of the relationship between the speed of the cursor 101 and the distance moved by the cursor 101 is shown in FIG. After being released at the maximum speed, the final moving distance of the cursor 101 will be different due to the difference in its maximum speed. For example, when the user releases the cursor 101, the speed of the cursor 101 reaches the maximum value. Curves (a), (b) The maximum speed of the cursor 101 corresponding to (c) is va, vb, vc respectively, and the moving distance of the cursor 101 is Sa, Sb, Sc. As can be seen from FIG. 17, vc is greater than va than vb, and Sc is greater than Sa than Sb.
具体地,如图18A所示,假设用户将光标101从位置X1移动至位置X2,并在位置X2释放光标101,此时光标101的速度为v2,在摩擦阻力f1的作用下,光标101最终停留的位置为X3;如图18B所示,假设用户依然是将光标101从位置X1移动至位置X2释放,但是此时光标101在位置X2处的速度为v3(大于v2),那么此时光标101在同样的摩擦阻力f1的作用下,最终将停留在位置X3′,位置X3′与位置X2的距离大于位置X3与位置X2的距离。Specifically, as shown in FIG. 18A, suppose the user moves the cursor 101 from position X1 to position X2, and releases the cursor 101 at position X2. At this time, the speed of the cursor 101 is v2. Under the action of frictional resistance f1, the cursor 101 finally The staying position is X3; as shown in Figure 18B, suppose the user still moves the cursor 101 from the position X1 to the position X2 to release, but at this time the speed of the cursor 101 at the position X2 is v3 (greater than v2), then the cursor 101 at this time Under the same frictional resistance f1, 101 will eventually stay at position X3', and the distance between position X3' and position X2 is greater than the distance between position X3 and position X2.
另外,用户在移动光标101的时候,由于平板电脑100的硬件采样率不足,或者采样精确度不足,光标101的报点位置不连续,具体如图19A所示,用户移动光标101时,平板电脑100显示屏上显示的光标101的距离间隔分别为h1、h2、h3,从图中可以看出h1、h2、h3之间并不相 等。为了提高光标101报点位置的准确性,使得用户移动光标101时,平板电脑100显示屏上的光标101距离能够如图19B所示,即光标101距离间隔h1’=h2’=h3’,在一些实施例中,还可以通过对光标101位置进行卡尔曼滤波(Kalman filtering)操作,使得光标101位置更加精准,以使显示在平板电脑100上的报点位置更加准确。In addition, when the user moves the cursor 101, because the hardware sampling rate of the tablet computer 100 is insufficient, or the sampling accuracy is insufficient, the reporting position of the cursor 101 is discontinuous. As shown in FIG. 19A, when the user moves the cursor 101, the tablet computer The distance intervals of the cursor 101 displayed on the display screen 100 are h1, h2, and h3 respectively, and it can be seen from the figure that h1, h2, and h3 are not equal. In order to improve the accuracy of reporting the position of the cursor 101, when the user moves the cursor 101, the distance of the cursor 101 on the display screen of the tablet computer 100 can be as shown in FIG. In some embodiments, Kalman filtering (Kalman filtering) operation may be performed on the position of the cursor 101 to make the position of the cursor 101 more precise, so that the reported position displayed on the tablet computer 100 is more accurate.
具体地,首先建立一个线性随机微分方程(Linear Stochastic Dufference equation)(七)以及平板电脑100输入输出系统测量值(八):Specifically, at first set up a linear stochastic differential equation (Linear Stochastic Dufference equation) (seven) and tablet computer 100 input and output system measurement values (eight):
X k=AX k-1+BU k+W k   (七) X k =AX k-1 +BU k +W k (7)
Z k=HX k+V k  (八) Z k =HX k +V k (eight)
其中,X k是k时刻的平板电脑100的系统状态,U k是k时刻对用户对光标101的控制量,A和B是平板电脑100的平板电脑100输入输出系统参数,Z k是k时刻的光标101移动速度的测量值,H是平板电脑100输入输出系统的参数,W k表示光标101移动过程中的噪声,V k表示测量过程的噪声,W k的协方差为Q,V k的协方差为R Wherein, X k is the system state of the tablet computer 100 at time k, U k is the user’s control amount of the cursor 101 at time k, A and B are input and output system parameters of the tablet computer 100 of the tablet computer 100, and Z k is time k The measured value of the moving speed of the cursor 101, H is the parameter of the tablet computer 100 input and output system, W k represents the noise in the moving process of the cursor 101, V k represents the noise of the measurement process, the covariance of W k is Q, and the V k is Covariance is R
假设当前状态为K,根据平板电脑100输入输出系统的上一状态预测出当前状态K的过程如下式(九):Assuming that the current state is K, the process of predicting the current state K according to the last state of the input-output system of the tablet computer 100 is as follows (nine):
X( K|K-1)=AX (K-1|K-1)+BU k    (九) X( K|K-1 )=AX (K-1|K-1) +BU k (nine)
其中,X (K|K-1)是利用上一状态预测的结果,X (K-1|K-1)是上一状态的最优的结果,U k为现在状态的用户的控制量,如果当前没有用户的控制量,U k为0。应理解,用户的控制量指的是用户移动光标101的力度、时长等控制量。 Among them, X (K|K-1) is the result predicted by the previous state, X (K-1|K-1) is the optimal result of the previous state, U k is the user's control amount in the current state, If there is no user's control quantity at present, U k is 0. It should be understood that the user's control amount refers to the user's control amount such as the strength and duration of moving the cursor 101 .
同时,更新X (K|K-1)的协方差P (K|K-1)=AP (K-1|K-1)A′+Q(十),其中,P (K-1|K-1)是X (K-1|K-1)对应的协方差,A′表示A的转置矩阵,Q是平板电脑100输入输出测量过程的协方差。 At the same time, update the covariance P (K|K-1 ) of X (K|K -1) = AP (K-1|K-1) A′+Q(ten), where P (K-1|K -1) is the covariance corresponding to X (K−1|K−1) , A′ represents the transpose matrix of A, and Q is the covariance of the input and output measurement process of the tablet computer 100 .
之后,利用式(七)至式(十)得到了现在状态的预测结果,然后再采集当前的测量值,并结合预测结果和测量值,利用公式(十一)得到现在状态(K)的最优化估算值X(K K)。Afterwards, use formula (7) to formula (10) to get the prediction result of the current state, and then collect the current measurement value, and combine the prediction result and measurement value, use the formula (11) to get the maximum value of the current state (K) Optimize estimates X(K K).
X (K|K)=X (K|K-1)+Kg k(Z k-HX (K|K-1))   (十一) X (K|K) =X (K|K-1) +Kg k (Z k -HX (K|K-1) ) (eleven)
其中,Kg k为卡尔曼增益(Kalman Gain)=P (K|K-1)H’/(HX (K|K-1)H’+R)   (十二)。 Wherein, Kg k is Kalman Gain=P (K|K-1) H'/(HX (K|K-1) H'+R) (12).
并且,为了使得卡尔曼滤波器不断的运动下去直到平板电脑100输入输出测量过程结束,需要利用公式(十三)更新当前状态K下的X (K|K)的协方差。 Moreover, in order to make the Kalman filter continue to move until the input and output measurement process of the tablet computer 100 ends, it is necessary to use the formula (13) to update the covariance of X (K|K) in the current state K.
P (K|K)=(I-Kg(K)HP (K|K-1)   (十三) P (K|K) =(I-Kg(K)HP (K|K-1) (thirteen)
其中,I为数值均为1的矩阵。Among them, I is a matrix whose values are all 1.
如此,当系统进入K+1状态时,P (K|K)即为公式(十)中的P (K-1|k-1)In this way, when the system enters the K+1 state, P (K|K) is P (K-1|k-1) in formula (10) .
然后利用上述公式(七)至公式(十三),根据平板电脑100上用户控制光标101移动的距离以及平板电脑100采集到的光标101移动的距离(测量值)计算出光标101在当前状态下移动的最优估计值,以此提高光标101位置的精准度,进而实现如图19B所示的光标101报点连续的效果。Then utilize above-mentioned formula (seven) to formula (thirteen), calculate the cursor 101 in the current state according to the distance that the user controls cursor 101 to move on the tablet computer 100 and the distance (measured value) that the tablet computer 100 gathers to move the cursor 101 The optimal estimated value of the movement, so as to improve the accuracy of the position of the cursor 101, and then achieve the effect of continuous reporting of the cursor 101 as shown in FIG. 19B.
图20示出了一些实施例提供的一例平板电脑100的结构示意图。Fig. 20 shows a schematic structural diagram of an example of a tablet computer 100 provided by some embodiments.
平板电脑100可以包括处理器110,屏幕111,内部存储器120,接口模块130,电源模块 140,无线通信模块150,移动通信模块160,音频模块170,摄像头180,触摸传感器190。The tablet computer 100 may include a processor 110, a screen 111, an internal memory 120, an interface module 130, a power module 140, a wireless communication module 150, a mobile communication module 160, an audio module 170, a camera 180, and a touch sensor 190.
可以理解的是,本申请实施例示意的结构并不构成对平板电脑100的具体限定。在本申请另一些实施例中,平板电脑100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in the embodiment of the present application does not constitute a specific limitation on the tablet computer 100 . In some other embodiments of the present application, the tablet computer 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange different components. The illustrated components can be realized 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 (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
处理器110中还可以设置存储器,用于存储指令和数据。在本申请的实施例中,处理器110可以执行对应用的界面显示方法。A memory may also be provided in the processor 110 for storing instructions and data. In the embodiment of the present application, the processor 110 may execute a method for displaying an interface of an application.
屏幕111用于显示图像,视频等。在本申请的实施例中,平板电脑100可以根据应用的显示界面在屏幕111中的显示区域的大小,动态地调整应用的显示界面中各显示元素的位置。The screen 111 is used to display images, videos and the like. In the embodiment of the present application, the tablet computer 100 can dynamically adjust the positions of the display elements in the display interface of the application according to the size of the display area of the display interface of the application on the screen 111 .
内部存储器120可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储平板电脑100使用过程中所创建的数据(比如音频数据,电话本等)等。在本申请的实施例中,内部存储器120中可以存储应用的显示风格参数以及应用的显示界面中的显示元素的布局规则和显示元素的显示风格模型。这里的布局规则用于配置应用的默认显示界面。The internal memory 120 may be used to store computer-executable program code, which includes instructions. The internal memory 120 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the tablet computer 100 . In the embodiment of the present application, the display style parameters of the application, the layout rules of the display elements in the display interface of the application, and the display style models of the display elements may be stored in the internal memory 120 . The layout rules here are used to configure the default display interface of the application.
接口模块130可以用于连接外部存储卡,例如Micro SD卡,实现扩展平板电脑100的存储能力。外部存储卡通过接口模块130与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The interface module 130 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the tablet computer 100. The external memory card communicates with the processor 110 through the interface module 130 to implement a data storage function. Such as saving music, video and other files in the external memory card.
电源模块140接收电池的输入,为处理器110,内部存储器120,显示屏111等供电。The power module 140 receives the input of the battery, and provides power for the processor 110, the internal memory 120, the display screen 111 and so on.
无线通信模块150可以提供应用在平板电脑100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(blue tooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等的无线通信的解决方案。The wireless communication module 150 can provide applications on the tablet computer 100 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (blue tooth, BT), global navigation, etc. Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
移动通信模块160可以提供应用在平板电脑100上的包括2G/3G/4G/5G等无线通信的解决方案。The mobile communication module 160 can provide wireless communication solutions including 2G/3G/4G/5G applied on the tablet computer 100 .
平板电脑100通过GPU,显示屏111,以及应用处理器等实现显示功能。The tablet computer 100 realizes the display function through the GPU, the display screen 111 , and the application processor.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
平板电脑100可以通过摄像头180以及应用处理器等实现拍摄功能。The tablet computer 100 can realize the shooting function through the camera 180 and the application processor.
触摸传感器190,也称“触控器件”。触摸传感器190可以设置于屏幕111,由触摸传感器190与屏幕111组成触摸屏,也称“触控屏”。在本申请的实施例中,触摸传感器190用于识别用户在平板电脑100的屏幕111上执行的用户操作以及获取用户操作的物理数据,例如,物理数据为用户操作包含的作用力,作用方向等。The touch sensor 190 is also called "touch device". The touch sensor 190 may be disposed on the screen 111, and the touch sensor 190 and the screen 111 constitute a touch screen, also called “touch screen”. In the embodiment of the present application, the touch sensor 190 is used to identify the user operation performed by the user on the screen 111 of the tablet computer 100 and obtain physical data of the user operation, for example, the physical data includes the force and direction of the user operation, etc. .
图21是本发明实施例的平板电脑100的软件结构框图。FIG. 21 is a block diagram of the software structure of the tablet computer 100 according to the embodiment of the present invention.
如图21所示,平板电脑100可以分为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。As shown in Figure 21, the tablet computer 100 can be divided into application program layer, application program framework layer, Android runtime (Android runtime) and system library, and kernel layer.
其中,应用程序层可以包括一系列应用程序包。Wherein, the application program layer may include a series of application program packages.
如图21所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。在本申请的实施例中,应用程序包可以包括图库应用等。As shown in FIG. 21, the application package may include application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message. In the embodiment of the present application, the application program package may include a gallery application and the like.
应用程序框架层可以包括视图系统,手势识别系统等。Application framework layers can include view systems, gesture recognition systems, and more.
在本申请的实施例中,手势识别系统用于识别用户在平板电脑100的屏幕上对图库应用执行的用户操作。In the embodiment of the present application, the gesture recognition system is used to recognize the user's operation performed on the gallery application on the screen of the tablet computer 100 .
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用的显示界面。显示界面可以由一个或多个显示元素组成的,这里显示元素是指在电子设备的屏幕中,应用的显示界面中的元素。例如,显示元素可以包括按钮、文本、图片、弹窗、菜单、标题栏、列表或者搜索框等。应用的显示界面可以包括至少一个显示元素。在本申请的实施例中,视图系统可以用于实现本申请的应用的显示界面的布局方案,例如,在应用启动时,视图系统可以基于应用的显示界面在平板电脑100的屏幕中的显示区域的大小,动态地调整显示界面中显示元素的位置;同时,视图系统还可以对应用的显示界面配置显示风格模型,并在应用启动时,视图系统使用应用的显示风格参数通过显示风格模型计算出显示界面中显示元素的显示效果。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build the display interface of the application. The display interface may be composed of one or more display elements, where the display elements refer to the elements in the display interface of the application on the screen of the electronic device. For example, display elements may include buttons, text, pictures, pop-up windows, menus, title bars, lists, or search boxes. The display interface of the application may include at least one display element. In the embodiment of the present application, the view system can be used to implement the layout scheme of the display interface of the application of the present application. For example, when the application starts, the view system can be based on the display area of the display interface of the application on the screen of the tablet computer 100 size, dynamically adjust the position of the display elements in the display interface; at the same time, the view system can also configure the display style model for the application's display interface, and when the application starts, the view system uses the application's display style parameters to calculate through the display style model The display effect of the display elements in the display interface.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
本申请实施例还提供了一种电子设备,该电子设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。The embodiment of the present application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and operable on the at least one processor, and the processor executes The computer program implements the steps in any of the above method embodiments.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the foregoing method embodiments when executed.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储 在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in computer-readable storage media. When executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program codes to a photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media. Such as U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/network device and method may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in 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 or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
以上描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the above description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当……时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed depending on the context as "when" or "once" or "in response to determining" or "in response to detecting" . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification and appended claims of the present application, the terms "first", "second", "third" and so on are only used to distinguish descriptions, and should not be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.

Claims (21)

  1. 一种光标交互方法,应用于电子设备,其特征在于,所述方法包括:A cursor interaction method applied to electronic equipment, characterized in that the method includes:
    确定与所述光标产生交互的目标图标;determining a target icon for interaction with the cursor;
    显示与所述光标的物理属性以及所述目标图标的物理属性相关的动画交互效果,其中,所述物理属性是基于所述光标的图像信息和所述目标图标的图像信息,利于预设的物理规则,模拟物理世界中物体的物理属性得到的,并且所述动画交互效果展示出所述光标和所述目标图标在交互过程中遵循对应的物理规律所产生的物理现象。Displaying animation interaction effects related to the physical properties of the cursor and the physical properties of the target icon, wherein the physical properties are based on the image information of the cursor and the image information of the target icon, which is beneficial to preset physical properties The rules are obtained by simulating the physical properties of objects in the physical world, and the animation interaction effect shows the physical phenomenon produced by the cursor and the target icon following the corresponding physical laws during the interaction process.
  2. 根据权利要求1所述的方法,其特征在于,所述确定与所述光标产生交互的目标图标,包括:The method according to claim 1, wherein the determining the target icon interacting with the cursor comprises:
    设置包括图标的热区,所述热区的各边界与所述图标中心之间的距离大于预设距离;setting a hot zone including an icon, the distance between each boundary of the hot zone and the center of the icon is greater than a preset distance;
    在所述光标进入所述热区的情况下,确定所述热区中的图标为所述目标图标。When the cursor enters the hot zone, it is determined that the icon in the hot zone is the target icon.
  3. 根据权利要求1或2所述的方法,其特征在于,所述物理属性包括质量、磁力、所述光标与所述图标所在界面的摩擦系数。The method according to claim 1 or 2, wherein the physical properties include mass, magnetic force, and a coefficient of friction between the cursor and the interface where the icon is located.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,在所述光标与所述目标图标的交互过程中,所述电子设备显示如下一种或多种动画交互效果:The method according to any one of claims 1 to 3, wherein, during the interaction process between the cursor and the target icon, the electronic device displays one or more of the following animation interaction effects:
    在所述光标靠近所述目标图标的情况下,所述光标在目标图标的磁力吸引下,加速靠近所述目标图标;When the cursor is close to the target icon, the cursor is accelerated to approach the target icon under the magnetic attraction of the target icon;
    在所述光标脱离所述目标图标的情况下,所述光标在所述目标图标的磁力吸引下,减速远离所述目标图标;When the cursor leaves the target icon, the cursor decelerates away from the target icon under the magnetic attraction of the target icon;
    在所述光标靠近或脱离所述目标图标的情况下,所述光标在所述目标图标的磁力吸引下,发生形变;When the cursor approaches or departs from the target icon, the cursor is deformed under the magnetic attraction of the target icon;
    在所述光标靠近或脱离所述目标图标的情况下,所述目标图标在所述光标的磁力吸引下,发生形变;When the cursor approaches or departs from the target icon, the target icon is deformed under the magnetic attraction of the cursor;
    在所述光标与所述目标图标产生接触的情况下,所述目标图标向所述光标所在方向发生倾斜。When the cursor comes into contact with the target icon, the target icon tilts toward the direction where the cursor is located.
  5. 根据权利要求1至3中任一项所述的方法,其特征在于,在所述光标与所述目标图标的交互过程中,所述光标与所述目标图标所在的界面之间产生阻碍所述光标运动的摩擦阻力,并且所述电子设备显示如下一种或多种动画交互效果:The method according to any one of claims 1 to 3, wherein during the interaction process between the cursor and the target icon, an obstacle between the cursor and the interface where the target icon is located Frictional resistance of cursor movement, and the electronic device displays one or more of the following animation interaction effects:
    在所述光标靠近所述目标图标的情况下,所述光标在所述目标图标的磁力、所述光标与所述摩擦阻力的作用下,加速靠近所述目标图标;When the cursor is close to the target icon, the cursor is accelerated to approach the target icon under the action of the magnetic force of the target icon, the cursor and the frictional resistance;
    在所述光标脱离所述目标图标的情况下,所述光标在所述目标图标的磁力、所述光标与所述摩擦阻力的作用下,减速远离所述目标图标。When the cursor is separated from the target icon, the cursor decelerates away from the target icon under the action of the magnetic force of the target icon, the cursor and the frictional resistance.
  6. 根据权利要求3至5中任一项所述的方法,其特征在于,所述图标的图像信息包括所述图标对应的图标图像的像素值;并且The method according to any one of claims 3 to 5, wherein the image information of the icon includes pixel values of an icon image corresponding to the icon; and
    所述方法还包括:The method also includes:
    根据所述图标图像的像素值与所述界面的背景颜色的像素值,确定所述图标的质量,所述图标的质量与所述图标图像的像素值和所述界面的背景颜色的像素值之间的差值正相关。The quality of the icon is determined according to the pixel value of the icon image and the pixel value of the background color of the interface, and the difference between the quality of the icon and the pixel value of the icon image and the pixel value of the background color of the interface is determined. The difference between is positively correlated.
  7. 根据权利要求3至5中任一项所述的方法,其特征在于,所述图标的磁力大小与所述图标的质量大小正相关。The method according to any one of claims 3 to 5, characterized in that the magnetic force of the icon is positively correlated with the mass of the icon.
  8. 根据权利要求3至5中任一项所述的方法,其特征在于,所述光标与所述图标所在界面之 间的摩擦阻力与所述光标的质量以及所述光标与所述图标所在界面之间的摩擦系数相关,所述光标与所述界面之间的摩擦系数与所述界面的像素值负相关,所述光标与所述界面之间的摩擦系数为大于1的常数。The method according to any one of claims 3 to 5, wherein the frictional resistance between the cursor and the interface where the icon is located and the mass of the cursor and the distance between the cursor and the interface where the icon is located The friction coefficient between the cursor and the interface is negatively correlated with the pixel value of the interface, and the friction coefficient between the cursor and the interface is a constant greater than 1.
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述物理规律包括摩擦力公式、加速度公式,以及弹力公式中的至少一个。The method according to any one of claims 1 to 8, wherein the physical law includes at least one of a friction formula, an acceleration formula, and an elastic force formula.
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述图标包括安装在所述电子设备桌面上的应用程序的图标以及所述应用程序运行过程中,所述应用程序界面上的图标。The method according to any one of claims 1 to 9, wherein the icons include icons of application programs installed on the desktop of the electronic device, and during the running of the application programs, the application program interface on the icon.
  11. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器,存储有计算机程序指令;a memory storing computer program instructions;
    处理器,所述处理器和存储器耦合,当所述存储器存储的计算机程序指令被所述处理器执行时使得所述电子设备执行以下操作:A processor, the processor and the memory are coupled, and when the computer program instructions stored in the memory are executed by the processor, the electronic device is made to perform the following operations:
    确定与所述光标产生交互的目标图标;determining a target icon for interaction with the cursor;
    显示与所述光标的物理属性以及所述目标图标的物理属性相关的动画交互效果,其中,所述物理属性是基于所述光标的图像信息和所述目标图标的图像信息,利于预设的物理规则,模拟物理世界中物体物理属性得到的,并且所述动画交互效果展示出所述光标和所述目标图标在交互过程中遵循对应的物理规律所产生的物理现象。Displaying animation interaction effects related to the physical properties of the cursor and the physical properties of the target icon, wherein the physical properties are based on the image information of the cursor and the image information of the target icon, which is beneficial to preset physical properties The rules are obtained by simulating the physical properties of objects in the physical world, and the animation interaction effect shows the physical phenomenon produced by the cursor and the target icon following the corresponding physical laws during the interaction process.
  12. 根据权利要求11所述的电子设备,其特征在于,所述确定与所述光标产生交互的目标图标,包括:The electronic device according to claim 11, wherein the determining the target icon interacting with the cursor comprises:
    设置包括图标的热区,所述热区的各边界与所述图标中心之间的距离大于预设距离;setting a hot zone including an icon, the distance between each boundary of the hot zone and the center of the icon is greater than a preset distance;
    在所述光标进入所述热区的情况下,确定所述热区中的图标为所述目标图标。When the cursor enters the hot zone, it is determined that the icon in the hot zone is the target icon.
  13. 根据权利要求11或12所述的电子设备,其特征在于,所述物理属性包括质量、磁力、所述光标与所述图标所在界面的摩擦系数。The electronic device according to claim 11 or 12, wherein the physical properties include mass, magnetic force, and a coefficient of friction between the cursor and the interface where the icon is located.
  14. 根据权利要求11至13中任一项所述的电子设备,其特征在于,在所述光标与所述目标图标的交互过程中,所述电子设备显示如下一种或多种动画交互效果:The electronic device according to any one of claims 11 to 13, wherein, during the interaction process between the cursor and the target icon, the electronic device displays one or more of the following animation interaction effects:
    在所述光标靠近所述目标图标的情况下,所述光标在目标图标的磁力吸引下,加速靠近所述目标图标;When the cursor is close to the target icon, the cursor is accelerated to approach the target icon under the magnetic attraction of the target icon;
    在所述光标脱离所述目标图标的情况下,所述光标在所述目标图标的磁力吸引下,减速远离所述目标图标;When the cursor leaves the target icon, the cursor decelerates away from the target icon under the magnetic attraction of the target icon;
    在所述光标靠近或脱离所述目标图标的情况下,所述光标在所述目标图标的磁力吸引下,发生形变;When the cursor approaches or departs from the target icon, the cursor is deformed under the magnetic attraction of the target icon;
    在所述光标靠近或脱离所述目标图标的情况下,所述目标图标在所述光标的磁力吸引下,发生形变;When the cursor approaches or departs from the target icon, the target icon is deformed under the magnetic attraction of the cursor;
    在所述光标与所述目标图标产生接触的情况下,所述目标图标向所述光标所在方向发生倾斜。When the cursor comes into contact with the target icon, the target icon tilts toward the direction where the cursor is located.
  15. 根据权利要求11至13中任一项所述的电子设备,其特征在于,在所述光标与所述目标图标的交互过程中,所述光标与所述目标图标所在的界面之间产生阻碍所述光标运动的摩擦阻力,并且所述电子设备显示如下一种或多种动画交互效果:The electronic device according to any one of claims 11 to 13, wherein during the interaction process between the cursor and the target icon, an obstacle occurs between the cursor and the interface where the target icon is located. frictional resistance of the cursor movement, and the electronic device displays one or more of the following animation interaction effects:
    在所述光标靠近所述目标图标的情况下,所述光标在所述目标图标的磁力、所述光标与所述摩擦阻力的作用下,加速靠近所述目标图标;When the cursor is close to the target icon, the cursor is accelerated to approach the target icon under the action of the magnetic force of the target icon, the cursor and the frictional resistance;
    在所述光标脱离所述目标图标的情况下,所述光标在所述目标图标的磁力、所述光标与所述 摩擦阻力的作用下,减速远离所述目标图标。When the cursor is separated from the target icon, the cursor decelerates away from the target icon under the action of the magnetic force of the target icon, the cursor and the frictional resistance.
  16. 根据权利要求13至15中任一项所述的电子设备,其特征在于,所述图标的图像信息包括所述图标对应的图标图像的像素值,所述方法还包括:根据所述图标图像的像素值与所述界面的背景颜色的像素值,确定所述图标的质量,所述图标的质量与所述图标图像的像素值和所述界面的背景颜色的像素值之间的差值正相关。The electronic device according to any one of claims 13 to 15, wherein the image information of the icon includes the pixel value of the icon image corresponding to the icon, and the method further includes: according to the image information of the icon image The pixel value and the pixel value of the background color of the interface determine the quality of the icon, and the quality of the icon is positively correlated with the difference between the pixel value of the icon image and the pixel value of the background color of the interface .
  17. 根据权利要求13至15中任一项所述的电子设备,其特征在于,所述图标的磁力大小与所述图标的质量大小正相关。The electronic device according to any one of claims 13 to 15, wherein the magnetic force of the icon is positively correlated with the mass of the icon.
  18. 根据权利要求13至15中任一项所述的电子设备,其特征在于,所述光标与所述图标所在界面之间的摩擦阻力与所述光标的质量以及所述光标与所述图标所在界面之间的摩擦系数相关,所述光标与所述界面之间的摩擦系数与所述界面的像素值负相关,所述光标与所述界面之间的摩擦系数为大于1的常数。The electronic device according to any one of claims 13 to 15, wherein the frictional resistance between the cursor and the interface where the icon is located and the quality of the cursor and the interface where the cursor and the icon are located The coefficient of friction between the cursor and the interface is negatively correlated with the pixel value of the interface, and the coefficient of friction between the cursor and the interface is a constant greater than 1.
  19. 根据权利要求11至18中任一项所述的电子设备,其特征在于,所述物理规律包括摩擦力公式、加速度公式,以及弹力公式中的至少一个。The electronic device according to any one of claims 11 to 18, wherein the physical law includes at least one of a friction formula, an acceleration formula, and an elastic force formula.
  20. 根据权利要求11至19中任一项所述的电子设备,其特征在于,所述图标包括安装在所述电子设备桌面上的应用程序的图标以及所述应用程序运行过程中,所述应用程序界面上的图标。The electronic device according to any one of claims 11 to 19, wherein the icon includes an icon of an application program installed on the desktop of the electronic device, and during the running of the application program, the application program Icons on the interface.
  21. 一种计算机可读介质,其特征在于,所述计算机可读介质上存储有指令,该指令在电子设备上执行时使电子设备执行权利要求1至10中任一项所述的光标交互方法。A computer-readable medium, characterized in that instructions are stored on the computer-readable medium, and when the instructions are executed on the electronic device, the electronic device executes the cursor interaction method according to any one of claims 1 to 10.
PCT/CN2022/104934 2021-07-20 2022-07-11 Cursor interaction method, electronic device, and medium thereof WO2023001011A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110823307.1A CN115639929A (en) 2021-07-20 2021-07-20 Cursor interaction method, electronic equipment and medium thereof
CN202110823307.1 2021-07-20

Publications (1)

Publication Number Publication Date
WO2023001011A1 true WO2023001011A1 (en) 2023-01-26

Family

ID=84939774

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104934 WO2023001011A1 (en) 2021-07-20 2022-07-11 Cursor interaction method, electronic device, and medium thereof

Country Status (2)

Country Link
CN (1) CN115639929A (en)
WO (1) WO2023001011A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5805165A (en) * 1995-08-31 1998-09-08 Microsoft Corporation Method of selecting a displayed control item
US5808601A (en) * 1995-09-12 1998-09-15 International Business Machines Corporation Interactive object selection pointer method and apparatus
CN103997668A (en) * 2014-02-25 2014-08-20 华为技术有限公司 Method for displaying selection of mobile equipment, and terminal equipment
CN105955461A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Interactive interface management method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5805165A (en) * 1995-08-31 1998-09-08 Microsoft Corporation Method of selecting a displayed control item
US5808601A (en) * 1995-09-12 1998-09-15 International Business Machines Corporation Interactive object selection pointer method and apparatus
CN103997668A (en) * 2014-02-25 2014-08-20 华为技术有限公司 Method for displaying selection of mobile equipment, and terminal equipment
CN105955461A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Interactive interface management method and system

Also Published As

Publication number Publication date
CN115639929A (en) 2023-01-24

Similar Documents

Publication Publication Date Title
JP7324813B2 (en) Systems, methods, and graphical user interfaces for interacting with augmented and virtual reality environments
US11960707B2 (en) Devices, methods, and graphical user interfaces for moving a current focus using a touch-sensitive remote control
JP6516790B2 (en) Device, method and graphical user interface for adjusting the appearance of a control
KR101841599B1 (en) User terminal device for supporting user interaction and methods thereof
US8766984B2 (en) Graphics rendering methods for satisfying minimum frame rate requirements
US11385761B2 (en) Device, method, and graphical user interface for composing CGR files
US11250604B2 (en) Device, method, and graphical user interface for presenting CGR files
EP3448053A1 (en) Systems and methods for user generated content authoring
WO2011127309A1 (en) Avatar editing environment
CN109388309B (en) Menu display method, device, terminal and storage medium
CN110865765A (en) Terminal and map control method
WO2023001011A1 (en) Cursor interaction method, electronic device, and medium thereof
WO2018068364A1 (en) Method and device for displaying page, graphical user interface, and mobile terminal
US11393164B2 (en) Device, method, and graphical user interface for generating CGR objects
KR20150118036A (en) Head mounted display apparatus and method for displaying a content
CN108174273A (en) Method, system and the mobile terminal of hierarchical control are realized based on Data Synthesis
CN117032540A (en) Interactive operation response method, device, computer equipment and storage medium
CN116943180A (en) Control interaction method and related device
WO2023177661A1 (en) Augmented reality visual or acoustic feedback
KR102101411B1 (en) Display apparatus and avatar displaying method thereof
CN117150166A (en) Page interaction method, page interaction device, electronic equipment and computer readable storage medium
WO2014200540A1 (en) Fixed header control for grouped grid panel

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: 22845176

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE