Pointer moving method and device, electronic equipment, medium and program product
By converting and controlling the display gain function based on the user operation speed detected by the input device, the problem of inconsistent pointer movement behavior on different devices is solved, resulting in a more consistent user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2024-10-29
- Publication Date
- 2026-05-01
AI Technical Summary
In existing technologies, the pointer moves inconsistently on different devices, resulting in a decline in the responsiveness of the user's swipe experience.
By converting the user operation speed detected by the input device, the movement speed representing the physical distance is obtained, and the control display gain function is used to ensure that the pointer moves at a consistent speed on the screen, thus avoiding different control display gain mapping curves on different devices.
Improved cross-device pointer movement compatibility and user swipe responsiveness.
Smart Images

Figure CN121957445A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic equipment technology, and in particular to a pointer movement method, apparatus, electronic equipment, medium, and program product. Background Technology
[0002] Pointers are one of the most frequent and fundamental tasks in graphical user interfaces (GUIs). Users can easily control the movement of a pointer on an electronic device screen using input devices such as mice, touchpads, and graphics tablets. The pointer's trajectory on the screen can be the same as the trajectory detected by the input device. The pointer's speed on the screen can be determined by the speed detected by the input device and the control display gain. The control display gain can vary with the speed detected by the input device. The greater the speed detected by the input device, the greater the control display gain, allowing the pointer to travel a greater distance on the screen for the same physical displacement during high-speed movement, thus improving the efficiency of long-distance pointing tasks.
[0003] However, most electronic devices with input devices use scaling based on the Android open-source project, which can improve pointing efficiency to some extent. However, since the pointer movement algorithm is easily affected by hardware characteristics, it is impossible to maintain consistent pointer behavior when users interact on different devices, which reduces the user's swiping responsiveness experience. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this disclosure provides a pointer movement method, apparatus, electronic device, medium, and program product.
[0005] According to a first aspect of the present disclosure, a pointer movement method is provided, comprising: A second movement speed is determined based on a first movement speed corresponding to a user operation detected by the input device. The first movement speed represents the number of pixels moved by the user operation per unit time, and the second movement speed represents the physical distance moved by the user operation per unit time. A third movement speed is determined based on the second movement speed and the control display gain function, the third movement speed representing the physical distance the pointer moves on the screen in the unit time; A fourth movement speed is determined based on the third movement speed, the fourth movement speed representing the number of pixels the pointer moves in the screen per unit time; The pointer is moved on the screen at the fourth moving speed.
[0006] Optionally, determining the second movement speed based on the first movement speed corresponding to the user operation detected by the input device includes: Obtain the relevant parameters of the input device; The second moving speed is determined based on the first moving speed and the relevant parameters of the input device.
[0007] Optionally, when the input device is a touchpad or a graphics tablet, and the relevant parameters of the input device include the physical size and resolution of the input device, determining the second movement speed based on the first movement speed and the relevant parameters of the input device includes: The parameter calculation factor of the input device is determined based on the physical size and resolution of the input device; The product of the first moving speed and the parameter calculation factor is determined as the second moving speed.
[0008] Optionally, determining the parameter calculation factor of the input device based on the physical size and resolution of the input device includes: The parameter calculation factor of the input device is determined by the following formula:
[0009] in, The parameter calculation factor characterizing the input device. Characterizing the length of the input device, Characterizes the width of the input device. Characterizes the x-axis resolution of the input device. Characterizes the y-axis resolution of the input device.
[0010] Optionally, when the input device is a touchpad or a graphics tablet, and the relevant parameters of the input device include the pixel density of the input device, determining the second moving speed based on the first moving speed and the relevant parameters of the input device includes: The ratio of the first moving speed to the pixel density of the input device is determined as the second moving speed.
[0011] Optionally, determining the fourth moving speed based on the third moving speed includes: Obtain the relevant parameters of the screen; A fourth movement speed is determined based on the third movement speed and the relevant parameters of the screen.
[0012] Optionally, when the relevant parameters of the screen include the physical size and resolution of the screen, determining the fourth movement speed based on the third movement speed and the relevant parameters of the screen includes: The parameter calculation factors of the screen are determined based on the physical size and resolution of the screen. The ratio of the third moving speed to the parameter calculation factor of the screen is determined as the fourth moving speed.
[0013] Optionally, determining the screen parameter calculation factor based on the screen's physical size and resolution includes: The parameter calculation factor for the screen is determined using the following formula:
[0014] in, The parameter calculation factor characterizing the screen. Characterizing the length of the screen, Characterizing the width of the screen, The x-axis resolution of the screen is represented. The y-axis resolution of the screen is represented.
[0015] Optionally, when the relevant parameters of the screen include the pixel density of the screen, determining the fourth moving speed based on the third moving speed and the relevant parameters of the screen includes: The product of the third moving speed and the pixel density of the screen is determined as the fourth moving speed.
[0016] Optionally, determining the third moving speed based on the second moving speed and the control display gain function includes: Based on the second moving speed and the control display gain function, determine the target control display gain corresponding to the second moving speed; The product of the second moving speed and the target control display gain is determined as the third moving speed.
[0017] According to a second aspect of the present disclosure, a pointer moving device is provided, comprising: The first determining module is configured to determine a second moving speed based on a first moving speed corresponding to a user operation detected by the input device, wherein the first moving speed represents the number of pixels moved by the user operation per unit time, and the second moving speed represents the physical distance moved by the user operation per unit time. The second determining module is configured to determine a third moving speed based on the second moving speed and a control display gain function, the third moving speed representing the physical distance the pointer moves on the screen in the unit time. The third determining module is configured to determine a fourth moving speed based on the third moving speed, the fourth moving speed representing the number of pixels the pointer moves in the screen per unit time. The moving module is configured to move the pointer on the screen at the fourth moving speed.
[0018] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device being communicatively connected to an input device, the electronic device comprising: Screen; processor; Memory used to store processor-executable instructions; The processor is configured to execute the instructions to cause the electronic device to perform the steps of the pointer movement method provided in the first aspect of the present disclosure.
[0019] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the steps of the pointer movement method provided in the first aspect of the present disclosure.
[0020] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the pointer movement method provided in the first aspect of the present disclosure.
[0021] By adopting the above technical solution, a second movement speed is obtained by converting the first movement speed detected by the input device to represent the physical distance moved by the user operation per unit time. Then, a third movement speed representing the physical distance the pointer moves on the screen per unit time can be obtained based on the second mobile device and the control display gain function. This ensures that the input and output of the control display gain function are both movement speeds representing the physical distance moved per unit time, rather than movement speeds representing the number of pixels moved per unit time. This effectively enhances the compatibility of pointer movement across devices and improves the user's responsiveness when sliding.
[0022] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0023] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0024] Figure 1 This is a schematic diagram illustrating a pointer movement method according to an exemplary embodiment.
[0025] Figure 2 This is a flowchart illustrating a pointer movement method according to an exemplary embodiment.
[0026] Figure 3 This is a hardware framework diagram illustrating pointer movement according to an exemplary embodiment.
[0027] Figure 4 This is a curve of the control display gain function corresponding to different gear levels, as illustrated in an exemplary embodiment.
[0028] Figure 5 This is a schematic diagram illustrating a pointer movement method according to an exemplary embodiment.
[0029] Figure 6 This is a block diagram illustrating a pointer movement device according to an exemplary embodiment.
[0030] Figure 7 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0031] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0032] It should be noted that all actions involving the acquisition of signals, information, or data in this disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the location is situated, and with authorization from the owner of the relevant device.
[0033] In related technologies, the movement speed detected by the input device typically refers to the number of pixels moved per unit time. That is, the unit of the movement speed detected by the input device is a virtual unit. Scaling calculations are performed on the movement speed detected by the input device to obtain the movement speed representing the number of pixels the pointer moves on the screen per unit time. However, since the size of each pixel may differ between different input devices or screens, under the same scaling settings, different mapping curves for controlling display gain will appear for different input devices or screens. This leads to inconsistent user experience and reduces the responsiveness of the user's scrolling.
[0034] In view of this, the present disclosure provides a pointer movement method, apparatus, electronic device, medium, and program product. By converting a first movement speed corresponding to a user operation detected by an input device, a second movement speed is obtained to characterize the physical distance moved by the user operation per unit time. Then, a third movement speed characterizing the physical distance the pointer moves on the screen per unit time can be obtained based on a second mobile device and a control display gain function. This ensures that the movement speeds input and output to the control display gain function are both the physical distance moved per unit time, rather than the number of pixels moved per unit time. This avoids the problem of different control display gain mapping curves for different input devices or screens, thus effectively enhancing the compatibility of pointer movement across devices and improving the user's swiping responsiveness.
[0035] Figure 1 This is a schematic diagram illustrating a pointer movement method according to an exemplary embodiment. Figure 1 As shown, a pointer is displayed on screen A. In this disclosure, the pointer may also be referred to as a cursor, pointer, etc. The pointer can have various forms, such as a white arrow, a double arrow, a hand shape, a regularly flashing "I" shape, etc. Figure 1 In the example shown, the pointer is represented by a white arrow. Figure 1 In the diagram, region B represents the touchpad. When a user's finger slides on the touchpad, the pointer's movement on the screen follows the same trajectory as the finger's movement in physical space. For example, if the user's finger moves in a straight line on the touchpad, the pointer simultaneously moves in a straight line on the screen.
[0036] Figure 2 This is a flowchart illustrating a pointer movement method according to an exemplary embodiment. Figure 2 As shown, the pointer movement method may include the following steps.
[0037] In step S21, a second movement speed is determined based on the first movement speed corresponding to the user operation detected by the input device.
[0038] The first movement speed represents the number of pixels moved by the user's operation per unit time, and the second movement speed represents the physical distance moved by the user's operation per unit time.
[0039] The input device can be an input device capable of detecting movement information. The movement information corresponding to the user operation detected by the input device can include the movement trajectory detected by the input device and the movement speed detected by the input device. The movement trajectory detected by the input device can be the movement trajectory generated by the user's operation controlling the input device to move in physical space. In some embodiments, the movement trajectory detected by the input device can also be the movement trajectory generated by the user's finger, pressure-sensitive pen, etc., moving on the input device. The movement speed detected by the input device can be the movement speed of the input device controlled by the user's operation to move in physical space. In some embodiments, the movement speed detected by the input device can also be the movement speed of the user's finger, pressure-sensitive pen, etc., moving on the input device.
[0040] Furthermore, the movement trajectory and speed detected by the input device can also be the movement trajectory and speed of an air gesture. The input device can be a mouse, touchpad, graphics tablet, etc. This application does not limit the specific type of input device.
[0041] The electronic device executing this pointer movement method can determine a second movement speed based on a first movement speed corresponding to the user operation detected by the input device. That is, the first movement speed, which represents the number of pixels moved by the user operation per unit time, is converted into a second movement speed, which represents the physical distance moved by the user operation per unit time. In other words, the first movement speed in units of px / s is converted into a second movement speed in units of mm / s.
[0042] In step S22, a third moving speed is determined based on the second moving speed and the control display gain function. The third moving speed represents the physical distance the pointer moves on the screen per unit time.
[0043] In other words, the input and output of the display gain function are both the speed of movement representing the physical distance moved per unit time, rather than the speed of movement representing the number of pixels moved per unit time. Thus, for different devices, the input and output of the display gain function represent the speed of movement representing the physical distance moved per unit time. Since the physical distance is not affected by hardware characteristics, the curve of controlling the display gain is the same for different input devices or screens, provided that the first movement speed detected by the input device remains unchanged, ensuring a consistent user experience across different electronic devices.
[0044] In step S23, a fourth moving speed is determined based on the third moving speed. The fourth moving speed represents the number of pixels the pointer moves on the screen per unit time.
[0045] In step 24, the pointer is moved across the screen at a fourth moving speed.
[0046] Considering that the position of the pointer on the screen is usually determined by pixels, after obtaining the third moving speed in step S22, which represents the physical distance the pointer moves on the screen per unit time, the third moving speed needs to be converted into a fourth moving speed, which represents the number of pixels the pointer moves on the screen per unit time, and the pointer is moved on the screen at the fourth moving speed.
[0047] By adopting the above technical solution, a second movement speed is obtained by converting the first movement speed detected by the input device to represent the physical distance moved by the user operation per unit time. Then, a third movement speed representing the physical distance the pointer moves on the screen per unit time can be obtained based on the second mobile device and the control display gain function. This ensures that the input and output of the control display gain function are both movement speeds representing the physical distance moved per unit time, rather than movement speeds representing the number of pixels moved per unit time. This effectively enhances the compatibility of pointer movement across devices and improves the user's responsiveness when sliding.
[0048] Figure 3 This is a hardware framework diagram illustrating pointer movement according to an exemplary embodiment. (e.g.) Figure 3As shown, the input device and its co-processing MCU (Microcontroller Unit) collect data and send it to the host SOC (System on Chip) of the electronic device. For example, the input device IC (Integrated Circuit) sends touch-related data corresponding to user operations to the input device MCU via an I2C (Inter-Integrated Circuit) controller. The input device MCU then communicates with the host MCU via a half-duplex UART (Universal Asynchronous Receiver / Transmitter) protocol, sending the touch-related data to the host MCU. Alternatively, the touch-related data may be sent to the data processing unit within the host MCU. This touch-related data may include not only contact positions but also keyboard key values, hall status, power supply chip data, LED status, etc. The data processing unit primarily prioritizes the various data points within the touch-related data to determine which data will be prioritized during subsequent packet assembly. For example, the data processing unit can set the contact position to have the highest priority, meaning that contact positions are prioritized for packet assembly. After data processing, the packet assembly module assembles the processed data into packets according to the input device protocol. Then, the host SOC reads the data packets through the I2C controller to obtain the touch point position. Finally, the host SOC calculates the pointer target position using a pointer acceleration strategy deployed on it, and performs drawing, rendering, and compositing. Finally, the image is sent to the screen module for display via the DSI (Display Serial Interface) controller. The pointer acceleration strategy refers to the strategy for implementing the pointer movement method provided in this disclosure.
[0049] In addition, such as Figure 3 As shown, the hardware framework may also include an input device in-situ Hall sensor. This sensor detects whether the input device is accurately connected to the host and feeds the detection result back to the data processing unit via the input device hot-swap status management module. The data processing unit can then determine whether the input device is accurately connected to the host based on the detection result, and only process the contact-related data if the connection is confirmed.
[0050] To facilitate a better understanding of this disclosure by those skilled in the art, a complete embodiment of the pointer movement method is described below.
[0051] In this disclosure, a first moving speed can be converted into a second moving speed based on relevant parameters of the input device. In one embodiment, Figure 2Step S21, which determines the second movement speed based on the first movement speed corresponding to the user operation detected by the input device, may include: acquiring relevant parameters of the input device; and determining the second movement speed based on the first movement speed and the relevant parameters of the input device.
[0052] When the input device is a touchpad or a digitizer, the relevant parameters of the input device may include the physical size and resolution of the input device, and / or the pixel density of the input device.
[0053] In one embodiment of this example, the relevant parameters of the input device may include the pixel density of the input device. Accordingly, the specific implementation of determining the second moving speed based on the first moving speed and the relevant parameters of the input device is as follows: the ratio of the first moving speed to the pixel density of the input device is determined as the second moving speed.
[0054] The pixel density of the input device can be obtained from the physical size and resolution of the input device, for example, through the formula... Determine the pixel density of the input device, where, Characterizing the length of the input device, Characterizing the width of the input device, Characterizing the x-axis resolution of the input device, The y-axis resolution of the input device is characterized. Alternatively, the pixel density of the input device can be obtained through other means, which are not specifically limited in this disclosure.
[0055] In another embodiment of this invention, the relevant parameters of the input device may include the physical dimensions and resolution of the input device. The physical dimensions of the input device may include its length and width. Accordingly, the specific implementation for determining the second moving speed based on the first moving speed and the relevant parameters of the input device is as follows: a parameter calculation factor for the input device is determined based on its physical dimensions and resolution; the product of the first moving speed and the parameter calculation factor is then determined as the second moving speed.
[0056] For example, the parameter calculation factor for the input device is determined using the following formula:
[0057] in, The parameter calculation factor characterizing the input device Characterizing the length of the input device, Characterizing the width of the input device, Characterizing the x-axis resolution of the input device, Characterizes the y-axis resolution of the input device.
[0058] For example, suppose the first moving speed is Then it can be done through the formula , thus obtaining the second moving speed .
[0059] After obtaining the second movement speed, the third movement speed is determined based on the second movement speed and the control display gain function. Specifically, the target control display gain corresponding to the second movement speed is determined based on the second movement speed and the control display gain function, and the product of the second movement speed and the target control display gain is determined as the third movement speed.
[0060] For example, a control display gain function can be preset, and there can be one or more control display gain functions. For instance, multiple control display gain functions can be set for each gear. Figure 4 This is an exemplary embodiment illustrating the curves of the control display gain function corresponding to different gear levels. For example... Figure 4 As shown, assuming that 10 different gears can be preset with their corresponding control display gain functions, the user can select a target gear from these 10 different gears. Then, based on the second movement speed and the control display gain function corresponding to the target gear, the target control display gain corresponding to the second movement speed is determined.
[0061] exist Figure 4 In this diagram, the horizontal axis of each control display gain function curve represents the moving speed in mm / s, and the vertical axis represents the dimensionless control display gain. Therefore, after determining the control display gain function corresponding to the target gear, the vertical axis corresponding to the second moving speed can be used to determine the target control display gain for that second moving speed. Finally, the product of the second moving speed and the target control display gain is determined as the third moving speed.
[0062] After determining the third movement speed, a fourth movement speed is determined based on the third movement speed. In this disclosure, the third movement speed can be converted into a fourth movement speed based on relevant screen parameters. In one embodiment, Figure 2 Step S23, which determines the fourth movement speed based on the third movement speed, may include: obtaining relevant parameters of the screen; and determining the fourth movement speed based on the third movement speed and the relevant parameters of the screen.
[0063] The screen's parameters may include its physical size and resolution, and / or its pixel density.
[0064] In one embodiment of this example, the relevant parameters of the screen include the pixel density of the screen. Accordingly, the specific implementation of determining the fourth moving speed based on the third moving speed and the relevant parameters of the screen can be: the product of the third moving speed and the pixel density of the screen is determined as the fourth moving speed.
[0065] The pixel density of the screen can be obtained from the screen's physical size and resolution, for example, through the formula... Determine the pixel density of the screen, where, Represents the length of the screen. Characterizes the width of the screen. The x-axis resolution characterizes the screen. The y-axis resolution represents the screen. Alternatively, the screen's pixel density can be obtained through other methods, which are not specifically limited in this disclosure.
[0066] In another implementation of this embodiment, the relevant parameters of the screen include the physical size and resolution of the screen. Accordingly, the specific implementation of determining the fourth moving speed based on the third moving speed and the relevant parameters of the screen can be as follows: determine the parameter calculation factor of the screen based on the physical size and resolution of the screen; and determine the fourth moving speed as the ratio of the third moving speed to the parameter calculation factor of the screen.
[0067] For example, the screen parameter calculation factor can be determined using the following formula:
[0068] in, The parameter calculation factor characterizing the screen. Represents the length of the screen. Characterizes the width of the screen. The x-axis resolution characterizes the screen. Characterizes the screen's y-axis resolution.
[0069] For example, suppose the third moving speed is Then it can be done through the formula Result in the fourth movement speed .
[0070] Figure 5 This is a schematic diagram illustrating a pointer movement method according to an exemplary embodiment. For example... Figure 5As shown, firstly, when a user uses an input device, the input device and coprocessor MCU in the hardware layer send a data packet containing the touch position to the kernel layer via the input device driver. Next, the kernel layer reports this information to the native framework layer via the input subsystem. The native framework layer is responsible for parsing and calculating the touch control speed, i.e., the first movement speed, from the data packet. For example, the native framework layer can obtain the first movement speed based on the touch position in two adjacent received data packets and the duration of the two adjacent data receptions. The first movement speed represents the number of pixels moved corresponding to the user operation per unit time; that is, the unit of the first movement speed is pixels per second.
[0071] In one possible approach, the data packets transmitted by the kernel layer may include not only the touch point position but also relevant parameters of the input device (e.g., touchpad, graphics tablet, etc.). In this approach, the native framework layer can obtain the relevant parameters of the input device from the data packets transmitted by the kernel layer. In another possible approach, the relevant parameters of the input device can be pre-configured in the kernel layer, and when obtaining the first movement speed, the pre-configured relevant parameters of the input device can be obtained from the kernel layer.
[0072] Subsequently, the kernel layer converts the first movement speed into a second movement speed based on the relevant parameters of the input device; that is, it converts the contact control speed in pixels per second (px / s) into a contact control speed in mm / s. The specific conversion process is as described above and will not be repeated here.
[0073] Furthermore, screen-related parameters and algorithm parameters for controlling the display gain function can be pre-configured in the file system within the kernel layer. These algorithm parameters may include coefficients for the display gain function, segmentation points for the piecewise function, and thresholds for pointer display speed. The display gain function is typically a piecewise function. In this way, the native framework layer can also obtain the screen-related parameters and algorithm parameters for controlling the display gain function from the file system within the kernel layer.
[0074] Next, the algorithm parameters of the second moving speed and the control display gain function are input into the pointer acceleration algorithm in the kernel layer. The pointer acceleration algorithm determines the control display gain function based on the algorithm parameters of the control display gain function, determines the target control display gain corresponding to the second moving speed based on the control display gain function, and determines the third moving speed by multiplying the second moving speed and the target control display gain.
[0075] Next, based on the relevant parameters on the screen, the third movement speed is converted into the fourth movement speed, and the pointer speed output by the pointer acceleration algorithm, which is in mm / s, is converted into a pointer speed in px / s. Then, based on the current pointer position, the duration of receiving two adjacent data packets, and the pointer speed in px / s, the target pointer position is determined.
[0076] Finally, the native framework layer notifies the Java framework layer to draw the pointer position image. After drawing, it is submitted to the GPU (Graphics Processing Unit) for image rendering. The rendering layer composition strategy is either GPU composition or HWC (Hardware Composer) composition. The final composed image is encoded and compressed, and then driven by DSI (Display Serial Interface) to be input to the screen module for display via the MIPI protocol.
[0077] Thus, by adopting the above technical solution, it can be ensured that the input and output movement speed of the pointer acceleration algorithm are both the physical distance moved per unit time, rather than the number of pixels moved per unit time. This effectively enhances the compatibility of pointer movement across devices and improves the user's swiping responsiveness.
[0078] Based on the same inventive concept, this disclosure also provides a pointer movement device. Figure 6 This is a block diagram illustrating a pointer movement device according to an exemplary embodiment. Figure 6 As shown, the pointer movement device 600 may include: The first determining module 601 is configured to determine a second moving speed based on a first moving speed corresponding to a user operation detected by the input device. The first moving speed represents the number of pixels moved by the user operation within a unit time, and the second moving speed represents the physical distance moved by the user operation within the unit time. The second determining module 602 is configured to determine a third moving speed based on the second moving speed and a control display gain function, the third moving speed representing the physical distance the pointer moves on the screen in the unit time. The third determining module 603 is configured to determine a fourth moving speed based on the third moving speed, the fourth moving speed representing the number of pixels the pointer moves in the screen per unit time. The moving module 604 is configured to move the pointer in the screen at the fourth moving speed.
[0079] Optionally, the first determining module 601 may include: The first acquisition submodule is configured to acquire relevant parameters of the input device; The first determining submodule is configured to determine the second moving speed based on the first moving speed and relevant parameters of the input device.
[0080] Optionally, when the input device is a touchpad or a graphics tablet, and the relevant parameters of the input device include the physical size and resolution of the input device, the first determining submodule is configured to: The parameter calculation factor of the input device is determined based on the physical size and resolution of the input device; The product of the first moving speed and the parameter calculation factor is determined as the second moving speed.
[0081] Optionally, the first determining submodule is further configured to: The parameter calculation factor of the input device is determined by the following formula:
[0082] in, The parameter calculation factor characterizing the input device. Characterizing the length of the input device, Characterizes the width of the input device. Characterizes the x-axis resolution of the input device. Characterizes the y-axis resolution of the input device.
[0083] Optionally, when the input device is a touchpad or a graphics tablet, and the relevant parameters of the input device include the pixel density of the input device, the first determining submodule is configured to: The ratio of the first moving speed to the pixel density of the input device is determined as the second moving speed.
[0084] Optionally, the third determining module 603 may include: The second acquisition submodule is configured to acquire relevant parameters of the screen; The second determining submodule is configured to determine the fourth moving speed based on the third moving speed and the relevant parameters of the screen.
[0085] Optionally, when describing the physical size and resolution of the screen, the second determining submodule is configured as follows: The parameter calculation factors of the screen are determined based on the physical size and resolution of the screen. The ratio of the third moving speed to the parameter calculation factor of the screen is determined as the fourth moving speed.
[0086] Optionally, the second determining submodule is further configured to: The parameter calculation factor for the screen is determined using the following formula:
[0087] in, The parameter calculation factor characterizing the screen. Characterizing the length of the screen, Characterizing the width of the screen, The x-axis resolution of the screen is represented. The y-axis resolution of the screen is represented.
[0088] Optionally, when the relevant parameters of the screen include the pixel density of the screen, the second determining submodule is further configured to: The product of the third moving speed and the pixel density of the screen is determined as the fourth moving speed.
[0089] Optionally, the second determining module 602 is configured to: Based on the second moving speed and the control display gain function, determine the target control display gain corresponding to the second moving speed; The product of the second moving speed and the target control display gain is determined as the third moving speed.
[0090] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0091] This disclosure also provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the steps of the pointer movement method provided in this disclosure.
[0092] Figure 7 This is a block diagram illustrating an electronic device according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0093] Reference Figure 7The electronic device 700 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output interface 812, a sensor component 814, and a communication component 816. Furthermore, the electronic device 700 also includes a screen that can display pointers.
[0094] Processing component 802 typically controls the overall operation of electronic device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the aforementioned pointer movement method. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0095] Memory 804 is configured to store various types of data to support the operation of electronic device 700. Examples of such data include instructions for any application or method operating on electronic device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0096] Power supply component 806 provides power to various components of electronic device 700. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 700.
[0097] Multimedia component 808 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0098] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0099] Input / output interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0100] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 700. For example, sensor assembly 814 can detect the on / off state of electronic device 700, the relative positioning of components such as the display and keypad of electronic device 700, changes in position of electronic device 700 or a component of electronic device 700, the presence or absence of user contact with electronic device 700, orientation or acceleration / deceleration of electronic device 700, and temperature changes of electronic device 700. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0101] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 700 and other devices. Electronic device 700 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0102] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing a pointer movement method.
[0103] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions that can be executed by a processor 820 of an electronic device 700 to perform a pointer movement method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.
[0104] In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable device, the computer program having a code portion for performing the pointer movement method described above when executed by the programmable device.
[0105] It should be understood that, unless otherwise specifically indicated, features of various embodiments of this disclosure described herein can be combined with each other. As used herein, the term “and / or” includes any one of the relevant listed items and any combination of any two or more; similarly, “at least one of…” includes any one of the relevant listed items and any combination of any two or more.
[0106] Although terms such as “first,” “second,” and “third” may be used herein to describe various components, parts, regions, layers, or sections, these components, parts, regions, layers, or sections are not limited to these terms. Rather, these terms are used only to distinguish one component, part, region, layer, or section from another. Therefore, without departing from the teachings of the examples described herein, the first component, part, region, layer, or section mentioned in the examples may also be referred to as the second component, part, region, layer, or section. Furthermore, the terms “first” and “second” are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as “first” or “second” may explicitly or implicitly include at least one of that feature. In the description herein, “a plurality” means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0107] Furthermore, the term “exemplary” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “exemplary” is not necessarily to be construed as advantageous compared to other aspects or designs. Rather, the use of the term “exemplary” is intended to present the concept in a concrete manner. As used herein, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.” That is, unless otherwise specified or clear from the context, “X applies A or B” is intended to mean any of the natural inclusive arrangements. That is, “X applies A or B” satisfies any of the foregoing instances if X applies A; X applies B; or both X applies A and B. Additionally, unless otherwise specified or clear from the context to refer to the singular form, the articles “a” and “an” as used in this application and the appended claims are generally understood to mean “one or more.”
[0108] Similarly, although this disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding this specification and the accompanying drawings. This disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terminology used to describe such components is intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if structurally not equivalent to the disclosed structure. Furthermore, although specific features of this disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations, as may be desired and advantageous to any given or particular application. Moreover, with regard to the terms “comprising,” “owning,” “having,” “having,” or variations thereof as used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term “including.”
[0109] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.
[0110] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A pointer movement method, characterized in that, include: A second movement speed is determined based on a first movement speed corresponding to a user operation detected by the input device. The first movement speed represents the number of pixels moved by the user operation per unit time, and the second movement speed represents the physical distance moved by the user operation per unit time. A third movement speed is determined based on the second movement speed and the control display gain function, the third movement speed representing the physical distance the pointer moves on the screen in the unit time; A fourth movement speed is determined based on the third movement speed, the fourth movement speed representing the number of pixels the pointer moves in the screen per unit time; The pointer is moved on the screen at the fourth moving speed.
2. The method according to claim 1, characterized in that, Determining the second movement speed based on the first movement speed corresponding to the user operation detected by the input device includes: Obtain the relevant parameters of the input device; The second moving speed is determined based on the first moving speed and the relevant parameters of the input device.
3. The method according to claim 2, characterized in that, When the input device is a touchpad or a graphics tablet, and the relevant parameters of the input device include the physical size and resolution of the input device, determining the second movement speed based on the first movement speed and the relevant parameters of the input device includes: The parameter calculation factor of the input device is determined based on the physical size and resolution of the input device; The product of the first moving speed and the parameter calculation factor is determined as the second moving speed.
4. The method according to claim 3, characterized in that, The step of determining the parameter calculation factor of the input device based on the physical size and resolution of the input device includes: The parameter calculation factor of the input device is determined by the following formula: in, The parameter calculation factor characterizing the input device. Characterizing the length of the input device, Characterizes the width of the input device. Characterizes the x-axis resolution of the input device. Characterizes the y-axis resolution of the input device.
5. The method according to claim 2, characterized in that, When the input device is a touchpad or a graphics tablet, and the relevant parameters of the input device include the pixel density of the input device, determining the second moving speed based on the first moving speed and the relevant parameters of the input device includes: The ratio of the first moving speed to the pixel density of the input device is determined as the second moving speed.
6. The method according to claim 1, characterized in that, Determining the fourth moving speed based on the third moving speed includes: Obtain the relevant parameters of the screen; A fourth movement speed is determined based on the third movement speed and the relevant parameters of the screen.
7. The method according to claim 6, characterized in that, When the relevant parameters of the screen include the physical size and resolution of the screen, determining the fourth movement speed based on the third movement speed and the relevant parameters of the screen includes: The parameter calculation factors of the screen are determined based on the physical size and resolution of the screen. The ratio of the third moving speed to the parameter calculation factor of the screen is determined as the fourth moving speed.
8. The method according to claim 7, characterized in that, The step of determining the screen parameter calculation factors based on the screen's physical size and resolution includes: The parameter calculation factor for the screen is determined using the following formula: in, The parameter calculation factor characterizing the screen. Characterizing the length of the screen, Characterizing the width of the screen, The x-axis resolution of the screen is represented. The y-axis resolution of the screen is represented.
9. The method according to claim 6, characterized in that, When the relevant parameters of the screen include the pixel density of the screen, determining the fourth moving speed based on the third moving speed and the relevant parameters of the screen includes: The product of the third moving speed and the pixel density of the screen is determined as the fourth moving speed.
10. The method according to any one of claims 1-9, characterized in that, The step of determining the third moving speed based on the second moving speed and the control display gain function includes: Based on the second moving speed and the control display gain function, determine the target control display gain corresponding to the second moving speed; The product of the second moving speed and the target control display gain is determined as the third moving speed.
11. A pointer movement device, characterized in that, include: The first determining module is configured to determine a second moving speed based on a first moving speed corresponding to a user operation detected by the input device, wherein the first moving speed represents the number of pixels moved by the user operation per unit time, and the second moving speed represents the physical distance moved by the user operation per unit time. The second determining module is configured to determine a third moving speed based on the second moving speed and a control display gain function, the third moving speed representing the physical distance the pointer moves on the screen in the unit time. The third determining module is configured to determine a fourth moving speed based on the third moving speed, the fourth moving speed representing the number of pixels the pointer moves in the screen per unit time. The moving module is configured to move the pointer on the screen at the fourth moving speed.
12. An electronic device, characterized in that, The electronic device is communicatively connected to the input device, and the electronic device includes: Screen; processor; Memory used to store processor-executable instructions; The processor is configured to execute the instructions to cause the electronic device to perform the method as described in any one of claims 1-10.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program performs the steps of the method described in any one of claims 1-10.
14. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-10.