Method, apparatus, device, and storage medium for simulating sliding operations of cloud phones
By determining the center point and sliding position in the cloud mobile phone screen, and combining the scrolling direction of the mouse scroll wheel, efficient simulation of the sliding operation of the cloud mobile phone is achieved, solving the problem of cumbersome traditional methods and improving the user experience.
Patent Information
- Application Number
- CN202410263258.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-07
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2044-03-07
AI Technical Summary
When using cloud phones in a browser environment on the PC side, the traditional mouse click and drag method simulates the sliding operation of cloud phones is cumbersome, and the mouse wheel cannot be fully utilized, affecting the user experience.
By determining the sliding center point based on the position of the mouse pointer in the cloud mobile phone screen, combining the size information, sliding amplitude and sliding direction of the container to which the cloud mobile phone belongs, the sliding start position and the end position are determined from the sliding position point, and the sliding operation is performed using the scroll direction of the mouse wheel.
It improves the operation efficiency of cloud mobile phone sliding operation, avoids the tedious steps of traditional methods, and enhances the user experience.
Smart Images

Figure CN118244907B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to the field of cloud data processing technology, and can be used in cloud computing and cloud services. Background Art
[0002] Cloud game applications. Cloud games are game modes based on cloud computing. In the operating mode of cloud games, all games are run on the server side, and the rendered game screens are compressed and transmitted to users through the network. On the client side, the user's game device does not require any high-end processors and graphics cards, and only basic video decompression capabilities are needed. However, when using a cloud phone in a PC browser environment, the operations of the cloud phone are not achieved by directly touching the screen, but by simulating touch actions with mouse clicks.
[0003] In particular, in the link of simulating the sliding operation of the cloud phone, traditional methods often rely on the user to click and drag the mouse to simulate the sliding action of the finger on the physical mobile phone screen. This method cannot make good use of the mouse wheel, resulting in the inability to fully utilize this function when operating the cloud phone. In addition, the process of implementing the sliding operation is also relatively cumbersome, usually requiring three steps: the mouse down event (mousedown), the mouse move event (mousemove), and the mouse up event (mouseup). Such an operation process not only increases the burden on the user, but also affects the user experience. Therefore, there is an urgent need for a more effective simulation method for the sliding operation of the cloud phone. Summary of the Invention
[0004] The present disclosure provides a method, device, equipment and medium for simulating the sliding operation of a cloud phone.
[0005] According to one aspect of the present disclosure, a method for simulating the sliding operation of a cloud phone is provided. The method includes:
[0006] Determine the sliding center point of the cloud phone sliding operation according to the position of the mouse pointer on the cloud phone screen;
[0007] Determine the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation;
[0008] Execute the cloud phone sliding operation from the sliding start position to the sliding end position according to the rolling direction of the mouse wheel.
[0009] According to another aspect of the present disclosure, a device for simulating the sliding operation of a cloud phone is provided. The device includes:
[0010] A sliding center point determination module, configured to determine a sliding center point of a cloud phone sliding operation according to the position of a mouse pointer on the screen of the cloud phone;
[0011] A sliding position determination module, configured to determine a sliding start position and a sliding end position from sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation;
[0012] A sliding operation execution module, configured to execute a cloud phone sliding operation from the sliding start position to the sliding end position according to the rolling direction of a mouse scroll wheel.
[0013] According to another aspect of the present disclosure, there is provided an electronic device, which includes:
[0014] At least one processor; and
[0015] A memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the simulation method of the cloud phone sliding operation according to any embodiment of the present disclosure.
[0017] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the simulation method of the cloud phone sliding operation according to any embodiment of the present disclosure.
[0018] According to another aspect of the present disclosure, there is provided a computer program product, including a computer program, where the computer program implements the simulation method of the cloud phone sliding operation according to any embodiment of the present disclosure when being executed by a processor.
[0019] According to the technology of the present disclosure, the operation efficiency of the cloud phone sliding operation can be improved.
[0020] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:
[0022] Figure 1 is a flowchart of a simulation method of a cloud phone sliding operation provided according to an embodiment of the present disclosure;
[0023] Figure 2 It is a flowchart of another method for simulating the sliding operation of a cloud phone according to an embodiment of the present disclosure;
[0024] Figure 3 It is a flowchart of yet another method for simulating the sliding operation of a cloud phone according to an embodiment of the present disclosure;
[0025] Figure 4 It is a schematic structural diagram of an apparatus for simulating the sliding operation of a cloud phone according to an embodiment of the present disclosure;
[0026] Figure 5 It is a block diagram of an electronic device for implementing the method for simulating the sliding operation of a cloud phone according to an embodiment of the present disclosure. Detailed implementation manners
[0027] The following makes an explanation of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description below omits the description of well-known functions and structures.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0029] In addition, it should also be noted that in the technical solution of the present invention, the collection, storage, use, processing, transmission, provision, and disclosure, etc. of cloud phone-related data and the like all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0030] Figure 1It is a flowchart of a method for simulating a cloud phone sliding operation provided according to an embodiment of the present disclosure. This method is applicable to the situation of simulating the sliding operation of the cloud phone web page; for example, it can be adapted to cloud phone usage scenarios such as web browsing and game control. This method can be executed by a simulation device for cloud phone sliding operations, which can be implemented in software and / or hardware and can be integrated into an electronic device with the simulation function of cloud phone sliding operations, such as a PC. As Figure 1 shown, the method for simulating the cloud phone sliding operation in this embodiment may include:
[0031] S101, determine the sliding center point of the cloud phone sliding operation according to the position of the mouse pointer on the cloud phone screen.
[0032] In this embodiment, the cloud phone sliding operation refers to the sliding operation of the cloud phone web page. The so-called sliding center point is the central position of the cloud phone sliding operation, that is, the midpoint between the sliding start position and the sliding end position.
[0033] An optional way is to use the latest position of the mouse pointer on the cloud phone screen as the sliding center point of the cloud phone sliding operation.
[0034] S102, determine the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation.
[0035] In this embodiment, the container to which the cloud phone belongs refers to the container that carries the cloud phone, for example, it can be a PC. The so-called size information refers to the screen size information of the container, including the container width and the container height. The so-called sliding amplitude refers to the amplitude of the sliding operation on the container screen. The so-called sliding direction refers to the direction of the sliding operation on the container screen. The so-called sliding position points refer to the two position points of the sliding operation; including the sliding start position and the sliding end position.
[0036] An optional way is to determine the sliding position points based on a position point determination model according to the sliding center point, the size information of the container to which the cloud phone belongs, and the sliding amplitude of the cloud phone sliding operation, and then combine the sliding direction of the sliding operation to determine the sliding start position and the sliding end position from the sliding position points. Among them, the position point determination model can be pre-trained based on a large number of sliding center points, different size information of containers to which cloud phones belong, and the corresponding sliding amplitudes of cloud phone sliding operations.
[0037] S103, execute the cloud phone sliding operation from the sliding start position to the sliding end position according to the rolling direction of the mouse wheel.
[0038] Specifically, obtain the scroll direction of the mouse scroll wheel and perform a cloud phone sliding operation from the sliding start position to the sliding end position.
[0039] The technical solution provided by the embodiments of the present disclosure determines the sliding center point of the cloud phone sliding operation according to the position of the mouse pointer on the cloud phone screen. Then, according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation, the sliding start position and the sliding end position are determined from the sliding position points. Furthermore, according to the scroll direction of the mouse scroll wheel, a cloud phone sliding operation from the sliding start position to the sliding end position is performed. The above technical solution can quickly and accurately simulate the sliding operation of the cloud phone by using the mouse scroll wheel, avoiding the cumbersome steps of the traditional mouse click and drag method and improving the operation efficiency.
[0040] Based on the above embodiments, as an alternative of the present disclosure, determining the sliding center point of the cloud phone sliding operation according to the position of the mouse pointer on the cloud phone screen includes: determining the real-time position of the mouse pointer on the cloud phone screen by listening for mouse movement events; and determining the sliding center point of the cloud phone sliding operation according to the real-time position.
[0041] Specifically, the mouse movement event of the mouse can be listened to in real time to obtain the real-time position of the mouse pointer on the cloud phone screen, that is, continuously update the latest position of the mouse; and use this real-time position as the sliding center point of the cloud phone sliding operation.
[0042] It can be understood that by listening for mouse movement events in real time to determine the real-time position of the mouse pointer, the sliding center point can be obtained, which can ensure that the sliding center point is consistent with the position of the mouse pointer and ensure the accuracy of the sliding operation.
[0043] Figure 2 is a flowchart of another method for simulating the cloud phone sliding operation provided by the embodiments of the present disclosure. Based on the above embodiments, this embodiment further optimizes "determining the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation", and provides an alternative implementation. As Figure 2 shown, the method for simulating the cloud phone sliding operation of this embodiment may include:
[0044] S201, determine the sliding center point of the cloud phone sliding operation according to the position of the mouse pointer on the cloud phone screen.
[0045] S202, determine the sliding amplitude and the sliding direction of the cloud phone sliding operation.
[0046] An optional method is to determine the sliding amplitude of the cloud phone sliding operation based on the size information of the container, and determine the sliding direction of the cloud phone sliding operation according to the rolling direction of the mouse wheel.
[0047] Specifically, the percentage of the container height or the percentage of the container width can be used as the sliding amplitude of the cloud phone sliding operation; for example, the percentage can be 2%. The sliding direction of the cloud phone sliding operation can be determined according to the rolling direction of the mouse wheel corresponding to the container; for example, the rolling direction of the mouse wheel corresponding to a certain container is the same as the sliding direction, that is, when the rolling direction of the mouse wheel is upward, the sliding direction is upward, and when the rolling direction of the mouse wheel is downward, the sliding direction is downward; or, the rolling direction of the mouse wheel corresponding to a certain container is opposite to the sliding direction, that is, when the rolling direction of the mouse wheel is upward, the sliding direction is downward, and when the rolling direction of the mouse wheel is downward, the sliding direction is upward.
[0048] It can be understood that determining the sliding amplitude and sliding direction of the cloud phone sliding operation based on the size information of the container and the rolling direction of the mouse wheel can enable the cloud phone sliding operation to flexibly adapt to different scenarios.
[0049] It should be noted that the sliding setting items can be improved to customize the sliding amplitude, sliding direction and mouse scrolling frequency, making the cloud phone operation more personalized.
[0050] S203. Determine the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation.
[0051] Specifically, a position point determination model can be based on. According to the sliding center point, the size information of the container to which the cloud phone belongs, and the sliding amplitude of the cloud phone sliding operation, determine the sliding position points, and then combine the sliding direction of the sliding operation to determine the sliding start position and the sliding end position from the sliding position points. Among them, the position point determination model can be pre-trained based on a large number of sliding center points, different container size information of cloud phones, and the corresponding sliding amplitudes of cloud phone sliding operations.
[0052] S204. Perform the cloud phone sliding operation from the sliding start position to the sliding end position according to the rolling direction of the mouse wheel.
[0053] The technical solution provided by the embodiments of the present disclosure determines the sliding center point of the cloud phone sliding operation according to the position of the mouse pointer on the cloud phone screen, and then determines the sliding amplitude and sliding direction of the cloud phone sliding operation. According to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and sliding direction of the cloud phone sliding operation, the sliding start position and the sliding end position are determined from the sliding position points. Furthermore, according to the rolling direction of the mouse wheel, the cloud phone sliding operation from the sliding start position to the sliding end position is executed. The above technical solution can quickly and accurately simulate the sliding operation of the cloud phone by flexibly determining the sliding amplitude and sliding direction of the cloud phone sliding operation and using the mouse wheel to simulate the sliding operation of the cloud phone, avoiding the cumbersome steps of the traditional mouse click and drag method and improving the operation efficiency.
[0054] Based on the above embodiments, as an optional way of the present disclosure, determining the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and sliding direction of the cloud phone sliding operation includes: determining the actual distance of the cloud phone sliding operation according to the sliding amplitude and the size information; determining the sliding position points according to the actual distance and the sliding center point; and determining the sliding start position and the sliding end position from the sliding position points according to the sliding direction.
[0055] Wherein, the actual distance refers to the sliding distance of the cloud phone sliding operation on the screen.
[0056] Specifically, the sliding amplitude can be multiplied by the size information of the container to obtain the actual distance of the cloud phone sliding operation. Then, taking the sliding center point as the midpoint, according to the actual distance, the two end points in the vertical direction of the sliding center point on the container screen are used as the sliding position points. Furthermore, in combination with the sliding direction, the sliding start position and the sliding end position are determined from the sliding position points. For example, if the sliding direction is from bottom to top, the sliding position point below the sliding center point is used as the sliding start position, and the sliding position point above the sliding center point is used as the sliding end position.
[0057] It can be understood that determining the sliding distance of the sliding operation on the container screen, that is, the actual distance, by combining the container screen size and the sliding amplitude, and then determining the sliding start position and the sliding end position based on the actual distance, can make the determination of the sliding start position and the sliding end position more flexible.
[0058] Furthermore, determining the actual distance of the cloud phone sliding operation according to the sliding amplitude and the size information includes: judging the current screen state of the container; and determining the actual distance of the cloud phone sliding operation according to the current screen state, the sliding amplitude and the size information.
[0059] Wherein, the current screen state refers to the state of the container screen, including landscape screen and portrait screen.
[0060] Specifically, determine the current screen state of the container. If it is in portrait mode, obtain the height of the container from the size information, and based on the sliding amplitude and the height of the container, obtain the actual sliding distance. Specifically, take the product between the sliding amplitude and the height of the container as the actual sliding distance. If it is in landscape mode, obtain the width of the container from the size information, and based on the sliding amplitude and the width of the container, obtain the actual sliding distance. Specifically, take the product between the sliding amplitude and the width of the container as the actual sliding distance.
[0061] It can be understood that, compared with a fixed sliding distance, determining the actual sliding distance based on the screen state makes the sliding operation more flexible and adaptable.
[0062] Figure 3 It is a flowchart of another method for simulating the sliding operation of a cloud phone provided according to an embodiment of the present disclosure. On the basis of the above embodiment, this embodiment further optimizes "performing the sliding operation of the cloud phone from the sliding start position to the sliding end position according to the rolling direction of the mouse wheel", and provides an optional implementation solution. As Figure 3 shown, the method for simulating the sliding operation of the cloud phone in this embodiment may include:
[0063] S301, determine the sliding center point of the cloud phone sliding operation according to the position of the mouse pointer on the cloud phone screen.
[0064] S302, determine the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation.
[0065] S303, if a mouse wheel trigger event is recognized, perform the sliding operation of the cloud phone from the sliding start position to the sliding end position according to the rolling direction of the mouse wheel.
[0066] Specifically, if the mouse wheel event is triggered when the mouse wheel is scrolled, it is determined that a mouse wheel trigger event is recognized, and then the sliding operation of the cloud phone from the sliding start position to the sliding end position is performed according to the rolling direction of the mouse wheel.
[0067] The technical solution provided by the embodiment of the present disclosure determines the sliding center point of the cloud phone sliding operation according to the position of the mouse pointer on the cloud phone screen, and then determines the sliding start position and sliding end position from the sliding position point according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and sliding direction of the cloud phone sliding operation, and then if a mouse wheel trigger event is identified, the cloud phone sliding operation from the sliding start position to the sliding end position is executed according to the scrolling direction of the mouse wheel. The above technical solution executes the cloud phone sliding operation based on the mouse wheel trigger event, which can avoid the erroneous execution of the cloud phone operation and improve the accuracy of the sliding operation.
[0068] On the basis of the above embodiments, as an optional method of the present disclosure, a cloud phone sliding operation is performed from the sliding starting position to the sliding ending position according to the scrolling direction of the mouse wheel, including: judging whether the current sliding operation is completed according to the sliding completion mark; if not, performing the cloud phone sliding operation from the sliding starting position to the sliding ending position according to the scrolling direction of the mouse wheel.
[0069] The sliding completion flag is used to indicate whether a sliding operation is completed.
[0070] Specifically, after identifying the mouse wheel trigger event, further determine the sliding completion flag. If not, execute the cloud phone sliding operation from the sliding start position to the sliding end position according to the scrolling direction of the mouse wheel, and set the sliding operation completion flag to completed.
[0071] It is understandable that by setting the sliding completion flag to determine whether the sliding operation is in progress, repeated callbacks can be prevented.
[0072] Figure 4 This is a schematic diagram of the structure of a device for simulating sliding operation of a cloud phone according to an embodiment of the present disclosure. This embodiment is applicable to the situation of how to simulate sliding operation on the web page of a cloud phone; for example, it can be adapted to cloud phone usage scenarios such as browsing web pages and controlling games. The device can be implemented in software and / or hardware, and can be integrated into an electronic device that carries the function of simulating sliding operation of a cloud phone, such as a PC. Figure 4 As shown, the simulation device for the sliding operation of the cloud phone in this embodiment may include:
[0073] The sliding center point determination module 401 is used to determine the sliding center point of the sliding operation of the cloud phone according to the position of the mouse pointer on the cloud phone screen;
[0074] The sliding position determination module 402 is used to determine the sliding start position and the sliding end position from the sliding position point according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation;
[0075] The sliding operation execution module 403 is configured to perform a cloud phone sliding operation from the sliding start position to the sliding end position according to the scrolling direction of the mouse wheel.
[0076] The technical solution provided by the embodiments of the present disclosure determines the sliding center point of the cloud phone sliding operation according to the position of the mouse pointer on the cloud phone screen, and then determines the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation. Furthermore, according to the scrolling direction of the mouse wheel, a cloud phone sliding operation from the sliding start position to the sliding end position is performed. Through the above technical solution, by using the mouse wheel to simulate the sliding operation of the cloud phone, the sliding operation of the cloud phone can be quickly and accurately simulated, avoiding the cumbersome steps of the traditional mouse click and drag method, and improving the operation efficiency.
[0077] Furthermore, the sliding center point determination module 401 is specifically configured to:
[0078] Determine the real-time position of the mouse pointer on the cloud phone screen by listening to the mouse movement event;
[0079] Determine the sliding center point of the cloud phone sliding operation according to the real-time position.
[0080] Furthermore, the sliding position determination module 402 includes:
[0081] The amplitude and direction determination unit is configured to determine the sliding amplitude and the sliding direction of the cloud phone sliding operation;
[0082] The sliding position determination unit is configured to determine the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the cloud phone sliding operation.
[0083] Furthermore, the amplitude and direction determination unit is specifically configured to:
[0084] Determine the sliding amplitude of the cloud phone sliding operation according to the size information of the container;
[0085] Determine the sliding direction of the cloud phone sliding operation according to the scrolling direction of the mouse wheel.
[0086] Furthermore, the sliding position determination unit includes:
[0087] The actual distance determination subunit is configured to determine the actual distance of the cloud phone sliding operation according to the sliding amplitude and the size information;
[0088] The sliding position point determination subunit is configured to determine the sliding position point according to the actual distance and the sliding center point;
[0089] A sliding position determination subunit, configured to determine a sliding start position and a sliding end position from sliding position points according to a sliding direction.
[0090] Further, an actual distance determination subunit is specifically configured to:
[0091] Judge the current screen state of the container;
[0092] Determine the actual distance of the cloud phone sliding operation according to the current screen state, the sliding amplitude and the size information.
[0093] Further, the sliding operation execution module 403 is specifically configured to:
[0094] If a mouse wheel trigger event is recognized, perform a cloud phone sliding operation from the sliding start position to the sliding end position according to the rolling direction of the mouse wheel.
[0095] Further, the sliding operation execution module 403 is specifically configured to:
[0096] Judge whether the current sliding operation is completed according to the sliding completion flag;
[0097] If not, perform a cloud phone sliding operation from the sliding start position to the sliding end position according to the rolling direction of the mouse wheel.
[0098] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium, and a computer program product.
[0099] Figure 5 is a block diagram of an electronic device for implementing the cloud phone sliding operation simulation method of the embodiments of the present disclosure. Figure 5 FIG. shows a schematic block diagram of an exemplary electronic device 500 that can be used to implement embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0100] Such as Figure 5As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to computer programs stored in a read-only memory (ROM) 502 or computer programs loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0101] Multiple components in the electronic device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a magnetic disk, an optical disc, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0102] The computing unit 501 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 executes the various methods and processes described above, such as the method for simulating the sliding operation of a cloud phone. For example, in some embodiments, the method for simulating the sliding operation of a cloud phone can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the method for simulating the sliding operation of a cloud phone described above can be executed. Alternatively, in other embodiments, the computing unit 501 can be configured to execute the method for simulating the sliding operation of a cloud phone by any other appropriate means (e.g., by means of firmware).
[0103] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems-on-a-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0104] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0105] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0107] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
[0108] A computer system can include a client and a server. The client and the server are generally far from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, or a server of a distributed system, or a server incorporating blockchain.
[0109] Artificial intelligence is a discipline that studies the simulation of certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.) by computers, with both hardware-level technologies and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include several major directions such as computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning technology, big data processing technology, and knowledge graph technology.
[0110] Cloud computing refers to a technical system that accesses an elastic and scalable shared physical or virtual resource pool through a network. The resources can include servers, operating systems, networks, software, applications, and storage devices, etc., and the resources can be deployed and managed in a on-demand and self-service manner. Through cloud computing technology, it can provide efficient and powerful data processing capabilities for the application of technologies such as artificial intelligence and blockchain and model training.
[0111] It should be understood that various forms of processes shown above can be used, and steps can be reordered, added, or deleted. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution disclosed in this disclosure can be achieved, and no limitations are imposed herein.
[0112] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the protection scope of this disclosure.
Claims
1. A method for simulating a sliding operation of a cloud phone, comprising: Determine the sliding center point of the sliding operation of the cloud phone according to the position of the mouse pointer on the cloud phone screen; wherein the sliding center point is the center position of the sliding operation of the cloud phone; Determine the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, and the sliding amplitude and sliding direction of the sliding operation of the cloud phone; According to the scrolling direction of the mouse wheel, a cloud phone sliding operation is performed from the sliding starting position to the sliding ending position; The determining the sliding start position and the sliding end position from the sliding position point according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude of the sliding operation of the cloud phone, and the sliding direction includes: Determine the actual distance of the cloud phone sliding operation according to the sliding amplitude and the size information; Determine a sliding position point according to the actual distance and the sliding center point; According to the sliding direction, a sliding start position and a sliding end position are determined from the sliding position points.
2. The method according to claim 1, wherein: Determining the sliding center point of the sliding operation of the cloud phone according to the position of the mouse pointer on the cloud phone screen includes: By monitoring mouse movement events, determine the real-time position of the mouse pointer on the cloud phone screen; According to the real-time position, the sliding center point of the cloud phone sliding operation is determined.
3. The method according to claim 1, wherein: The determining the sliding start position and the sliding end position from the sliding position point according to the sliding center point, the size information of the container to which the cloud phone belongs, and the sliding amplitude and sliding direction of the sliding operation of the cloud phone includes: Determining the sliding amplitude and sliding direction of the cloud phone sliding operation; According to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude of the sliding operation of the cloud phone and the sliding direction, the sliding start position and the sliding end position are determined from the sliding position points.
4. The method according to claim 3, wherein: The determining the sliding amplitude and sliding direction of the sliding operation of the cloud phone includes: Determining a sliding amplitude of the sliding operation of the cloud phone according to the size information of the container; The sliding direction of the cloud phone sliding operation is determined according to the scrolling direction of the mouse wheel.
5. The method according to claim 1, wherein: The determining, according to the sliding amplitude and the size information, an actual distance of the sliding operation of the cloud phone includes: Determining the current screen state of the container; The actual distance of the cloud phone sliding operation is determined according to the current screen state, the sliding amplitude and the size information.
6. The method according to claim 1, wherein: The step of performing a cloud phone sliding operation from the sliding start position to the sliding end position according to the scrolling direction of the mouse wheel includes: If a mouse wheel trigger event is identified, a cloud phone sliding operation is performed from the sliding start position to the sliding end position according to the scrolling direction of the mouse wheel.
7. The method according to claim 1 or 6, wherein: According to the scrolling direction of the mouse wheel, a cloud phone sliding operation is performed from the sliding starting position to the sliding ending position, including: According to the sliding completion mark, determine whether the current sliding operation is completed; If not, the cloud phone sliding operation is performed from the sliding starting position to the sliding ending position according to the scrolling direction of the mouse wheel.
8. A device for simulating sliding operation of a cloud phone, comprising: A sliding center point determination module, used to determine the sliding center point of the sliding operation of the cloud phone according to the position of the mouse pointer on the cloud phone screen; wherein the sliding center point is the center position of the sliding operation of the cloud phone; A sliding position determination module, used to determine the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude and the sliding direction of the sliding operation of the cloud phone; A sliding operation execution module, used for executing a cloud phone sliding operation from the sliding start position to the sliding end position according to the scrolling direction of the mouse wheel; The sliding position determination module comprises: An actual distance determination subunit, used to determine the actual distance of the cloud phone sliding operation according to the sliding amplitude and the size information; A sliding position point determination subunit, used to determine the sliding position point according to the actual distance and the sliding center point; The sliding position determining subunit is used to determine the sliding start position and the sliding end position from the sliding position points according to the sliding direction.
9. The device according to claim 8, wherein: The sliding center point determination module is specifically used for: By monitoring mouse movement events, determine the real-time position of the mouse pointer on the cloud phone screen; According to the real-time position, the sliding center point of the cloud phone sliding operation is determined.
10. The device according to claim 8, wherein: The sliding position determination module comprises: An amplitude and direction determining unit, used to determine the sliding amplitude and sliding direction of the sliding operation of the cloud phone; The sliding position determination unit is used to determine the sliding start position and the sliding end position from the sliding position points according to the sliding center point, the size information of the container to which the cloud phone belongs, the sliding amplitude of the sliding operation of the cloud phone and the sliding direction.
11. The device according to claim 10, wherein: The amplitude direction determining unit is specifically used for: Determining a sliding amplitude of the sliding operation of the cloud phone according to the size information of the container; The sliding direction of the cloud phone sliding operation is determined according to the scrolling direction of the mouse wheel.
12. The device according to claim 8, wherein: The actual distance determination subunit is specifically used for: Determining the current screen state of the container; The actual distance of the cloud phone sliding operation is determined according to the current screen state, the sliding amplitude and the size information.
13. The device according to claim 8, wherein: The sliding operation execution module is specifically used for: If a mouse wheel trigger event is identified, a cloud phone sliding operation is performed from the sliding start position to the sliding end position according to the scrolling direction of the mouse wheel.
14. The device according to claim 8 or 13, wherein: The sliding operation execution module is specifically used for: According to the sliding completion mark, determine whether the current sliding operation is completed; If not, the cloud phone sliding operation is performed from the sliding starting position to the sliding ending position according to the scrolling direction of the mouse wheel.
15. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the simulation method of the cloud phone sliding operation described in any one of claims 1-7.
16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable a computer to execute a simulation method for a cloud phone sliding operation according to any one of claims 1-7.
17. A computer program product, comprising a computer program, which, when executed by a processor, implements the simulation method of the cloud phone sliding operation according to any one of claims 1-7.
Citation Information
Patent Citations
Window page interaction method and device, electronic equipment and readable storage medium
CN114764300A
Mobile terminal control method and mobile terminal
CN116048357A
Page content changing method and device, electronic reader and storage medium
CN116560543A