Method, device and equipment for realizing simulated mouse control in display terminal and medium
By adding mouse view control classes and building corresponding objects in the display terminal of IPTV device, and converting the instructions of the remote control device into the mobile information of the mouse control, the problem that users cannot effectively control third-party applications is solved, achieving a better user experience.
Patent Information
- Application Number
- CN202411439634.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-03-04
AI Technical Summary
Due to cost savings, existing IPTV devices are usually not equipped with wireless mice, and most screens do not support touch. Users can only use infrared remote controls and cannot effectively control third-party applications, affecting the user experience.
Add a mouse view control class in the application project of the display terminal, build a mouse view control object, and add a remote control device instruction processing function to convert the remote control instructions of the remote control device into the moving information of the mouse view control, and realize the movement and selection of the mouse view control.
By simulating mouse control, users can control the moving distance and direction of the mouse view control according to their expectations, select non-view areas, and improve user experience.
Smart Images

Figure CN119556832A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology and related technologies, and in particular, to a method, apparatus, device, and medium for implementing simulated mouse control in a display terminal. Background Art
[0002] Smart terminals bring great convenience and good user experience to social life, such as interactive Internet protocol television (IPTV).
[0003] In the prior art, most IPTVs allow users to download and install Android package (apk) applications. However, many third-party applications developed on the Internet can only support mouse or touch screen operations; and IPTVs are generally not equipped with wireless mice to save costs. In particular, since most IPTV screens do not support touch, users can only use general infrared (IR) remote controls and cannot use or control these third-party applications, which greatly affects the user experience. Summary of the invention
[0004] The embodiments described herein provide a method, apparatus, device and medium for implementing simulated mouse control in a display terminal, solving the problems existing in the prior art.
[0005] According to a first aspect of the present disclosure, a method for implementing simulated mouse control in a display terminal is provided, comprising:
[0006] Adding a mouse view control class in the application project of the display terminal, wherein the mouse view control class includes a conversion relationship between a remote control command of a remote control device and movement information of the mouse view control, wherein the movement information includes a movement direction and a movement distance;
[0007] Constructing a mouse view control object corresponding to the mouse view control class to implement creation of a mouse view control on a target application page of the display terminal, wherein the target application page is an application page defined by the mouse view control object;
[0008] In the remote control device instruction processing object, add the remote control device instruction processing function encapsulated by the mouse view control object, wherein the remote control device instruction processing function is called by the mouse view control class;
[0009] In response to a remote control instruction received from a remote control device, a target position of the mouse view control is determined according to the mouse control class, so that the mouse view control displayed in the target application page of the display terminal moves to the target position.
[0010] In some embodiments of the present disclosure, the step of constructing a mouse view control object corresponding to the mouse view control class includes:
[0011] Declare a mouse view control variable on the target application page;
[0012] According to the identification information corresponding to the mouse view control, find the XML file corresponding to the mouse view control;
[0013] Based on finding the XML file corresponding to the mouse view control, the mouse view control variable is assigned a value to achieve creation of a mouse view control on the target application page of the display terminal.
[0014] In some embodiments of the present disclosure, adding the remote control device instruction processing function encapsulated by the mouse view control object to the remote control device instruction processing object includes:
[0015] Get the remote control device command processing object of the Android system;
[0016] A conditional judgment function is added to the remote control device instruction processing object to determine whether the mouse view control object responds to the remote control instruction of the remote control device through the conditional judgment function.
[0017] In some embodiments of the present disclosure, in response to a remote control instruction received from a remote control device, determining a target position of the mouse view control according to the mouse control class so as to move the mouse view control displayed in a target application page of the display terminal to the target position includes:
[0018] Obtaining the output result of the remote control device command processing object;
[0019] When the output result of the remote control device instruction processing object is the first output result, in response to the remote control instruction received from the remote control device, the target position of the mouse view control is determined according to the mouse control class, so that the mouse view control displayed in the target application page of the display terminal is moved to the target position.
[0020] In some embodiments of the present disclosure, the method further includes:
[0021] When the output result of the remote control device instruction processing object is the second output result, prompt information is output in response to the received remote control instruction of the remote control device.
[0022] In some embodiments of the present disclosure, in response to a remote control instruction received from a remote control device, determining a target position of the mouse view control according to the mouse control class so as to move the mouse view control displayed in a target application page of the display terminal to the target position includes:
[0023] In response to a received remote control instruction of a remote control device, determining, according to the mouse control class, a moving direction and a moving distance of a mouse view control corresponding to the remote control instruction of the remote control device;
[0024] Get the initial position of the mouse view control;
[0025] The target position of the mouse view control is determined according to the initial position, moving direction and moving distance of the mouse view control.
[0026] In some embodiments of the present disclosure, in response to a received remote control instruction of a remote control device, determining, according to the mouse control class, a moving direction and a moving distance of a mouse view control corresponding to the remote control instruction of the remote control device includes:
[0027] In response to a remote control command received from a remote control device, determining a remote control key command and a remote control key count;
[0028] Determine the moving direction according to the remote control button command and the mouse control class;
[0029] Determine the moving distance based on the number of remote control button presses and the mouse control class
[0030] According to a second aspect of the present disclosure, there is provided a device for implementing simulated mouse control in a display terminal, comprising:
[0031] A mouse view control class adding module, used to add a mouse view control class in an application project of a display terminal, wherein the mouse view control class includes a conversion relationship between a remote control command of a remote control device and movement information of the mouse view control, wherein the movement information includes a movement direction and a movement distance;
[0032] A mouse view control object construction module, used for constructing a mouse view control object corresponding to the mouse view control class, so as to create a mouse view control on a target application page of the display terminal, wherein the target application page is an application page defined by the mouse view control object;
[0033] A remote control device instruction processing function adding module, used for adding the remote control device instruction processing function encapsulated by the mouse view control object in the remote control device instruction processing object, wherein the remote control device instruction processing function is called by the mouse view control class;
[0034] The mouse view control position determination module is used to determine the target position of the mouse view control according to the mouse control class in response to the remote control command received from the remote control device, so as to move the mouse view control displayed in the target application page of the display terminal to the target position.
[0035] According to a third aspect of the present disclosure, there is provided a computer device, comprising:
[0036] one or more processors;
[0037] a storage device for storing one or more programs,
[0038] When the one or more programs are executed by the one or more processors, the one or more processors implement any method as described in the first aspect.
[0039] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the first aspects is implemented.
[0040] The method, device, equipment and medium for implementing simulated mouse control in a display terminal provided by the embodiment of the present disclosure include: firstly, adding a mouse view control class in the application project of the display terminal; then constructing a mouse view control object corresponding to the mouse view control class to implement the creation of a mouse view control in the target application page of the display terminal; and in the remote control device instruction processing object, adding a remote control device instruction processing function encapsulated by the mouse view control object; finally, in response to the remote control instruction received from the remote control device, determining the target position of the mouse view control according to the mouse control class, so that the mouse view control displayed in the target application page of the display terminal moves to the target position. The mouse view control is created in the target application page, and the position is moved and selected by moving the mouse view control in the target application page by converting the remote control instruction of the remote control device into the movement information of the mouse view control. Compared with the prior art of selecting a view frame by using a remote control device up, down, left, and right, in the method for implementing simulated mouse control in a display terminal provided by the embodiment of the present disclosure, the moving distance and moving direction of the mouse view control can be controlled according to the user's expectations, so as to implement the selection of a non-view area and improve the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein:
[0042] Figure 1 It is a flowchart of a method for implementing simulated mouse control in a display terminal provided by an embodiment of the present disclosure;
[0043] Figure 2 is a structural schematic diagram of a device for implementing simulated mouse control in a display terminal provided by an embodiment of the present disclosure;
[0044] Figure 3 It is a structural diagram of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0046] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.
[0047] In all embodiments of the present disclosure, terms such as “first” and “second” are used only to distinguish one component (or a part of a component) from another component (or another part of a component).
[0048] Unless the context clearly indicates otherwise, the singular form of the words used herein and in the appended claims includes the plural and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the words "comprise" and "include" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.
[0049] Based on the problems existing in the prior art, the present disclosure provides a method for implementing simulated mouse control in a display terminal. Figure 1 is a flow chart of a method for implementing simulated mouse control in a display terminal provided by an embodiment of the present disclosure, such as Figure 1 As shown, the method for implementing simulated mouse control in a display terminal includes:
[0050] S110. Add a mouse view control class in the application project of the display terminal.
[0051] The mouse view control class includes the conversion relationship between the remote control command of the remote control device and the movement information of the mouse view control, and the movement information includes the movement direction and the movement distance;
[0052] In a specific implementation, the display terminal is an interactive network television, which receives remote control instructions from a remote control device and converts the received remote control instructions into movement instructions for a mouse view control to drive the mouse view control to move from an initial position to a target position.
[0053] In the prior art, after receiving a remote control command (the remote control command includes: "move up", "move down", "move left", "move right" and "confirm"), the display terminal responds to the remote control command to move left, right, up or down on the target application page of the display terminal, and selects the corresponding view on the target application page. When the views included in the target application page are irregularly arranged, the up, down, left and right movement is performed based on the response movement logic encapsulated by the display terminal to select the view, which may not meet the user's expectations.
[0054] Based on the problems existing in the prior art, in the method for implementing simulated mouse control in a display terminal provided by an embodiment of the present disclosure, after the display terminal receives a remote control command from a remote control device, in order to convert the remote control command from the remote control device into a movement command of a mouse view control on the display terminal, and the movement method of the mouse view control meets the user's expected movement method, it is first necessary to add a mouse view control to the target application page of the display terminal.
[0055] Specifically, in the specific implementation process of adding a mouse view control to the target application page of the target terminal, it is first necessary to add a mouse view control class in the application project of the display terminal. The mouse view control class added in the application project of the display terminal (such as the main project) is FinMouseView, wherein the mouse view control class includes the written code to convert the remote control commands of the remote control device into the movement information of the mouse view control.
[0056] As a specific embodiment, the mouse view control class includes the conversion relationship between the remote control command of the remote control device and the movement information of the mouse view control, specifically including: if the remote control command of the remote control device is a left key command, the mouse view control moves 15 pixels to the left; if the remote control command of the remote control device is a right key command, the mouse view control moves 15 pixels to the right; if the remote control command of the remote control device is an up key command, the mouse view control moves up 15 pixels; if the remote control command of the remote control device is a down key command, the mouse view control moves up 15 pixels; if the remote control command of the remote control device is an OK key command, a click event is issued at the center point of the mouse view control; if the interval between two direction key commands is less than 400 milliseconds, the distance moved by the mouse view control increases by 15 pixels until it increases to 75 pixels, and no longer increases.
[0057] S120: Construct a mouse view control object corresponding to the mouse view control class to create a mouse view control on a target application page of a display terminal.
[0058] The target application page is the application page defined by the mouse view control object.
[0059] After adding the mouse view control class to the application project of the display terminal in step S110, in order to display the mouse view control on the application page, it is necessary to construct a mouse view control object corresponding to the mouse view control class, that is, first determine the target application page where the mouse view control needs to be displayed, and then construct the mouse view control object of the target application page and assign values to the mouse view control object to achieve creation of the mouse view control on the target application page of the display terminal. The process of assigning values to the mouse view control object is the process of assigning shape and position to the defined mouse view control object.
[0060] In a specific implementation, the specific process of constructing a mouse view control object corresponding to a mouse view control class includes: declaring a mouse view control variable on a target application page; finding an XML file corresponding to the mouse view control based on identification information corresponding to the mouse view control; and assigning a value to the mouse view control variable based on finding the XML file corresponding to the mouse view control, so as to create a mouse view control on the target application page of a display terminal.
[0061] Among them, in the above implementation, the target application page is WebViewActivity, and the mouse view control variable is declared as: private FinMouseView finMouseView, and the XML file corresponding to the mouse view control is found according to the identification information corresponding to the mouse view control; based on the XML file corresponding to the mouse view control, the mouse view control variable is assigned as: finMouseView = (FinMouseView) findViewById (R.id.mouse_view). Through the above-mentioned related steps, the mouse view control can be displayed on the target application page, that is, firstly, a mouse view control variable finMouseView is declared in the target application page WebViewActivity, and then the XML file corresponding to the mouse view control is found, and based on the XML file corresponding to the mouse view control, the mouse view control variable is assigned to create a mouse view control on the target application page of the display terminal.
[0062] The XML file edits the shape, position, color and other features corresponding to the mouse view control.
[0063] S130: Add the remote control device command processing function encapsulated by the mouse view control object to the remote control device command processing object.
[0064] Among them, the remote control device command processing function is called by the mouse view control class.
[0065] In step S110, a mouse view control class is added to the application project of the display terminal, and in step S120, a mouse view control object corresponding to the mouse view control is constructed. After the mouse view control is created on the target application page, the remote control device command processing function encapsulated by the mouse view control object is first added to the remote control device command processing object.
[0066] Exemplarily, the remote control device command processing object is dispatchKeyEvent, which is the default function of the Android system for processing remote control commands. By modifying the implementation method of the remote control device command processing object, after subsequently receiving the remote control command of the remote control device, the received remote control command can be converted into the movement information of the mouse view control, so as to move the mouse view control to the target position in the target application page of the display terminal.
[0067] In a specific implementation method, in the remote control device command processing object, a remote control device command processing function encapsulated by the mouse view control object is added, including: obtaining the remote control device command processing object of the Android system; in the remote control device command processing object, a conditional judgment function is added to determine whether the mouse view control object responds to the remote control command of the remote control device through the conditional judgment function.
[0068] Exemplarily, the remote control device instruction processing object is dispatchKeyEvent, and by adding a conditional judgment function if, it is determined based on the conditional judgment function whether the mouse view control responds to the remote control instruction of the device, that is, based on the if function, it is determined whether the function movemouse can respond to the remote control instruction of the remote control device. Since the remote control device instruction processing function is called by the mouse view control class, when the function movemouse can respond to the remote control instruction of the remote control device, the movement information of the mouse view control displayed on the target application page can be determined according to the mouse view control class. Specifically, if the mouse view control can respond to the remote control instruction of the remote control device, the remote control device instruction processing object outputs a first output result, at which time, the movement information of the mouse view control displayed on the target application page is based on the mouse view control class; if the mouse view control cannot respond to the remote control instruction of the remote control device, the remote control device instruction processing object outputs a second output result, wherein the function movemouse is a function encapsulated by the mouse view control to process the remote control instruction of the remote control device.
[0069] S140: In response to the remote control instruction received from the remote control device, determine a target position of the mouse view control according to the mouse control class, so that the mouse view control displayed in the target application page of the display terminal moves to the target position.
[0070] In a specific implementation, in response to a remote control command received from a remote control device, a target position of a mouse view control is determined according to a mouse control class, so that the mouse view control displayed in a target application page of a display terminal is moved to the target position, including: in response to a remote control command received from a remote control device, determining, according to the mouse control class, a moving direction and a moving distance of the mouse view control corresponding to the remote control command of the remote control device; obtaining an initial position of the mouse view control; and determining the target position of the mouse view control according to the initial position, moving direction and moving distance of the mouse view control.
[0071] Specifically, in response to a remote control command received from a remote control device, a moving direction and a moving distance of a mouse view control corresponding to the remote control command of the remote control device are determined according to a mouse control class, including: in response to a remote control command received from a remote control device, a remote control key command and a number of remote control key presses are determined; a moving direction is determined according to the remote control key command and the mouse control class; a moving distance is determined according to the number of remote control key presses and the mouse control class.
[0072] Exemplarily, if the remote control command of the remote control device is an up key command and the key is pressed twice in succession, and the interval between the two consecutive key presses is less than 400 milliseconds, it is determined that the moving direction of the mouse view control is upward, and the moving distance is 30 pixels.
[0073] After the layout of steps S110, S120 and S130 is completed, after receiving the remote control command of the remote control device, the terminal device will first call the mouse control class to determine that the remote control command of the remote control device needs to control the moving direction and moving distance of the mouse view control, and then according to the initial position of the mouse view control, according to the moving direction and moving distance of the mouse view control, move the mouse view control displayed on the target reference page to the target position.
[0074] In the above embodiment, before executing step S140, it is necessary to obtain the output result of the remote control device instruction processing object, that is, the processing result of the dispatchKeyEvent function. When the processing result of the dispatchKeyEvent function is the first processing result, it indicates that the remote control device instruction processing function movemouse can respond to the remote control instruction of the remote control device. Therefore, based on the association between the remote control device instruction processing function movemouse and the mouse view control class, the moving direction and moving distance of the mouse view control corresponding to the remote control instruction of the remote control device can be determined. When the processing result of the dispatchKeyEvent function is the second processing result, it indicates that the remote control device instruction processing function movemouse is unable to respond to the remote control instruction of the remote control device. At this time, a prompt message is output to prompt the target object that the remote control instruction currently operated by the remote control device does not conform to the remote control instruction of the moving mouse view control, and it is recommended to make changes.
[0075] The method for implementing simulated mouse control in a display terminal provided by the embodiment of the present disclosure includes: firstly, adding a mouse view control class in the application project of the display terminal; then constructing a mouse view control object corresponding to the mouse view control class to implement the creation of a mouse view control in the target application page of the display terminal; and in the remote control device instruction processing object, adding a remote control device instruction processing function encapsulated by the mouse view control object; finally, in response to the remote control instruction received from the remote control device, determining the target position of the mouse view control according to the mouse control class, so that the mouse view control displayed in the target application page of the display terminal moves to the target position. The mouse view control is created in the target application page, and the position is moved and selected by moving the mouse view control in the target application page by converting the remote control instruction of the remote control device into the movement information of the mouse view control. Compared with the prior art of selecting a view box by using a remote control device up, down, left, and right, in the method for implementing simulated mouse control in a display terminal provided by the embodiment of the present disclosure, the moving distance and moving direction of the mouse view control can be controlled according to the user's expectations, so as to implement the selection of a non-view area and improve the user's experience.
[0076] Based on the above embodiments, Figure 2 is a schematic diagram of a structure of a device for implementing simulated mouse control in a display terminal provided by an embodiment of the present disclosure, such as Figure 2 As shown, the device for implementing simulated mouse control in a display terminal includes:
[0077] A mouse view control class adding module 210 is used to add a mouse view control class in an application project of a display terminal, wherein the mouse view control class includes a conversion relationship between a remote control command of a remote control device and movement information of the mouse view control, and the movement information includes a movement direction and a movement distance;
[0078] The mouse view control object construction module 220 is used to construct a mouse view control object corresponding to the mouse view control class, so as to create a mouse view control on a target application page of the display terminal, wherein the target application page is an application page defined by the mouse view control object;
[0079] A remote control device instruction processing function adding module 230 is used to add the remote control device instruction processing function encapsulated by the mouse view control object in the remote control device instruction processing object, wherein the remote control device instruction processing function is called by the mouse view control class;
[0080] The mouse view control position determination module 240 is used to determine the target position of the mouse view control according to the mouse control class in response to the remote control command received from the remote control device, so as to move the mouse view control displayed in the target application page of the display terminal to the target position.
[0081] The device for implementing simulated mouse control in a display terminal provided by the embodiment of the present disclosure includes: firstly, adding a mouse view control class in the application project of the display terminal; then constructing a mouse view control object corresponding to the mouse view control class to implement the creation of a mouse view control in the target application page of the display terminal; and in the remote control device instruction processing object, adding a remote control device instruction processing function encapsulated by the mouse view control object; finally, in response to the remote control instruction received from the remote control device, determining the target position of the mouse view control according to the mouse control class, so that the mouse view control displayed in the target application page of the display terminal moves to the target position. The mouse view control is created in the target application page, and the position is moved and selected by moving the mouse view control in the target application page by converting the remote control instruction of the remote control device into the movement information of the mouse view control. Compared with the prior art of selecting a view box by using a remote control device up, down, left, and right, in the method for implementing simulated mouse control in a display terminal provided by the embodiment of the present disclosure, the moving distance and moving direction of the mouse view control can be controlled according to the user's expectations, so as to implement the selection of a non-view area and improve the user's experience.
[0082] In a specific implementation, the step of constructing a mouse view control object corresponding to the mouse view control class includes:
[0083] Declare a mouse view control variable on the target application page;
[0084] According to the identification information corresponding to the mouse view control, find the XML file corresponding to the mouse view control;
[0085] Based on finding the XML file corresponding to the mouse view control, the mouse view control variable is assigned a value to achieve creation of a mouse view control on the target application page of the display terminal.
[0086] In a specific implementation, the adding of the remote control device instruction processing function encapsulated by the mouse view control object in the remote control device instruction processing object includes:
[0087] Get the remote control device command processing object of the Android system;
[0088] A conditional judgment function is added to the remote control device instruction processing object to determine whether the mouse view control object responds to the remote control instruction of the remote control device through the conditional judgment function.
[0089] In a specific implementation, in response to a remote control instruction received from a remote control device, determining a target position of the mouse view control according to the mouse control class so that the mouse view control displayed in the target application page of the display terminal moves to the target position includes:
[0090] Obtaining the output result of the remote control device command processing object;
[0091] When the output result of the remote control device instruction processing object is the first output result, in response to the remote control instruction received from the remote control device, the target position of the mouse view control is determined according to the mouse control class, so that the mouse view control displayed in the target application page of the display terminal is moved to the target position.
[0092] In a specific embodiment, the method further comprises:
[0093] When the output result of the remote control device instruction processing object is the second output result, prompt information is output in response to the received remote control instruction of the remote control device.
[0094] In a specific implementation, in response to a remote control instruction received from a remote control device, determining a target position of the mouse view control according to the mouse control class so that the mouse view control displayed in the target application page of the display terminal moves to the target position includes:
[0095] In response to a received remote control instruction of a remote control device, determining, according to the mouse control class, a moving direction and a moving distance of a mouse view control corresponding to the remote control instruction of the remote control device;
[0096] Get the initial position of the mouse view control;
[0097] The target position of the mouse view control is determined according to the initial position, moving direction and moving distance of the mouse view control.
[0098] In a specific implementation, in response to a received remote control instruction of a remote control device, determining, according to the mouse control class, a moving direction and a moving distance of a mouse view control corresponding to the remote control instruction of the remote control device includes:
[0099] In response to a remote control command received from a remote control device, determining a remote control key command and a remote control key count;
[0100] Determine the moving direction according to the remote control button command and the mouse control class;
[0101] The moving distance is determined according to the number of remote control button presses and the mouse control type.
[0102] The present application also provides a computer device. Figure 3 , Figure 3 This is a basic structural block diagram of the computer device in this embodiment.
[0103] The computer device includes a memory 510 and a processor 520 that are connected to each other through a system bus. It should be noted that the figure only shows a computer device with components 510-520, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0104] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.
[0105] The memory 510 includes at least one type of readable storage medium, and the readable storage medium includes a non-volatile memory or a volatile memory, for example, a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 510 may be an internal storage unit of a computer device, for example, a hard disk or a memory of the computer device. In other embodiments, the memory 510 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card (FlashCard) equipped on the computer device. Of course, the memory 510 may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory 510 is generally used to store the operating system and various application software installed on the computer device, such as the program code of the above method. In addition, the memory 510 may also be used to temporarily store various data that have been output or are to be output.
[0106] The processor 520 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 510 is used to store program codes or instructions, the program code includes computer operation instructions, and the processor 520 is used to execute the program codes or instructions stored in the memory 510 or process data, such as running the program code of the above method.
[0107] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0108] Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or a combination of blocks in the block diagram.
[0109] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above methods stored in the memory.
[0110] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.
[0111] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0112] Each functional unit or module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0113] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0114] Unless the context clearly indicates otherwise, the singular form of the words used herein and in the appended claims includes the plural and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the words "comprise" and "include" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.
[0115] Further aspects and scopes of adaptability become apparent from the description provided herein. It should be understood that various aspects of the present application can be implemented individually or in combination with one or more other aspects. It should also be understood that the description and specific embodiments herein are intended for purposes of illustration only and are not intended to limit the scope of the present application.
[0116] Several embodiments of the present disclosure are described in detail above, but it is obvious that those skilled in the art can make various modifications and variations to the embodiments of the present disclosure without departing from the spirit and scope of the present disclosure. The protection scope of the present disclosure is defined by the attached claims.
Claims
1. A method for implementing simulated mouse control in a display terminal, characterized in that: include: Adding a mouse view control class in the application project of the display terminal, wherein the mouse view control class includes a conversion relationship between a remote control command of a remote control device and movement information of the mouse view control, wherein the movement information includes a movement direction and a movement distance; Constructing a mouse view control object corresponding to the mouse view control class to implement creation of a mouse view control on a target application page of the display terminal, wherein the target application page is an application page defined by the mouse view control object; In the remote control device instruction processing object, add the remote control device instruction processing function encapsulated by the mouse view control object, wherein the remote control device instruction processing function is called by the mouse view control class; In response to a remote control instruction received from a remote control device, a target position of the mouse view control is determined according to the mouse control class, so that the mouse view control displayed in the target application page of the display terminal moves to the target position.
2. The method according to claim 1, characterized in that The step of constructing a mouse view control object corresponding to the mouse view control class includes: Declare a mouse view control variable on the target application page; According to the identification information corresponding to the mouse view control, find the XML file corresponding to the mouse view control; Based on finding the XML file corresponding to the mouse view control, the mouse view control variable is assigned a value to achieve creation of a mouse view control on the target application page of the display terminal.
3. The method according to claim 1, characterized in that The adding of the remote control device instruction processing function encapsulated by the mouse view control object in the remote control device instruction processing object includes: Get the remote control device command processing object of the Android system; A conditional judgment function is added to the remote control device instruction processing object to determine whether the mouse view control object responds to the remote control instruction of the remote control device through the conditional judgment function.
4. The method according to claim 1, characterized in that: The step of determining, in response to a received remote control instruction of a remote control device, a target position of the mouse view control according to the mouse control class so as to move the mouse view control displayed in a target application page of the display terminal to the target position includes: Obtaining the output result of the remote control device command processing object; When the output result of the remote control device instruction processing object is the first output result, in response to the remote control instruction received from the remote control device, the target position of the mouse view control is determined according to the mouse control class, so that the mouse view control displayed in the target application page of the display terminal is moved to the target position.
5. The method according to claim 4, characterized in that The method further comprises: When the output result of the remote control device instruction processing object is the second output result, prompt information is output in response to the received remote control instruction of the remote control device.
6. The method according to claim 1, characterized in that The step of determining, in response to a received remote control instruction of a remote control device, a target position of the mouse view control according to the mouse control class so as to move the mouse view control displayed in a target application page of the display terminal to the target position includes: In response to a received remote control instruction of a remote control device, determining, according to the mouse control class, a moving direction and a moving distance of a mouse view control corresponding to the remote control instruction of the remote control device; Get the initial position of the mouse view control; The target position of the mouse view control is determined according to the initial position, moving direction and moving distance of the mouse view control.
7. The method according to claim 6, characterized in that The step of determining, in response to a received remote control instruction of a remote control device, a moving direction and a moving distance of a mouse view control corresponding to the remote control instruction of the remote control device according to the mouse control class comprises: In response to a remote control command received from a remote control device, determining a remote control key command and a remote control key count; Determine the moving direction according to the remote control button command and the mouse control class; The moving distance is determined according to the number of remote control button presses and the mouse control type.
8. A device for implementing simulated mouse control in a display terminal, characterized in that: include: A mouse view control class adding module, used to add a mouse view control class in an application project of a display terminal, wherein the mouse view control class includes a conversion relationship between a remote control command of a remote control device and movement information of the mouse view control, wherein the movement information includes a movement direction and a movement distance; A mouse view control object construction module, used for constructing a mouse view control object corresponding to the mouse view control class, so as to create a mouse view control on a target application page of the display terminal, wherein the target application page is an application page defined by the mouse view control object; A remote control device instruction processing function adding module, used for adding the remote control device instruction processing function encapsulated by the mouse view control object in the remote control device instruction processing object, wherein the remote control device instruction processing function is called by the mouse view control class; The mouse view control position determination module is used to determine the target position of the mouse view control according to the mouse control class in response to the remote control command received from the remote control device, so as to move the mouse view control displayed in the target application page of the display terminal to the target position.
9. A computer device, characterized in that: include: one or more processors; a storage device 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 according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method for realizing simulated mouse control in intelligent terminal and intelligent terminal
CN102750146A
Method for simulating mouse with remote controller
CN103455178A
Mouse pointer control method and device based on Android operating system
CN104636158A
Input state recognition method based on event distribution and related equipment
CN117492676A
Television equipment mouse control method and device, television equipment and medium
CN118138817A