Method, device, mouse and storage medium for controlling terminal screen with mouse
By setting air mode on the mouse, receiving sliding touch gestures and controlling the movement of the terminal screen pointer, the problem of inaccuracy and efficiency of existing handheld mice during remote use is solved, and efficient terminal screen control and convenient operation are achieved .
Patent Information
- Application Number
- CN202010253847.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-02
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-04-02
AI Technical Summary
The existing handheld mouse controls the terminal screen inaccuracy and efficiency when remotely used, and is greatly affected by the surface texture of the hand, which cannot meet the needs of remote operation.
By setting the mouse to air mode, the user's sliding touch gesture is received, and the pointer movement in the terminal screen is controlled according to the starting point of the sliding touch gesture and the movement parameters, expand the operating range and improve control efficiency.
It realizes accurate and efficient control of the terminal screen when using the mouse remotely, expands the operating range, and improves the convenience and efficiency of user operations.
Smart Images

Figure CN111459303B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer control technology, and in particular to a method, device, mouse and storage medium for controlling a terminal screen with a mouse. Background Art
[0002] With the continuous advancement of technology, people have put forward higher requirements for the control methods of electronic terminal device screens. Existing desktop mice, including wired mice and wireless mice, will damage the health of people's hands and wrists after long-term use. At the same time, they have limitations in control distance and cannot meet some situations that require remote use. Therefore, the development of handheld mice is becoming more and more necessary.
[0003] Some handheld mice provided by the prior art are usually a simple combination of an ordinary mouse and a wireless presenter, that is, they only include the original mouse structure: left button, right button, scroll wheel and photoelectric sensor for judging the movement process, and the original wireless presenter structure: laser light and page turning key, etc. When controlling the movement of the pointer on the terminal screen, it is still necessary to move the mouse as a whole on the palm, so it will be limited by the movable range, which will bring inconvenience to the user in the scenario of remote use, and because the surface of people's hands is not a smooth plane, the process of moving the mouse is easily affected by the texture of the hand surface, thereby reducing the efficiency and accuracy of terminal control. Summary of the invention
[0004] The embodiment of the present invention provides a method, device, mouse and storage medium for controlling a terminal screen by using a mouse, so as to realize accurate and efficient control of the terminal screen by using the mouse in a remote situation.
[0005] In a first aspect, an embodiment of the present invention provides a method for controlling a terminal screen with a mouse, the method comprising:
[0006] When the mouse is set to air mode, receiving a sliding touch gesture input by the user on the mouse;
[0007] If the starting point of the sliding touch gesture is within the first coordinate range, controlling the pointer on the terminal screen to move according to the first movement parameter of the sliding touch gesture;
[0008] If the starting point of the sliding touch gesture is located in the second coordinate range, after the sliding touch gesture enters the first coordinate range from the second coordinate range, the pointer on the terminal screen is controlled to move according to the first movement parameter.
[0009] In a second aspect, an embodiment of the present invention further provides a device for controlling a terminal screen with a mouse, the device comprising:
[0010] A gesture receiving module, used for receiving a sliding touch gesture input by a user on the mouse when the mouse is set to an air mode;
[0011] A first pointer control module, configured to control the movement of a pointer on the terminal screen according to a first movement parameter of the sliding touch gesture if the starting point of the sliding touch gesture is within a first coordinate range;
[0012] The second pointer control module is used to control the pointer on the terminal screen to move according to the first movement parameter after the sliding touch gesture enters the first coordinate range from the second coordinate range if the starting point of the sliding touch gesture is located in the second coordinate range.
[0013] In a third aspect, an embodiment of the present invention further provides a mouse, the mouse comprising:
[0014] one or more processors;
[0015] A memory for storing one or more programs;
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for controlling a terminal screen with a mouse provided in any embodiment of the present invention.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for controlling a terminal screen with a mouse provided in any embodiment of the present invention.
[0018] The embodiment of the present invention provides a method for controlling a terminal screen with a mouse, wherein when the mouse is in air mode, a sliding touch gesture input by a user on the mouse is received, and when the starting point of the sliding touch gesture is within a set coordinate range or enters into the range from outside the set coordinate range, the pointer on the terminal screen is controlled to move according to the movement parameters of the sliding touch gesture. The embodiment of the present invention realizes accurate and efficient control of the terminal screen when the mouse is used remotely by receiving the input of the user's touch mode and controlling the movement of the pointer on the terminal screen. At the same time, by controlling the movement of the pointer on the terminal screen with the sliding touch gesture whose starting point is within the set coordinate range and the sliding touch gesture after entering into the range from outside the set coordinate range, the user's operation range is expanded when using the pointer control function, which improves the efficiency of the mouse controlling the terminal screen and also provides convenience for the user's operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1A is a flow chart of a method for controlling a terminal screen with a mouse provided in Embodiment 1 of the present invention;
[0020] Figure 1Bis a schematic diagram of the input range of a sliding touch gesture on a mouse for controlling the movement of a pointer provided in the first embodiment of the present invention;
[0021] Figure 2A is a flow chart of a method for controlling a terminal screen with a mouse provided in Embodiment 2 of the present invention;
[0022] Figure 2B It is a schematic diagram of the structure of the upper surface partition of a mouse provided by the second embodiment of the present invention;
[0023] Figure 3 It is a structural schematic diagram of a device for controlling a terminal screen with a mouse provided in Embodiment 3 of the present invention;
[0024] Figure 4 It is a schematic diagram of the structure of a mouse provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0027] In addition, the terms "first", "second", etc. may be used herein to describe various directions, actions, steps, or elements, but these directions, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish a first direction, action, step, or element from another direction, action, step, or element. The terms "first", "second", etc. should not be understood to indicate or imply relative importance or implicitly indicate the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0028] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0029] Embodiment 1
[0030] Figure 1A This is a flow chart of a method for controlling a terminal screen with a mouse provided in Embodiment 1 of the present invention. This embodiment is applicable to a situation where a user uses a mouse to remotely control a terminal screen. This method can be performed by a device for controlling a terminal screen with a mouse provided in an embodiment of the present invention. The device can be implemented in hardware and / or software and can generally be integrated into a wireless mouse. Figure 1A As shown, the specific steps include:
[0031] S11. When the mouse is set to the air mode, receiving a sliding touch gesture input by the user on the mouse.
[0032] Among them, the air mode of the mouse refers to a mode used when no support surface is required, that is, a mode that can be held in the air. In this embodiment, the overall shape of the mouse is close to a flat rectangular parallelepiped, and the two larger surfaces of the surface of the rectangular parallelepiped are used as the upper surface and the lower surface respectively, and the upper surface can be used to receive sliding touch gestures. Sliding touch gestures refer to touch gestures generated by the user performing arbitrary sliding without leaving the mouse surface after touching the mouse surface. When the mouse starts to receive the sliding touch gesture, it can control the terminal screen according to the starting point of the sliding touch gesture and the current movement parameters, and can stop controlling the terminal screen when the sliding touch gesture leaves the mouse surface.
[0033] Optionally, if, in two consecutive sliding touch gestures input by the user, the actual time interval between the start time of the latter sliding touch gesture and the end time of the previous sliding touch gesture is less than the preset time interval, and / or the actual coordinate distance between the starting point of the latter sliding touch gesture and the end point of the previous sliding touch gesture is less than the preset coordinate distance, then the two consecutive sliding touch gestures input are regarded as a single input and continuous sliding touch gesture, that is, the starting point of the two consecutive sliding touch gestures input is the starting point of the previous sliding touch gesture, and the end point is the end point of the latter sliding touch gesture, so as to reduce the premature termination of the sliding touch gesture due to problems such as sensing errors of certain coordinate points on the upper surface of the mouse or poor contact between the user's finger and the mouse, thereby causing the mouse to misoperate the terminal screen.
[0034] Optionally, after receiving a sliding touch gesture input by the user on the mouse, the method further includes: if the sliding distance of the sliding touch gesture is less than a preset distance, no control instruction for the terminal screen is generated.
[0035] Specifically, when the user holds the mouse, there may be some accidental touches. In this case, the sliding distance of the sliding touch gesture is usually very short. Therefore, a preset distance can be set so that when the sliding distance of the sliding touch gesture is less than the preset distance, no control instructions for the terminal screen are generated, that is, the page or pointer in the terminal screen does not perform any operation, so as to avoid false triggering caused by excessive sensitivity of the mouse.
[0036] Optionally, when the mouse is set to desktop mode, a second movement parameter of the mouse when it moves on the supporting surface is obtained through a laser sensor of the mouse; and the pointer on the terminal screen is controlled to move according to the second movement parameter.
[0037] Specifically, the mouse can be set to desktop mode according to the received user's operation on the switch set on the outside of the mouse. The desktop mode of the mouse refers to the mode used when a support surface is required for support, that is, the mode that can be used on the desktop. When the mouse is in desktop mode, the laser sensor set on the above-mentioned lower surface can be used to obtain the second movement parameter generated when the mouse moves on the support surface, and the second movement parameter can be converted into the coordinate parameter required for the movement of the pointer and sent to the terminal to control the movement of the pointer on the terminal screen. Among them, the second movement parameter may include the movement direction, movement speed, and movement distance of the mouse, etc.
[0038] Optionally, when the mouse is in desktop mode, a click touch gesture input by the user on the mouse is received, and the left button operation or right button operation of the mouse is determined according to the position of the click touch gesture. Specifically, the longer side of the upper surface of the mouse can be placed facing the user, and then the left half area of the front end of the placed mouse is used as the left button input area of the mouse, and the right half area of the front end is used as the right button input area of the mouse, so as to facilitate the user's operation. When the user clicks the left button input area or the right button input area, the mouse controls the terminal screen to perform the corresponding click operation, which can be a single click, double click or drag, etc. Optionally, a sliding touch gesture input by the user in the front middle area of the mouse can also be received, and the mouse wheel operation is determined according to the sliding touch gesture to control the terminal screen to perform operations such as page turning.
[0039] S12: If the starting point of the sliding touch gesture is located in the first coordinate range, controlling the pointer on the terminal screen to move according to the first movement parameter of the sliding touch gesture.
[0040] The first coordinate range is used as the input range of the sliding touch gesture for controlling the movement of the pointer. The first coordinate range can be as large as possible but does not occupy the entire upper surface of the mouse. Optionally, Figure 1B As shown, the first coordinate range 21 can be most of the coordinate range in the lower right direction of the upper surface of the mouse 20 when the shorter side of the upper surface of the mouse 20 is placed facing the user, so as to expand the user's operating range when using the pointer function, thereby improving the efficiency of controlling the movement of the pointer.
[0041] If the starting point of the sliding touch gesture is located in the first coordinate range, the sliding touch gesture may be sliding only within the first coordinate range, or sliding from the first coordinate range to outside the first coordinate range, or sliding from the first coordinate range to outside the first coordinate range and then sliding into the first coordinate range, etc., that is, as long as the sliding touch gesture does not leave the mouse surface and the starting point is located in the first coordinate range, during the sliding process of the current sliding touch gesture, including the sliding process outside the first coordinate range, the mouse controls the movement of the pointer on the terminal screen according to the first movement parameter of the sliding touch gesture. Among them, the first movement parameter may include the sliding direction, sliding speed and sliding distance of the sliding touch gesture, etc.
[0042] S13: If the starting point of the sliding touch gesture is located in the second coordinate range, after the sliding touch gesture enters the first coordinate range from the second coordinate range, controlling the pointer on the terminal screen to move according to the first movement parameter.
[0043] Among them, optionally, the second coordinate range does not overlap with the first coordinate range, and the second coordinate range can be used as the input range of the touch gesture for controlling operations such as page scrolling, page turning, page jumping or clicking on page content. Relative to the first coordinate range, the second coordinate range can be as small as possible, and only needs to be a coordinate range that is sufficient to realize the corresponding function. The second coordinate range can be the coordinate range of the remaining part of the upper surface of the mouse after removing the first coordinate range, or it can be a part of the coordinate range of the remaining part, and it is adjacent to the first coordinate range. Optionally, the second coordinate range can be the coordinate range of the left edge and / or the upper edge of the upper surface of the mouse.
[0044] If the starting point of the sliding touch gesture is located in the second coordinate range, and the sliding touch gesture has slid from the second coordinate range to the first coordinate range, then after the sliding touch gesture enters the first coordinate range, including the process of sliding after entering the first coordinate range and then leaving the first coordinate range again, the mouse controls the movement of the pointer on the terminal screen according to the first movement parameter of the sliding touch gesture.
[0045] The technical solution provided by the embodiment of the present invention realizes accurate and efficient control of the terminal screen when using a mouse remotely by receiving input in the form of user touch and controlling the movement of the pointer on the terminal screen. At the same time, by utilizing a sliding touch gesture whose starting point is within a set coordinate range and a sliding touch gesture after entering the range from outside the set coordinate range to control the movement of the pointer on the terminal screen, the user's operating range when using the pointer control function is expanded. While improving the efficiency of the mouse controlling the terminal screen, it also provides convenience for the user's operation.
[0046] Embodiment 2
[0047] Figure 2A A flowchart of a method for controlling a terminal screen with a mouse provided in the second embodiment of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution. Specifically, in this embodiment, the second coordinate range can be used as the input range of the touch gesture for controlling the scrolling of the page on the terminal screen, that is, after receiving the sliding touch gesture input by the user on the mouse, it also includes: if the sliding touch gesture is within the second coordinate range, the page on the terminal screen is controlled to scroll according to the first movement parameter. Correspondingly, Figure 2A As shown, the specific steps include:
[0048] S21. When the mouse is set to the air mode, receiving a sliding touch gesture input by the user on the mouse.
[0049] S22: If the sliding touch gesture is located in the second coordinate range, control the page on the terminal screen to scroll according to the first movement parameter.
[0050] Specifically, if the sliding touch gesture is located in the second coordinate range, the page in the terminal screen may be controlled to scroll according to the first movement parameter of the sliding touch gesture, wherein the page scrolling may include automatic scrolling and / or manual scrolling.
[0051] Optionally, the first movement parameter may include the sliding direction, sliding speed and sliding distance of the sliding touch gesture, and specifically may be the sliding speed and sliding distance in the horizontal direction and / or vertical direction. Then the mouse may control the page of the terminal screen to scroll up, scroll down, scroll left or scroll right according to the sliding direction, and may also control the page scrolling speed according to different sliding speeds, and control the page to stop scrolling when the sliding touch gesture ends. Optionally, the first movement parameter may also include the sliding speed when the sliding touch gesture ends. Then, when the sliding touch gesture ends, the mouse may control the page to automatically scroll at a certain speed and direction according to the sliding speed when the sliding touch gesture ends.
[0052] Optionally, if the sliding touch gesture is within the second coordinate range and includes a long press action exceeding a preset time before the sliding starts, the page on the terminal screen is controlled to automatically scroll according to the first movement parameter. Specifically, if the sliding touch gesture includes a long press action at the beginning, the page is controlled to enter the automatic scrolling mode after the long press exceeds the preset time, and then the speed of automatic scrolling of the page can be controlled according to the sliding speed and sliding direction of the sliding touch gesture.
[0053] Optionally, the second coordinate range includes a third coordinate range and a fourth coordinate range; accordingly, if the sliding touch gesture is located in the second coordinate range, the page in the terminal screen is scrolled according to the first movement parameter, including: if the sliding touch gesture is a vertical gesture within the third coordinate range, the page in the terminal screen is scrolled in the vertical direction according to the first movement parameter; if the sliding touch gesture is a horizontal gesture within the fourth coordinate range, the page in the terminal screen is scrolled in the horizontal direction according to the first movement parameter.
[0054] Specifically, the second coordinate range can be further divided into a third coordinate range and a fourth coordinate range. Optionally, as Figure 2B As shown, the third coordinate range 22 may be the coordinate range of the left edge of the upper surface of the mouse 20, the fourth coordinate range 23 may be the coordinate range of the upper edge of the upper surface of the mouse 20, and the remaining coordinate range of the mouse 20 is the first coordinate range 21. Then the third coordinate range 22 is used as the input range of the sliding touch gesture for controlling the scrolling of the page up and down, and the fourth coordinate range 23 is used as the input range of the sliding touch gesture for controlling the scrolling of the page left and right, so as to realize the scrolling process of controlling the page in different directions in different regions, thereby realizing more accurate control and providing convenience for the user.
[0055] S23: If the starting point of the sliding touch gesture is located in the first coordinate range, control the pointer on the terminal screen to move according to the first movement parameter of the sliding touch gesture.
[0056] S24: If the starting point of the sliding touch gesture is located in the second coordinate range, after the sliding touch gesture enters the first coordinate range from the second coordinate range, control the pointer on the terminal screen to move according to the first movement parameter.
[0057] On the basis of the above technical solution, optionally, after receiving the sliding touch gesture input by the user on the mouse, it also includes: if the sliding touch gesture is a two-finger or three-finger gesture in the same direction within the fifth coordinate range, the terminal screen is controlled to switch pages according to the first movement parameter, wherein the fifth coordinate range is any coordinate range on the mouse that can receive the sliding touch gesture.
[0058] Optionally, the fifth coordinate range may be a partial range or the entire range of the upper surface of the mouse, that is, it may include other coordinate ranges or overlap with other coordinate ranges. When the mouse recognizes that the sliding touch gesture is two or three fingers input in the same direction at the same time, the original functions of other coordinate ranges are ignored, and the page switching function is directly entered. At this time, the first movement parameter may include the sliding direction, etc., and the mouse can control the terminal screen page switching process according to the sliding direction. Exemplarily, when the sliding touch gesture is a two-finger or three-finger left swipe gesture, the current page can be controlled to switch to the previous page, and when the sliding touch gesture is a two-finger or three-finger right swipe gesture, the current page can be controlled to switch to the next page, etc.
[0059] On the basis of the above technical solution, optionally, after receiving the sliding touch gesture input by the user on the mouse, it also includes: if the sliding touch gesture is a two-finger gesture toward each other within the sixth coordinate range, then the page in the terminal screen is controlled to be reduced according to the first movement parameter, wherein the sixth coordinate range is any coordinate range that can receive the sliding touch gesture on the mouse; if the sliding touch gesture is a two-finger reverse gesture within the sixth coordinate range, then the page in the terminal screen is controlled to be enlarged according to the first movement parameter.
[0060] Optionally, the sixth coordinate range may be a partial range or the entire range of the upper surface of the mouse, that is, it may include other coordinate ranges or overlap with other coordinate ranges. When the mouse recognizes that the sliding touch gesture is two fingers input in different directions at the same time, the original functions of other coordinate ranges are ignored, and the page zoom function is directly entered. At this time, the first movement parameter may include the sliding distance, etc. The mouse can control the degree of zooming in or out of the terminal screen page according to the sliding distance. Specifically, when the sliding touch gesture is a two-finger gesture facing each other, the page is controlled to be zoomed out, and when the sliding touch gesture is a two-finger reverse gesture, the page is controlled to be zoomed in.
[0061] The technical solution provided by the embodiment of the present invention controls the scrolling of the page in the terminal screen according to the sliding touch gesture input in the second coordinate range of the mouse, and further divides the second coordinate range into a third coordinate range and a fourth coordinate range to respectively control the up and down scrolling and left and right scrolling of the page, and provides a method for controlling page switching and zooming, further realizing the process of accurately and efficiently controlling the terminal screen when using the mouse remotely, and providing more convenience for users.
[0062] Embodiment 3
[0063] Figure 3 This is a schematic diagram of the structure of the device for controlling the terminal screen with a mouse provided in the third embodiment of the present invention. The device can be implemented by hardware and / or software, and can generally be integrated into a wireless mouse to execute the method for controlling the terminal screen with a mouse provided in any embodiment of the present invention. Figure 3As shown, the device comprises:
[0064] The gesture receiving module 31 is used to receive a sliding touch gesture input by a user on the mouse when the mouse is set to an air mode;
[0065] A first pointer control module 32, configured to control the pointer on the terminal screen to move according to a first movement parameter of the sliding touch gesture if the starting point of the sliding touch gesture is within a first coordinate range;
[0066] The second pointer control module 33 is used to control the pointer on the terminal screen to move according to the first movement parameter after the sliding touch gesture enters the first coordinate range from the second coordinate range if the starting point of the sliding touch gesture is located in the second coordinate range.
[0067] The technical solution provided by the embodiment of the present invention realizes accurate and efficient control of the terminal screen when using a mouse remotely by receiving input in the form of user touch and controlling the movement of the pointer on the terminal screen. At the same time, by utilizing a sliding touch gesture whose starting point is within a set coordinate range and a sliding touch gesture after entering the range from outside the set coordinate range to control the movement of the pointer on the terminal screen, the user's operating range when using the pointer control function is expanded. While improving the efficiency of the mouse controlling the terminal screen, it also provides convenience for the user's operation.
[0068] On the basis of the above technical solution, optionally, the device for controlling the terminal screen with a mouse further includes:
[0069] The page scrolling control module is used to control the page in the terminal screen to scroll according to the first movement parameter after receiving the sliding touch gesture input by the user on the mouse if the sliding touch gesture is located in the second coordinate range.
[0070] On the basis of the above technical solution, optionally, the second coordinate range includes a third coordinate range and a fourth coordinate range;
[0071] Correspondingly, the page scrolling control module includes:
[0072] A first page scrolling control unit, configured to control the page on the terminal screen to scroll in the vertical direction according to the first movement parameter if the sliding touch gesture is a vertical gesture within the third coordinate range;
[0073] The second page scrolling control unit is used to control the page in the terminal screen to scroll in the horizontal direction according to the first movement parameter if the sliding touch gesture is a horizontal gesture within the fourth coordinate range.
[0074] On the basis of the above technical solution, optionally, the device for controlling the terminal screen with a mouse further includes:
[0075] The sliding distance judgment module is used to, after receiving a sliding touch gesture input by a user on a mouse, not generate a control instruction for the terminal screen if the sliding distance of the sliding touch gesture is less than a preset distance.
[0076] On the basis of the above technical solution, optionally, the device for controlling the terminal screen with a mouse further includes:
[0077] The page switching control module is used to control the terminal screen to switch pages according to the first movement parameter after receiving a sliding touch gesture input by the user on the mouse, if the sliding touch gesture is a two-finger or three-finger gesture in the same direction within the fifth coordinate range, wherein the fifth coordinate range is any coordinate range on the mouse that can receive the sliding touch gesture.
[0078] On the basis of the above technical solution, optionally, the device for controlling the terminal screen with a mouse further includes:
[0079] A page zoom control module is used to, after receiving a sliding touch gesture input by a user on a mouse, control the page in the terminal screen to be zoomed out according to a first movement parameter if the sliding touch gesture is a two-finger gesture facing each other within a sixth coordinate range, wherein the sixth coordinate range is any coordinate range on the mouse that can receive the sliding touch gesture; and control the page in the terminal screen to be zoomed in according to the first movement parameter if the sliding touch gesture is a two-finger reverse gesture within the sixth coordinate range.
[0080] On the basis of the above technical solution, optionally, the device for controlling the terminal screen with a mouse further includes:
[0081] A movement parameter acquisition module, used for acquiring a second movement parameter of the mouse when the mouse moves on the support surface through a laser sensor of the mouse when the mouse is set to a desktop mode;
[0082] The third pointer control module is used to control the movement of the pointer on the terminal screen according to the second movement parameter.
[0083] The device for controlling a terminal screen with a mouse provided in the embodiment of the present invention can execute the method for controlling a terminal screen with a mouse provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0084] It is worth noting that in the above-mentioned embodiment of the device for controlling the terminal screen with a mouse, the various units and modules included are divided only according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0085] Embodiment 4
[0086] Figure 4 The schematic structural diagram of the mouse provided for the fourth embodiment of the present invention shows a block diagram of an exemplary mouse suitable for implementing the embodiments of the present invention. Figure 4 The mouse shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention. Figure 4 As shown, the mouse includes a processor 41, a memory 42, an input device 43 and an output device 44; the number of processors 41 in the mouse can be one or more. Figure 4 Taking a processor 41 as an example, the processor 41, memory 42, input device 43 and output device 44 in the mouse can be connected through a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0087] The memory 42, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the method for controlling the terminal screen with a mouse in an embodiment of the present invention (for example, the gesture receiving module 31, the first pointer control module 32 and the second pointer control module 33 in the device for controlling the terminal screen with a mouse). The processor 41 executes various functional applications and data processing of the mouse by running the software programs, instructions and modules stored in the memory 42, that is, realizes the above-mentioned method for controlling the terminal screen with a mouse.
[0088] The memory 42 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the mouse, etc. In addition, the memory 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0089] The input device 43 can be used to receive the sliding touch gesture input by the user, and generate key signal input related to the user setting and function control of the mouse. The output device 44 can include a wireless communication device, which can be used to send screen control instructions to the terminal. Correspondingly, the terminal can receive the control instructions sent by the mouse through an external receiver or a built-in Bluetooth receiving chip.
[0090] Embodiment 5
[0091] Embodiment 5 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a method for controlling a terminal screen with a mouse when executed by a computer processor, the method comprising:
[0092] When the mouse is set to air mode, receiving a sliding touch gesture input by the user on the mouse;
[0093] If the starting point of the sliding touch gesture is within the first coordinate range, controlling the pointer on the terminal screen to move according to the first movement parameter of the sliding touch gesture;
[0094] If the starting point of the sliding touch gesture is located in the second coordinate range, after the sliding touch gesture enters the first coordinate range from the second coordinate range, the pointer on the terminal screen is controlled to move according to the first movement parameter.
[0095] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system, which is connected to the computer system via a network (such as the Internet). The second computer system can provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0096] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the method operations described above, and can also execute related operations in the method of controlling the terminal screen with a mouse provided by any embodiment of the present invention.
[0097] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0098] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0099] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0100] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for controlling a terminal screen with a mouse, characterized in that: The mouse is a nearly flat cuboid, and the method comprises: When the mouse is set to an air mode, receiving a sliding touch gesture input by a user using the upper surface of the mouse; If the starting point of the sliding touch gesture is located in the first coordinate range, including sliding only within the first coordinate range, sliding from the first coordinate range to outside the first coordinate range, and sliding from the first coordinate range to outside the first coordinate range and then sliding into the first coordinate range, the pointer on the terminal screen is controlled to move according to the first movement parameter of the sliding touch gesture, that is, as long as the sliding touch gesture does not leave the mouse surface and the starting point is located in the first coordinate range, during the sliding process of the sliding touch gesture, including the process of sliding outside the first coordinate range, the mouse controls the pointer on the terminal screen to move according to the first movement parameter of the sliding touch gesture; If the starting point of the sliding touch gesture is located in the second coordinate range, then after the sliding touch gesture enters the first coordinate range from the second coordinate range, including the sliding process after entering the first coordinate range and then leaving the first coordinate range again, the pointer on the terminal screen is controlled to move according to the first movement parameter after the sliding touch gesture enters the first coordinate range; the second coordinate range is used to receive touch gestures for controlling page scrolling, page turning or page jumping; After receiving the sliding touch gesture input by the user on the mouse, the method further includes: If the sliding touch gesture is located in the second coordinate range, controlling the page on the terminal screen to scroll according to the first movement parameter; Wherein, the second coordinate range includes a third coordinate range and a fourth coordinate range; Correspondingly, if the sliding touch gesture is located in the second coordinate range, controlling the page on the terminal screen to scroll according to the first movement parameter includes: If the sliding touch gesture is a gesture in the vertical direction within the third coordinate range, controlling the page on the terminal screen to scroll in the vertical direction according to the first movement parameter; If the sliding touch gesture is a horizontal gesture within the fourth coordinate range, the page on the terminal screen is controlled to scroll in the horizontal direction according to the first movement parameter.
2. The method for controlling a terminal screen with a mouse according to claim 1, characterized in that: After receiving the sliding touch gesture input by the user on the mouse, the method further includes: If the sliding distance of the sliding touch gesture is less than the preset distance, no control instruction for the terminal screen is generated.
3. The method for controlling a terminal screen with a mouse according to claim 1, characterized in that: After receiving the sliding touch gesture input by the user on the mouse, the method further includes: If the sliding touch gesture is a two-finger or three-finger gesture in the same direction within a fifth coordinate range, the terminal screen is controlled to switch pages according to the first movement parameter, wherein the fifth coordinate range is any coordinate range on the mouse that can receive the sliding touch gesture.
4. The method for controlling a terminal screen with a mouse according to claim 1, characterized in that: After receiving the sliding touch gesture input by the user on the mouse, the method further includes: If the sliding touch gesture is a two-finger gesture facing each other within a sixth coordinate range, controlling the page on the terminal screen to be reduced according to the first movement parameter, wherein the sixth coordinate range is any coordinate range on the mouse that can receive the sliding touch gesture; If the sliding touch gesture is a two-finger reverse gesture within the sixth coordinate range, the page on the terminal screen is controlled to be enlarged according to the first movement parameter.
5. The method for controlling a terminal screen with a mouse according to claim 1, characterized in that: Also includes: When the mouse is set to desktop mode, obtaining a second movement parameter of the mouse when it moves on a support surface through a laser sensor of the mouse; The pointer on the terminal screen is controlled to move according to the second movement parameter.
6. A device for controlling a terminal screen with a mouse, characterized in that: The mouse is a nearly flat rectangular parallelepiped, and the device comprises: A gesture receiving module, used for receiving a sliding touch gesture input by a user using an upper surface of the mouse when the mouse is set to an air mode; A first pointer control module, for controlling the movement of the pointer on the terminal screen according to the first movement parameter of the sliding touch gesture if the starting point of the sliding touch gesture is located in a first coordinate range, including sliding only within the first coordinate range, sliding from the first coordinate range to outside the first coordinate range, and sliding from the first coordinate range to outside the first coordinate range and then sliding into the first coordinate range, that is, as long as the sliding touch gesture does not leave the mouse surface and the starting point is located in the first coordinate range, during the sliding process of the sliding touch gesture, including the process of sliding outside the first coordinate range, the mouse controls the movement of the pointer on the terminal screen according to the first movement parameter of the sliding touch gesture; A second pointer control module, for controlling the movement of the pointer on the terminal screen according to the first movement parameter of the sliding touch gesture after the starting point of the sliding touch gesture is located in a second coordinate range, after the sliding touch gesture enters the first coordinate range from the second coordinate range, including a sliding process after entering the first coordinate range and then leaving the first coordinate range again; the second coordinate range is used to receive a touch gesture for controlling page scrolling, page turning or page jumping; The device also includes: a page scrolling control module, configured to control the page on the terminal screen to scroll according to the first movement parameter after receiving the sliding touch gesture input by the user on the mouse if the sliding touch gesture is located in the second coordinate range; Wherein, the second coordinate range includes a third coordinate range and a fourth coordinate range; Correspondingly, the page scrolling control module includes: A first page scrolling control unit, configured to control the page on the terminal screen to scroll in the vertical direction according to the first movement parameter if the sliding touch gesture is a gesture in the vertical direction within the third coordinate range; The second page scrolling control unit is configured to control the page on the terminal screen to scroll horizontally according to the first movement parameter if the sliding touch gesture is a horizontal gesture within the fourth coordinate range.
7. A mouse, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for controlling a terminal screen with a mouse as described in any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for controlling a terminal screen with a mouse as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and equipment for simulating mouse input
CN102830819A
Control method for touch air mouse
CN104345905A
Screen test system and method
CN104349159A
Input method and electronic equipment
CN105930088A
Device and method for implementing mouse function with cellphone and cellphone with device
CN106550108A
