A control response method, terminal, storage medium and terminal device
By acquiring the control identifier in the wireless control signal, determining the key event based on the key mapping table, and responding to the key operation on the target control, the problem that Windows system terminal devices cannot support infrared remote control is solved, and the popularity and performance of wireless signal control are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
- Filing Date
- 2022-11-18
- Publication Date
- 2026-04-28
AI Technical Summary
Split-type terminal devices with Windows operating systems cannot support infrared remote control operation, resulting in poor performance and inability to support multiple high-definition 4K PTZ cameras. Existing technologies cannot effectively solve the matching problem between the terminal or system and the wireless signal.
By acquiring the control identifier in the wireless control signal, determining the key event corresponding to the control identifier based on the key mapping table, determining the target control corresponding to the key event, and responding to the key operation corresponding to the key event on the target control, the wireless signal can control the terminal device.
It adaptively solves the problem of mismatch between terminals or systems and wireless signals, and improves the accessibility and performance of wireless signal control terminal equipment.
Smart Images

Figure CN118057504B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a control response method, a terminal, a storage medium, and a terminal device. Background Technology
[0002] Nowadays, when conducting meetings, to facilitate clear communication between the meeting organizers and participants, terminal devices are often used to display the meeting content. These terminal devices can be controlled wirelessly. Summary of the Invention
[0003] This application provides a control response method, a terminal, a storage medium, and a terminal device. By determining the target control corresponding to the wireless control signal and responding to the key operation corresponding to the key event, the terminal device's terminal application can be controlled according to the wireless control signal. This adaptively solves the problem of mismatch between the terminal or system and the wireless signal, and improves the popularity of wireless signal-controlled terminal devices.
[0004] In a first aspect, embodiments of this application provide a control response method, applied to a terminal with a Windows system installed, the terminal being configured with a wireless signal receiver, including:
[0005] The wireless signal receiver acquires the wireless control signal for the terminal application and the control identifier carried by the wireless control signal.
[0006] The key events corresponding to the control identifier are determined based on the key mapping table;
[0007] The target control corresponding to the key event is determined, and the key operation corresponding to the key event is responded to on the target control. The target control is a control in the terminal application.
[0008] Secondly, embodiments of this application provide a control-responsive terminal, applied to a terminal with a Windows system installed, the terminal being configured with a wireless signal receiver, the terminal comprising:
[0009] The identifier acquisition unit is used to acquire a wireless control signal for a terminal application based on the wireless signal receiver, and to acquire the control identifier carried by the wireless control signal.
[0010] An event determination unit is used to determine the key event corresponding to the control identifier based on a key mapping table.
[0011] An operation response unit is used to determine the target control corresponding to the key event, and to respond to the key operation corresponding to the key event on the target control, wherein the target control is a control in the terminal application.
[0012] Thirdly, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor and executing the steps of the method described above.
[0013] Fourthly, embodiments of this application provide a terminal device, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the steps of the method described in the second aspect.
[0014] In this embodiment, by obtaining the control identifier in the wireless control signal, determining the key event corresponding to the control identifier based on the key mapping table, and then determining the target control corresponding to the key event, the target control responds to the key operation corresponding to the key event, thereby realizing the control of the terminal application of the terminal device according to the wireless control signal. This adaptively solves the problem of mismatch between the terminal or system and the wireless signal, and improves the popularity of wireless signal control terminal devices. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 A system architecture diagram of a control response method provided in this application embodiment;
[0017] Figure 2 A flowchart illustrating a control response method provided in an embodiment of this application;
[0018] Figure 3 A schematic diagram illustrating an example of an upward movement operation provided in an embodiment of this application;
[0019] Figure 4 This is a schematic diagram illustrating an example of a control switching operation provided in an embodiment of this application;
[0020] Figure 5 This is a schematic diagram illustrating an example of a control command operation provided in an embodiment of this application;
[0021] Figure 6 This is a schematic diagram illustrating an example of a control distribution change provided in an embodiment of this application;
[0022] Figure 7 This is a schematic diagram illustrating another example of a control distribution change provided in an embodiment of this application;
[0023] Figure 8 A schematic diagram illustrating an example of control coordinates provided in an embodiment of this application;
[0024] Figure 9 A flowchart illustrating a control response method provided in an embodiment of this application;
[0025] Figure 10 This is a schematic diagram of the structure of a control response terminal provided in an embodiment of this application;
[0026] Figure 11 This is a schematic diagram of the structure of an operation response unit provided in an embodiment of this application;
[0027] Figure 12 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation
[0028] To make the features and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] Large and medium-sized conference rooms are typically equipped with conference display equipment, audio equipment such as mixing and power amplifiers, etc. These devices can form a remote conferencing scenario with split-type terminals installed with remote conferencing software. In this scenario, the split-type terminals can support infrared remote control operation.
[0030] Currently, Android systems support remote control button signals by default, and Android application controls support switching and selection using remote control buttons (up, down, left, right, and OK). Therefore, the operating system for most mainstream split-type terminals is Android. However, due to platform limitations, split-type terminals with Android systems have relatively poor performance during video conferencing and cannot support multiple high-definition 4K PTZ cameras.
[0031] To address these issues, the developers switched the operating system of the modular terminal to a Windows system powered by a high-performance Intel processor. To maintain compatibility with users' default operating habits, the modular terminal with Windows still needed to support infrared remote control operation. However, Windows does not natively support receiving infrared signals, and controls in Windows software (such as buttons and input boxes) do not support switching or selecting remote control buttons by default.
[0032] Therefore, for split-type terminals with Windows installed, how to support infrared remote control operation has become an urgent problem to be solved.
[0033] Based on this, embodiments of this application provide a control response method. By obtaining the control identifier in the wireless control signal, determining the key event corresponding to the control identifier based on the key mapping table, and then determining the target control corresponding to the key event, the target control responds to the key operation corresponding to the key event. This enables the control of the terminal application of the terminal device according to the wireless control signal, adaptively solving the problem of mismatch between the terminal or system and the wireless signal, and improving the popularity of wireless signal control of terminal devices.
[0034] Please see Figure 1 The diagram below illustrates a system architecture for a control response method as provided in this application. Figure 1 As shown, the control response method provided in this application embodiment can be applied to the wireless signal generator 10 and the terminal device 20 to realize the process of controlling the terminal device through wireless signals. The system structure provided in this application embodiment mainly includes the wireless signal generator 10 and the terminal device 20. Among them, the wireless signal generator 10 can be a device capable of transmitting wireless signals, such as a remote control; the terminal device 20 can be, but is not limited to, a split terminal, mobile phone, personal computer, laptop computer, smart furniture, in-vehicle equipment, wearable device, and other terminal devices with functions such as terminal application installation and operation.
[0035] In this embodiment, the wireless signal generator 10 sends a wireless control signal to the terminal device 20. After receiving the wireless control signal, the terminal device 20 obtains the control identifier carried in the wireless control signal, determines the key event corresponding to the control identifier, further determines the target control corresponding to the key event, and responds to the key operation corresponding to the key event on the target control.
[0036] In this embodiment, by obtaining the control identifier in the wireless control signal, determining the key event corresponding to the control identifier based on the key mapping table, and then determining the target control corresponding to the key event, the target control responds to the key operation corresponding to the key event, thereby realizing the control of the terminal application of the terminal device according to the wireless control signal. This adaptively solves the problem of mismatch between the terminal or system and the wireless signal, and improves the popularity of wireless signal control terminal devices.
[0037] based on Figure 1 The system architecture shown below will be combined with... Figures 2-8 This application provides a detailed description of the control response method provided in the embodiments.
[0038] Please see Figure 2This document provides a flowchart illustrating a control response method according to an embodiment of this application. The method is applied to a terminal equipped with a Windows system and a wireless signal receiver. Figure 2 As shown, the method may include the following steps S101-S103.
[0039] S101, Based on the wireless signal receiver, obtain the wireless control signal for the terminal application, and obtain the control identifier carried by the wireless control signal;
[0040] In one embodiment, the terminal device receives a wireless control signal sent by a wireless signal receiver for a terminal application displayed on the terminal device, identifies the wireless control signal, and obtains the control identifier carried in the wireless control signal.
[0041] Furthermore, the wireless signal receiver can be a device for receiving wireless control signals, an accessory installed on the terminal device, or a peripheral device connected to the terminal device via a wired connection, and can be configured according to the actual situation. After receiving the wireless control signal sent by the user through the wireless signal generator, the wireless signal receiver parses the wireless control signal to obtain the control identifier carried in the wireless control signal.
[0042] Furthermore, the wireless signal generator can be a device used to send wireless control signals, such as a remote control.
[0043] Furthermore, the wireless control signal can be a signal carrying a control identifier, such as an infrared signal.
[0044] Furthermore, the control identifier can be information with identification functions, such as "103" indicating a move-up operation. By parsing the control identifier, the operation the user intends to perform by sending a wireless control signal can be determined. It should be noted that the move-up operation can be, for example... Figure 3 In the image shown, Figure 3 In the left image, the y-axis of the coordinate system points upwards. After performing the upward movement operation, selecting the control "Control A" above control "Control C" yields the following result: Figure 3 The effect shown in the right image is as follows. As you can understand, the x-axis points to the right, the negative y-axis points downwards, and the negative x-axis points to the left. This allows users to follow their daily habits and also allows for customization based on specific needs.
[0045] S102, determine the key event corresponding to the control identifier based on the key mapping table;
[0046] In one embodiment, after obtaining the control identifier, a query is performed in a pre-established key mapping table based on the control identifier to determine the keyboard identifier corresponding to the control identifier, and then the key event corresponding to the keyboard identifier is determined.
[0047] Furthermore, the key mapping table can be a table recording the control identifiers that the wireless signal generator can transmit, the corresponding keyboard identifiers, and the key events corresponding to the keyboard identifiers. The key mapping table can be a table created at the factory or by the programmers after the product is manufactured. The mapping relationship between keys, control identifiers, keyboard identifiers, and key events is determined when the table is created. For example, as shown in Table 1, Table 1 includes four data types: keys, control identifiers, keyboard identifiers, and key events, along with specific information for each data type. It should be noted that the "key" data type may or may not exist in the key mapping table stored in the terminal device; it is shown in Table 1 for ease of understanding. After obtaining a control identifier, the corresponding keyboard identifier is queried in the key mapping table to determine the key event corresponding to that keyboard identifier. For example, if the obtained control identifier is "103", according to the key mapping table, the keyboard identifier corresponding to control identifier "103" is "38", thus determining the key event "Up" corresponding to the "keyboard identifier".
[0048] Table 1
[0049] button Control sign Keyboard icon Key events superior 103 38 Up Down 108 40 Down Left 105 37 Left right 106 39 Right Sure 28 13 Enter return 158 8 Back
[0050] Understandably, when programming, developers pre-determine the correspondence between control identifiers and keyboard identifiers, and then establish a key mapping table based on this correspondence. One feasible method is to acquire and identify control identifiers in the wireless control signal, select the keyboard identifier corresponding to that control identifier, establish a mapping relationship between the control identifier and the keyboard identifier, and store this mapping relationship in the key mapping table. This process continues until the mapping relationship between each control identifier and its corresponding keyboard identifier is determined and stored in the key mapping table, thus completing the establishment of the key mapping table.
[0051] It should be noted that the mapping between keyboard identifiers and key events is a built-in mapping of the keyboard. Therefore, once the mapping relationship between control identifiers and keyboard identifiers is determined, the corresponding key event can be further determined. For example, the keyboard identifier "38" is mapped to the control identifier "103" stored in Table 1, and the corresponding key event can be determined to be "Up". If a mapping relationship is established between control identifier "103" and keyboard identifier "40" when creating the key mapping table, then the keyboard identifier corresponding to the wireless control signal carrying control identifier "103" sent by the user through the wireless signal generator is "40", and the corresponding key event is "Down".
[0052] Furthermore, button events can be events executed on the terminal application as indicated by wireless control signals, such as switching a selected control in the terminal application's display interface to another control.
[0053] S103, determine the target control corresponding to the key event, and respond to the key operation corresponding to the key event on the target control;
[0054] In one embodiment, after determining the key event corresponding to the wireless control signal, the current control and the target control corresponding to the key event are determined, and the key operation corresponding to the key event is responded to on the target control.
[0055] Furthermore, key events can be categorized into control switching events and control command events, etc.
[0056] Furthermore, control toggle events can be used to pass the selected state of the current control to other controls; the selected state indicates the control object being operated on. For example, ... Figure 4 As shown, Figure 4 In the left image, the currently selected control is "Control A". When the button event indicates "move down", the selected control is switched from "Control A" to "Control C", thus obtaining... Figure 4 The effect shown in the right image.
[0057] Furthermore, control command events can be operation events that respond to control commands for controls that are selected. For example, such as Figure 5 As shown, Figure 5 The left image shows the currently selected control as "Back". When the "Enter" key event is received, the current control becomes the target control. The target control's "Back" response is invoked, and the corresponding operation command is executed, resulting in the "Back" command. Figure 5The content shown in the right image represents the display interface of the previous process in the terminal application. It should be noted that when entering a new interface of the terminal application, a feasible method for selecting the current control is to select the control whose horizontal axis value is the smallest row coordinate value and whose vertical axis value is the smallest column coordinate value in the control matrix distribution chart corresponding to the current interface. For example... Figure 5 The image on the right shows the control "Control E" being used as the current control in the new interface.
[0058] Furthermore, to facilitate manipulation of the controls on the terminal application's display interface and to determine the control object to be manipulated, a feasible method is to mark the corresponding control coordinates for each control. Specifically, this involves obtaining the attribute information of each control in the application interface, determining the initial coordinates of the control on the application interface from the attribute information as the control's coordinates, and establishing a binding relationship between these coordinates and the control name in the control's attribute information. Since the coordinates of each control are determined and bound based on the control's attribute information, even if the user subsequently shifts the position of the controls on the application interface during actual operation, such as... Figure 6 As shown, because the selection operation between controls is determined based on the control coordinates, it avoids situations where the user's selection of controls while using the wireless signal generator does not match the actual content displayed on the application interface. It should be noted that when user operations cause the controls on the application interface to shift positions, the order between the controls will not change, i.e., it will not result in situations like... Figure 7 The order of the controls shown changes, and instead... Figure 6 This illustrates how the distances between the controls change. The initial coordinates can be the coordinates assigned to the control when creating it during the generation of the display interface.
[0059] Furthermore, when determining the control selection corresponding to the behavior indicated by the wireless control signal in the control switching event, a feasible method is to determine the current control coordinates on the terminal application's display interface and then determine the target control coordinates based on the behavior indicated by the control switching event. For example, combining... Figure 8 The coordinates of the control shown are compared with the switching rules shown in Table 2 to determine the coordinates of the target control.
[0060] Table 2
[0061] Control switching event Switching rules Move up y-1 Move down y+1 Shift left x-1 Move right x+1
[0062] See Figure 8As shown, control "Control A" is the current control, and its coordinates are (1, 1). If the control switching event indicator is "move down", then the target control's coordinates are (1, 1+1), i.e., (1, 2). The target control corresponding to these coordinates is "Control C". The "1" in the table represents the unit coordinate value. The unit coordinate value can be the numerical value used to calculate the coordinates, such as "1", "0.1", or "2", etc. The specific value can be set according to the actual situation. For ease of understanding, the unit coordinate value used in this embodiment is "1".
[0063] Furthermore, if the current control's coordinates are boundary coordinates, a feasible method is as follows: When the x-coordinate of the current control is the maximum row coordinate value in its current row, and the control's toggle event is right-shift, the target control's coordinates are calculated as (x = 1, y = y + 1); when the x-coordinate of the current control is the minimum row coordinate value in its current row, and the control's toggle event is left-shift, the target control's coordinates are calculated as (x = max X, y = y - 1); when the y-coordinate of the current control is the maximum column coordinate value in its current row, and the control's toggle event is down-shift, the target control's coordinates are calculated as (x = x + 1, y = 1); when the y-coordinate of the current control is the minimum column coordinate value in its current row, and the control's toggle event is up-shift, the target control's coordinates are calculated as (x = x - 1, y = max Y). Here, "max X" and "max Y" represent the maximum row coordinate value and the maximum column coordinate value in the row and column above the current control's coordinates, respectively. For example, if the current control's coordinates are (1, 2) and the control's toggle event is left-shift, since the maximum row coordinate of the row above the current control is 2, the target control's coordinates are (max X, 2-1), which is (2, 1). If the current control's coordinates are (1, 2) and the control's toggle event is down-shift, the target control's coordinates are (1+1, 1), which is (2, 1). Other cases can be deduced by analogy based on the examples above, and will not be elaborated here.
[0064] It should be noted that if the current control coordinates are (1, 1), where the horizontal and vertical coordinates are the minimum values of the row and column, and the control switching event indicates moving up or left, then since there are no controls above and to the left of the current control, the coordinates of the target control are the same as the coordinates of the current control and will not change. Similarly, if the horizontal and vertical coordinates are (2, 2), where the horizontal and vertical coordinates are the maximum values of the row and column, and the control switching event indicates moving down or right, the same applies.
[0065] It should be noted that the above switching rule is a method provided by the embodiments of this application, and the specific switching rule can be set according to the actual situation.
[0066] In this embodiment, by obtaining the control identifier in the wireless control signal, determining the key event corresponding to the control identifier based on the key mapping table, and then determining the target control corresponding to the key event, the target control responds to the key operation corresponding to the key event, thereby realizing the control of the terminal application of the terminal device according to the wireless control signal. This adaptively solves the problem of mismatch between the terminal or system and the wireless signal, and improves the popularity of wireless signal control terminal devices.
[0067] Please see Figure 9 This document provides a flowchart illustrating a control response method according to an embodiment of this application. The method is applied to a terminal equipped with a Windows system and a wireless signal receiver. Figure 9 As shown, the method may include the following steps S201-S206.
[0068] S201, Based on the wireless signal receiver, obtain the wireless control signal for the terminal application, and obtain the control identifier carried by the wireless control signal;
[0069] In one embodiment, the terminal device receives a wireless control signal sent by a wireless signal receiver for a terminal application displayed on the terminal device, identifies the wireless control signal, and obtains the control identifier carried in the wireless control signal.
[0070] Furthermore, the wireless signal receiver can be a device for receiving wireless control signals, an accessory installed on the terminal device, or a peripheral device connected to the terminal device via a wired connection, and can be configured according to the actual situation. After receiving the wireless control signal sent by the user through the wireless signal generator, the wireless signal receiver parses the wireless control signal to obtain the control identifier carried in the wireless control signal.
[0071] Furthermore, the wireless signal generator can be a device used to send wireless control signals, such as a remote control.
[0072] Furthermore, the wireless control signal can be a signal carrying a control identifier, such as an infrared signal.
[0073] Furthermore, the control identifier can be information with identification functions, such as "103" indicating a move-up operation. By parsing the control identifier, the operation the user intends to perform by sending a wireless control signal can be determined. It should be noted that the move-up operation can be, for example... Figure 3 In the image shown, Figure 3 In the left image, the y-axis of the coordinate system points upwards. After performing the upward movement operation, selecting the control "Control A" above control "Control C" yields the following result: Figure 3The effect shown in the right image is as follows. As you can understand, the x-axis points to the right, the negative y-axis points downwards, and the negative x-axis points to the left. This allows users to follow their daily habits and also allows for customization based on specific needs.
[0074] S202, determine the key event corresponding to the control identifier based on the key mapping table;
[0075] In one embodiment, after obtaining the control identifier, a query is performed in a pre-established key mapping table based on the control identifier to determine the keyboard identifier corresponding to the control identifier, and then the key event corresponding to the keyboard identifier is determined.
[0076] Furthermore, the key mapping table can record various control identifiers that the wireless signal generator can transmit, the corresponding keyboard identifiers for each control identifier, and the key events corresponding to the keyboard identifiers. For example, as shown in Table 1, Table 1 includes four data types: keys, control identifiers, keyboard identifiers, and key events, along with specific information for each data type. It should be noted that the "key" data type may or may not exist in the key mapping table stored on the terminal device; it is shown in Table 1 for ease of understanding. After obtaining a control identifier, the corresponding keyboard identifier is queried in the key mapping table to determine the key event corresponding to the keyboard identifier. For example, if the obtained control identifier is "103", according to the key mapping table query, the keyboard identifier corresponding to control identifier "103" is "38", thus determining the key event "Up" corresponding to the "keyboard identifier".
[0077] Understandably, when programming, developers pre-determine the correspondence between control identifiers and keyboard identifiers, and then establish a key mapping table based on this correspondence. One feasible method is to acquire and identify control identifiers in the wireless control signal, select the keyboard identifier corresponding to that control identifier, establish a mapping relationship between the control identifier and the keyboard identifier, and store this mapping relationship in the key mapping table. This process continues until the mapping relationship between each control identifier and its corresponding keyboard identifier is determined and stored in the key mapping table, thus completing the establishment of the key mapping table.
[0078] It should be noted that the mapping between keyboard identifiers and key events is a built-in mapping of the keyboard. Therefore, once the mapping relationship between control identifiers and keyboard identifiers is determined, the corresponding key event can be further determined. For example, the keyboard identifier "38" is mapped to the control identifier "103" stored in Table 1, and the corresponding key event can be determined to be "Up". If a mapping relationship is established between control identifier "103" and keyboard identifier "40" when creating the key mapping table, then the keyboard identifier corresponding to the wireless control signal carrying control identifier "103" sent by the user through the wireless signal generator is "40", and the corresponding key event is "Down".
[0079] Furthermore, button events can be events executed on the terminal application as indicated by wireless control signals, such as switching a selected control in the terminal application's display interface to another control.
[0080] S203, Determine the coordinates of the currently selected control;
[0081] In one embodiment, the display interface of the terminal application is obtained, and the coordinates of the current control corresponding to the currently selected control are determined in the display interface of the terminal application.
[0082] For example, such as Figure 8 As shown, in Figure 8 The control "Control A" in the middle is the currently selected control, while see... Figure 8 The content shown indicates that the coordinates of the current control are (1, 1).
[0083] Furthermore, to facilitate manipulation of the controls on the terminal application's display interface and to determine the control object to be manipulated, a feasible method is to mark the corresponding control coordinates for each control. Specifically, this can be achieved by obtaining the attribute information of each control in the application interface. This attribute information may include the control's initial coordinates on the display interface and the control's name. The initial coordinates can be the coordinates assigned when the control is created during the display interface generation. The initial coordinates of the control in the attribute information are then used as the control's coordinates, and a binding relationship is established between these coordinates and the control's name in its attribute information.
[0084] It should be noted that since the coordinates of each control are determined and bound based on the control's property information, even if the user subsequently shifts the position of the controls on the application interface during actual operation, such as... Figure 6As shown, because the selection operation between controls is determined based on the control coordinates, it avoids situations where the user's selection of controls while using the wireless signal generator does not match the actual content displayed on the application interface. It should be noted that when user operations cause the controls on the application interface to shift positions, the order between the controls will not change, i.e., it will not result in situations like... Figure 7 The order of the controls shown changes, and instead... Figure 6 The distance between the controls shown changes.
[0085] S204, determine the target control coordinates corresponding to the key event based on the key event and the current control coordinates;
[0086] In one embodiment, after determining the key event based on the control identifier, it is determined whether the current control coordinates are the target control coordinates based on the key event. If not, the target control coordinates are determined based on the coordinates of the current control in the display interface.
[0087] Furthermore, key events can be categorized into control switching events and control command events, etc.
[0088] Furthermore, when the key operation corresponding to the key event is a control command operation, the current control coordinates are the target control coordinates, and it is not necessary to calculate the target control coordinates; when the key operation corresponding to the key event is a control switching operation, it is necessary to calculate the target control coordinates according to the control switching rules and the current control coordinates.
[0089] Furthermore, control switching events can be used to pass the selected state of the current control to other controls, where the selected state indicates the control object being operated on.
[0090] Furthermore, control instruction events can be operation events that respond to control instructions for controls in the selected state.
[0091] Furthermore, depending on the coordinate type of the current control's coordinates, different methods are used to calculate the target control's coordinates. For example, the current control's coordinates can be either boundary coordinates or non-boundary coordinates. When the current control's coordinates are boundary coordinates, they are adjusted based on the coordinate values of adjacent rows and columns to obtain the target control's coordinates. When the current control's coordinates are non-boundary coordinates, they are adjusted according to unit coordinate values to obtain the target control's coordinates. Specifically, boundary coordinates can be coordinates where the control's x-coordinate is the largest or smallest row coordinate value in its row, or the control's y-coordinate is the largest or smallest column coordinate value in its column; non-boundary coordinates can be coordinates where the control's x-coordinate is not the largest or smallest row coordinate value in its row, or the control's y-coordinate is not the largest or smallest column coordinate value in its column.
[0092] One feasible method is as follows: When the x-coordinate of the current control reaches the maximum row coordinate value of the row containing the current control, and the control toggle event indicates a rightward shift, adjust the x-coordinate of the current control to one unit coordinate value, and adjust the y-coordinate of the current control to the y-coordinate value plus one unit coordinate value. Use the adjusted x-coordinate and y-coordinate as the target control coordinates. When the y-coordinate of the current control reaches the maximum column coordinate value of the column containing the current control, and the control toggle event indicates a downward shift, adjust the x-coordinate of the current control to the x-coordinate value plus one unit coordinate value, and adjust the y-coordinate of the current control to one unit coordinate value. Use the adjusted x-coordinate and y-coordinate as the target control coordinates. When the x-coordinate of the current control reaches the maximum column coordinate value of the column containing the current control, and the control toggle event indicates a rightward shift, adjust the x-coordinate of the current control to the x-coordinate value plus one unit coordinate value, and adjust the y-coordinate of the current control to one unit coordinate value. Use the adjusted x-coordinate and y-coordinate as the target control coordinates. When the x-coordinate reaches the minimum row coordinate value of the current control's row and the control toggle event is set to left, the x-coordinate of the current control is adjusted to the maximum row coordinate value of the row above the current control's row, and the y-coordinate of the current control is adjusted to the y-coordinate value minus one unit. The adjusted x-coordinate and y-coordinate are then used as the target control coordinates. When the y-coordinate of the current control reaches the minimum column coordinate value of the column above the current control's column and the control toggle event is set to up, the x-coordinate of the current control is adjusted to the x-coordinate value minus one unit, and the y-coordinate of the current control is adjusted to the maximum column coordinate value of the column above the current control's column. The adjusted x-coordinate and y-coordinate are then used as the target control coordinates.
[0093] Furthermore, the current control coordinates can also be special cases within the boundary coordinates. For example, when the horizontal coordinate of the current control reaches the maximum row coordinate value of the row where the current control is located, the vertical coordinate of the current control reaches the maximum column coordinate value of the column where the current control is located, and the control switching event indicates right or down movement, the current control coordinates are determined as the target control coordinates; when the horizontal coordinate of the current control reaches the minimum row coordinate value of the row where the current control is located, the vertical coordinate of the current control reaches the minimum column coordinate value of the column where the current control is located, and the control switching event indicates left or up movement, the current control coordinates are determined as the target control coordinates.
[0094] Furthermore, when the current control's coordinates are non-boundary coordinates and the control toggle event indicates a rightward movement, the x-coordinate of the current control is adjusted to the x-coordinate value plus one unit, while the y-coordinate remains unchanged. The adjusted x-coordinate and y-coordinate are then used as the target control's coordinates. Conversely, when the current control's coordinates are non-boundary coordinates and the control toggle event indicates a downward movement, the x-coordinate of the current control remains unchanged, while the y-coordinate is adjusted to the y-coordinate value plus one unit. The adjusted x-coordinate and y-coordinate are then used as the target control's coordinates. Coordinates; When the current control's coordinates are non-boundary coordinates and the control toggle event indicates left movement, adjust the current control's x-coordinate to the x-coordinate value minus one unit, and keep the current control's y-coordinate unchanged. The adjusted x-coordinate and adjusted y-coordinate are then used as the target control's coordinates; When the current control's coordinates are non-boundary coordinates and the control toggle event indicates up movement, keep the current control's x-coordinate unchanged, adjust the current control's y-coordinate to the y-coordinate value minus one unit, and the adjusted x-coordinate and adjusted y-coordinate are then used as the target control's coordinates.
[0095] It should be noted that the unit coordinate value can be the unit value used to calculate the coordinates, such as "1", "0.1" or "2", etc. The specific value can be set according to the actual situation. For ease of understanding, the unit coordinate value used in this application embodiment can be "1".
[0096] For ease of understanding, the embodiments of this application are combined with, as follows: Figure 8 The coordinates of the control shown are compared with the switching rules shown in Table 2, and the steps to determine the coordinates of the target control are described.
[0097] See Figure 8 The content shown shows that control "Control A" is the current control, and the corresponding coordinates of the current control are (1, 1). If the control switching event indicator is to move down, then the coordinates of the target control are (1, 1+1), that is, (1, 2). The target control corresponding to the coordinates of the target control is "Control C".
[0098] Furthermore, if the current control's coordinates are located on the boundary, a feasible method is as follows: When the x-coordinate of the current control is the maximum row coordinate value of its current row, and the control's toggle event is right-shift, the target control's coordinates are calculated as (x = 1, y = y + 1); when the x-coordinate of the current control is the minimum row coordinate value of its current row, and the control's toggle event is left-shift, the target control's coordinates are calculated as (x = max X, y = y - 1); when the y-coordinate of the current control is the maximum column coordinate value of its current row, and the control's toggle event is down-shift, the target control's coordinates are calculated as (x = x + 1, y = 1); when the y-coordinate of the current control is the minimum column coordinate value of its current row, and the control's toggle event is up-shift, the target control's coordinates are calculated as (x = x - 1, y = max Y). Here, "max X" and "max Y" represent the maximum row coordinate value and the maximum column coordinate value in the row and column above the current control's coordinates, respectively. For example, if the current control's coordinates are (1, 2) and the control's toggle event is left-shift, since the maximum row coordinate of the row above the current control is 2, the target control's coordinates are (max X, 2-1), which is (2, 1). If the current control's coordinates are (1, 2) and the control's toggle event is down-shift, the target control's coordinates are (1+1, 1), which is (2, 1). Other cases can be deduced by analogy based on the examples above, and will not be elaborated here.
[0099] It should be noted that if the current control coordinates are (1, 1), which is the minimum value of the horizontal and vertical coordinates of the current row and column, and the control switching event indicates moving up or left, then since there are no controls above and to the left of the current control, the coordinates of the target control are the same as the coordinates of the current control and will not change. Similarly, if the control coordinates are (2, 2), which is the maximum value of the horizontal and vertical coordinates of the current row and column, and the control switching event indicates moving down or right, the same applies.
[0100] It should be noted that the above switching rule is a method provided by the embodiments of this application, and the specific switching rule can be set according to the actual situation.
[0101] S205, when the key operation corresponding to the key event is a control switching operation, the selected control is switched from the current control to the target control;
[0102] In one embodiment, when the key operation corresponding to the key event is a control switching operation, the selected control displayed on the screen will be switched from the current control to the target control. For example, Figure 4 As shown, Figure 4 In the left image, the currently selected control is "Control A". When the button event indicates "move down", the selected control is switched from "Control A" to "Control C", thus obtaining... Figure 4 The effect shown in the right image.
[0103] S206, when the key operation corresponding to the key event is a control command operation, the target control is invoked to respond to the operation command corresponding to the control command operation;
[0104] In one embodiment, when the key operation corresponding to a key event is a control command operation, the selected control is invoked to respond to the control command operation event, so as to display the effect of the operation command corresponding to the target control on the display interface. For example, Figure 5 As shown, Figure 5 The left image shows the currently selected control as "Back". When the "Enter" key event is received, the current control becomes the target control. The target control's "Back" response is invoked, and the corresponding operation command is executed, resulting in the "Back" command. Figure 5 The content shown in the right image represents the display interface of the previous process in the terminal application. It should be noted that when entering a new interface of the terminal application, a feasible method for selecting the current control is to select the control whose horizontal axis value is the smallest row coordinate and whose vertical axis value is the smallest column coordinate in the current display. For example... Figure 5 The image on the right shows the control "Control E" being used as the current control in the new interface.
[0105] Furthermore, by employing wireless control signals to control the terminal device, in addition to facilitating user control, it also leverages the advantages of wide applicability and widespread adoption to allow the use of terminal devices or systems with superior performance and data processing capabilities. This results in the output of better audio and video data compared to terminals with general performance, improving the data processing efficiency and data display capabilities for users playing high-quality data through the terminal device. For example, while Android systems can receive infrared signals, they are limited by performance factors and cannot play high-definition audio and video. Windows systems, on the other hand, have sufficient computing power to support the output of high-definition audio and video by the terminal device, but they do not support receiving infrared signals. By using the method of this application, a terminal device running a Windows system can receive infrared signal control, thus obtaining a terminal device capable of playing high-definition audio and video and supporting infrared signal control.
[0106] In this embodiment, by pre-establishing a key mapping table and determining the control coordinates of controls in the display interface, after obtaining the control identifier in the wireless control signal, the key event corresponding to the control identifier is determined based on the key mapping table, and then the target control corresponding to the key event is determined. The target control responds to the key operation corresponding to the key event, thereby realizing the control of the terminal application of the terminal device according to the wireless control signal. This adaptively solves the problem of mismatch between the terminal or system and the wireless signal, and improves the popularity of wireless signal control terminal devices.
[0107] based on Figure 1 The system architecture shown below will be combined with... Figures 10-11 This application provides a detailed description of the control response terminal provided in the embodiments. It should be noted that... Figures 10-11 The control response terminal in this application can be either the aforementioned terminal device or a control response module within the terminal device, specifically used to execute this application. Figures 2-9 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figures 2-9 The example shown.
[0108] Please see Figure 10 This application provides a schematic diagram of a control-response terminal, which is applied to a terminal with a Windows system installed and is equipped with a wireless signal receiver. Figure 10 As shown, the control response terminal 1 in this embodiment may include: an identifier acquisition unit 11, an event determination unit 12, and an operation response unit 13.
[0109] The identifier acquisition unit 11 is used to acquire a wireless control signal for a terminal application based on the wireless signal receiver, and to acquire the control identifier carried by the wireless control signal.
[0110] Event determination unit 12 is used to determine the key event corresponding to the control identifier based on the key mapping table;
[0111] The operation response unit 13 is used to determine the target control corresponding to the key event, and respond to the key operation corresponding to the key event on the target control, wherein the target control is a control in the terminal application.
[0112] Optional, such as Figure 11 As shown, the operation response unit 13 includes:
[0113] The current coordinate determination subunit 131 is used to determine the coordinates of the currently selected control.
[0114] The target coordinate determination subunit 132 is used to determine the target control coordinates corresponding to the key event based on the key event and the current control coordinates;
[0115] The operation response subunit 133 is used to obtain the target control corresponding to the coordinates of the target control and respond to the key operation corresponding to the key event on the target control.
[0116] Optionally, the target coordinate determination subunit 132 is further configured to:
[0117] When the button event is a control command event, the coordinates of the target control are determined to be the coordinates of the current control;
[0118] When the button event is a control switching event, the coordinates of the target control are determined based on the coordinate switching rules and the current control coordinates.
[0119] Optionally, the target coordinate determination subunit 132 is further configured to:
[0120] When the current control coordinates are boundary coordinates, the current control coordinates are adjusted based on the adjacent row and column coordinate values to obtain the target control coordinates;
[0121] When the current control coordinates are non-boundary coordinates, the current control coordinates are adjusted according to the unit coordinate value to obtain the target control coordinates.
[0122] Optionally, the target coordinate determination subunit 132 is further configured to:
[0123] When the horizontal coordinate of the current control reaches the maximum row coordinate value of the row where the current control is located, and the control switching event indicates right shift, the horizontal coordinate of the current control is adjusted to one unit coordinate value, the vertical coordinate of the current control is adjusted to the vertical coordinate value plus one unit coordinate value, and the adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinate.
[0124] When the ordinate of the current control reaches the maximum column coordinate value of the column where the current control is located, and the control switching event indicates a downward movement, the x-coordinate of the current control is adjusted to the x-coordinate value plus one unit coordinate value, and the ordinate of the current control is adjusted to one unit coordinate value. The adjusted x-coordinate and the adjusted ordinate are determined as the target control coordinate.
[0125] When the horizontal coordinate of the current control reaches the minimum row coordinate value of the row where the current control is located, and the control switching event indicates left shift, the horizontal coordinate of the current control is adjusted to the maximum row coordinate value of the row above the row where the current control is located, and the vertical coordinate of the current control is adjusted to the vertical coordinate value minus one unit coordinate value. The adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinate.
[0126] When the ordinate of the current control reaches the minimum column coordinate value of the column where the current control is located, and the control switching event indicates "move up", the x-coordinate of the current control is adjusted to the x-coordinate value minus one unit coordinate value, and the ordinate of the current control is adjusted to the maximum column coordinate value of the column above the column where the current control is located. The adjusted x-coordinate and the adjusted ordinate are determined as the target control coordinates.
[0127] Optionally, the target coordinate determination subunit 132 is further configured to:
[0128] When the horizontal coordinate of the current control reaches the maximum row coordinate value of the row where the current control is located, the vertical coordinate of the current control reaches the maximum column coordinate value of the column where the current control is located, and the control switching event indicates right or down, the current control coordinate is determined as the target control coordinate.
[0129] When the horizontal coordinate of the current control reaches the minimum row coordinate value of the row where the current control is located, the vertical coordinate of the current control reaches the minimum column coordinate value of the column where the current control is located, and the control switching event indicates left or up, the current control coordinate is determined as the target control coordinate.
[0130] Optionally, the target coordinate determination subunit 132 is further configured to:
[0131] When the current control coordinates are non-boundary coordinates and the control switching event indicates right movement, the horizontal coordinate of the current control coordinates is adjusted to the horizontal coordinate value plus one unit coordinate value, while the vertical coordinate of the current control coordinates remains unchanged. The adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates.
[0132] When the current control coordinates are non-boundary coordinates and the control switching event indicates downward movement, the horizontal coordinate of the current control remains unchanged, the vertical coordinate of the current control is adjusted to the vertical coordinate value plus one unit coordinate value, and the adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates;
[0133] When the current control coordinates are non-boundary coordinates and the control switching event indicates left shift, the horizontal coordinate of the current control coordinates is adjusted to the horizontal coordinate value minus one unit coordinate value, while the vertical coordinate of the current control coordinates remains unchanged. The adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates.
[0134] When the current control coordinates are non-boundary coordinates and the control switching event indicates upward movement, the horizontal coordinate of the current control remains unchanged, the vertical coordinate of the current control is adjusted to the vertical coordinate value minus one unit coordinate value, and the adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates.
[0135] Optionally, the operation response subunit 133 is further configured to:
[0136] When the key operation corresponding to the key event is a control switching operation, the selected control is switched from the current control to the target control;
[0137] When the key operation corresponding to the key event is a control command operation, the target control is invoked to respond to the operation command corresponding to the control command operation.
[0138] In this embodiment, by pre-establishing a key mapping table and determining the control coordinates of controls in the display interface, after obtaining the control identifier in the wireless control signal, the key event corresponding to the control identifier is determined based on the key mapping table, and then the target control corresponding to the key event is determined. The target control responds to the key operation corresponding to the key event, thereby realizing the control of the terminal application of the terminal device according to the wireless control signal. This adaptively solves the problem of mismatch between the terminal or system and the wireless signal, and improves the popularity of wireless signal control terminal devices.
[0139] This application also provides a computer-readable storage medium that can store multiple program instructions adapted to be loaded and executed by a processor as described above. Figures 2-9 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figures 2-9 The specific details of the illustrated embodiments will not be elaborated here.
[0140] Please see Figure 12 This document provides a schematic diagram of the structure of a terminal device according to an embodiment of this application. Figure 12As shown, the terminal device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, an input / output interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to enable communication between these components. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 1005 may also be at least one storage device located remotely from the aforementioned processor 1001. Figure 12 As shown, the memory 1005, which is a computer-readable storage medium, may include an operating system, a network communication module, an input / output interface module, and a control response application.
[0141] exist Figure 12 In the terminal device 1000 shown, the input / output interface 1003 is mainly used to provide an input interface for the user and to obtain the user input data.
[0142] In one embodiment, the processor 1001 can be used to invoke the control response application stored in the memory 1005, and specifically perform the following operations:
[0143] The wireless signal receiver acquires the wireless control signal for the terminal application and the control identifier carried by the wireless control signal.
[0144] The key events corresponding to the control identifier are determined based on the key mapping table;
[0145] The target control corresponding to the key event is determined, and the key operation corresponding to the key event is responded to on the target control. The target control is a control in the terminal application.
[0146] Optionally, when the processor 1001 determines the target control corresponding to the key event and responds to the key operation corresponding to the key event on the target control, it specifically performs the following operations:
[0147] Determine the coordinates of the currently selected control;
[0148] The coordinates of the target control corresponding to the key event are determined based on the key event and the current control coordinates.
[0149] Obtain the target control corresponding to the coordinates of the target control, and respond to the key operation corresponding to the key event on the target control.
[0150] Optionally, when the processor 1001 executes the operation of determining the target control coordinates corresponding to the key event based on the key event and the current control coordinates, it specifically performs the following operations:
[0151] When the button event is a control command event, the coordinates of the target control are determined to be the coordinates of the current control;
[0152] When the button event is a control switching event, the coordinates of the target control are determined based on the coordinate switching rules and the current control coordinates.
[0153] Optionally, when the processor 1001 determines the target control coordinates based on the coordinate switching rules and the current control coordinates, it specifically performs the following operations:
[0154] When the current control coordinates are boundary coordinates, the current control coordinates are adjusted based on the adjacent row and column coordinate values to obtain the target control coordinates;
[0155] When the current control coordinates are non-boundary coordinates, the current control coordinates are adjusted according to the unit coordinate value to obtain the target control coordinates.
[0156] Optionally, when the processor 1001 adjusts the coordinates of the current control based on the coordinates of adjacent rows and columns to obtain the coordinates of the target control when the coordinates of the current control are boundary coordinates, it specifically performs the following operations:
[0157] When the horizontal coordinate of the current control reaches the maximum row coordinate value of the row where the current control is located, and the control switching event indicates right shift, the horizontal coordinate of the current control is adjusted to one unit coordinate value, the vertical coordinate of the current control is adjusted to the vertical coordinate value plus one unit coordinate value, and the adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinate.
[0158] When the ordinate of the current control reaches the maximum column coordinate value of the column where the current control is located, and the control switching event indicates a downward movement, the x-coordinate of the current control is adjusted to the x-coordinate value plus one unit coordinate value, and the ordinate of the current control is adjusted to one unit coordinate value. The adjusted x-coordinate and the adjusted ordinate are determined as the target control coordinate.
[0159] When the horizontal coordinate of the current control reaches the minimum row coordinate value of the row where the current control is located, and the control switching event indicates left shift, the horizontal coordinate of the current control is adjusted to the maximum row coordinate value of the row above the row where the current control is located, and the vertical coordinate of the current control is adjusted to the vertical coordinate value minus one unit coordinate value. The adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinate.
[0160] When the ordinate of the current control reaches the minimum column coordinate value of the column where the current control is located, and the control switching event indicates "move up", the x-coordinate of the current control is adjusted to the x-coordinate value minus one unit coordinate value, and the ordinate of the current control is adjusted to the maximum column coordinate value of the column above the column where the current control is located. The adjusted x-coordinate and the adjusted ordinate are determined as the target control coordinates.
[0161] Optionally, when the processor 1001 performs the operation of adjusting the coordinates of the current control based on the coordinates of adjacent rows and columns to obtain the coordinates of the target control when the coordinates of the current control are boundary coordinates, the processor 1001 performs the following operations:
[0162] When the horizontal coordinate of the current control reaches the maximum row coordinate value of the row where the current control is located, the vertical coordinate of the current control reaches the maximum column coordinate value of the column where the current control is located, and the control switching event indicates right or down, the current control coordinate is determined as the target control coordinate.
[0163] When the horizontal coordinate of the current control reaches the minimum row coordinate value of the row where the current control is located, the vertical coordinate of the current control reaches the minimum column coordinate value of the column where the current control is located, and the control switching event indicates left or up, the current control coordinate is determined as the target control coordinate.
[0164] Optionally, when the processor 1001 adjusts the coordinates of the current control according to unit coordinate values to obtain the coordinates of the target control when the coordinates of the current control are non-boundary coordinates, it specifically performs the following operations:
[0165] When the current control coordinates are non-boundary coordinates and the control switching event indicates right movement, the horizontal coordinate of the current control coordinates is adjusted to the horizontal coordinate value plus one unit coordinate value, while the vertical coordinate of the current control coordinates remains unchanged. The adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates.
[0166] When the current control coordinates are non-boundary coordinates and the control switching event indicates downward movement, the horizontal coordinate of the current control remains unchanged, the vertical coordinate of the current control is adjusted to the vertical coordinate value plus one unit coordinate value, and the adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates;
[0167] When the current control coordinates are non-boundary coordinates and the control switching event indicates left shift, the horizontal coordinate of the current control coordinates is adjusted to the horizontal coordinate value minus one unit coordinate value, while the vertical coordinate of the current control coordinates remains unchanged. The adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates.
[0168] When the current control coordinates are non-boundary coordinates and the control switching event indicates upward movement, the horizontal coordinate of the current control remains unchanged, the vertical coordinate of the current control is adjusted to the vertical coordinate value minus one unit coordinate value, and the adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates.
[0169] Optionally, when the processor 1001 executes the key operation corresponding to the key event on the target control, it specifically performs the following operations:
[0170] When the key operation corresponding to the key event is a control switching operation, the selected control is switched from the current control to the target control;
[0171] When the key operation corresponding to the key event is a control command operation, the target control is invoked to respond to the operation command corresponding to the control command operation.
[0172] In this embodiment, by pre-establishing a key mapping table and determining the control coordinates of controls in the display interface, after obtaining the control identifier in the wireless control signal, the key event corresponding to the control identifier is determined based on the key mapping table, and then the target control corresponding to the key event is determined. The target control responds to the key operation corresponding to the key event, thereby realizing the control of the terminal application of the terminal device according to the wireless control signal. This adaptively solves the problem of mismatch between the terminal or system and the wireless signal, and improves the popularity of wireless signal control terminal devices.
[0173] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0174] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A control response method, characterized in that, The method, applicable to a terminal equipped with a Windows operating system and a wireless signal receiver, includes: The wireless signal receiver acquires the wireless control signal for the terminal application and the control identifier carried by the wireless control signal. The key events corresponding to the control identifier are determined based on the key mapping table; Determine the coordinates of the currently selected control; The coordinates of the target control corresponding to the key event are determined based on the key event and the current control coordinates. Obtain the target control corresponding to the coordinates of the target control, and respond to the key operation corresponding to the key event on the target control. The target control is a control in the terminal application.
2. The method according to claim 1, characterized in that, Determining the target control coordinates corresponding to the key event based on the key event and the current control coordinates includes: When the button event is a control command event, the coordinates of the target control are determined to be the coordinates of the current control; When the button event is a control switching event, the coordinates of the target control are determined based on the coordinate switching rules and the current control coordinates.
3. The method according to claim 2, characterized in that, The process of determining the target control coordinates based on the coordinate switching rules and the current control coordinates includes: When the current control coordinates are boundary coordinates, the current control coordinates are adjusted based on the coordinate values of adjacent rows and columns to obtain the target control coordinates; When the current control coordinates are non-boundary coordinates, the current control coordinates are adjusted according to the unit coordinate value to obtain the target control coordinates.
4. The method according to claim 3, characterized in that, When the current control coordinates are boundary coordinates, adjusting the current control coordinates based on the adjacent row and column coordinate values to obtain the target control coordinates includes: When the horizontal coordinate of the current control reaches the maximum row coordinate value of the row where the current control is located, and the control switching event indicates right shift, the horizontal coordinate of the current control is adjusted to one unit coordinate value, the vertical coordinate of the current control is adjusted to the vertical coordinate value plus one unit coordinate value, and the adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinate. When the ordinate of the current control reaches the maximum column coordinate value of the column where the current control is located, and the control switching event indicates a downward movement, the x-coordinate of the current control is adjusted to the x-coordinate value plus one unit coordinate value, and the ordinate of the current control is adjusted to one unit coordinate value. The adjusted x-coordinate and the adjusted ordinate are determined as the target control coordinate. When the horizontal coordinate of the current control reaches the minimum row coordinate value of the row where the current control is located, and the control switching event indicates left shift, the horizontal coordinate of the current control is adjusted to the maximum row coordinate value of the row above the row where the current control is located, and the vertical coordinate of the current control is adjusted to the vertical coordinate value minus one unit coordinate value. The adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinate. When the ordinate of the current control reaches the minimum column coordinate value of the column where the current control is located, and the control switching event indicates "move up", the x-coordinate of the current control is adjusted to the x-coordinate value minus one unit coordinate value, and the ordinate of the current control is adjusted to the maximum column coordinate value of the column above the column where the current control is located. The adjusted x-coordinate and the adjusted ordinate are determined as the target control coordinates.
5. The method according to claim 4, characterized in that, When the current control coordinates are boundary coordinates, adjusting the current control coordinates based on the adjacent row and column coordinate values to obtain the target control coordinates includes: When the horizontal coordinate of the current control reaches the maximum row coordinate value of the row where the current control is located, the vertical coordinate of the current control reaches the maximum column coordinate value of the column where the current control is located, and the control switching event indicates right or down, the current control coordinate is determined as the target control coordinate. When the horizontal coordinate of the current control reaches the minimum row coordinate value of the row where the current control is located, the vertical coordinate of the current control reaches the minimum column coordinate value of the column where the current control is located, and the control switching event indicates left or up, the current control coordinate is determined as the target control coordinate.
6. The method according to claim 3, characterized in that, When the current control coordinates are non-boundary coordinates, adjusting the current control coordinates according to unit coordinate values to obtain the target control coordinates includes: When the current control coordinates are non-boundary coordinates and the control switching event indicates right movement, the horizontal coordinate of the current control coordinates is adjusted to the horizontal coordinate value plus one unit coordinate value, while the vertical coordinate of the current control coordinates remains unchanged. The adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates. When the current control coordinates are non-boundary coordinates and the control switching event indicates downward movement, the horizontal coordinate of the current control remains unchanged, the vertical coordinate of the current control is adjusted to the vertical coordinate value plus one unit coordinate value, and the adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates; When the current control coordinates are non-boundary coordinates and the control switching event indicates left shift, the horizontal coordinate of the current control coordinates is adjusted to the horizontal coordinate value minus one unit coordinate value, while the vertical coordinate of the current control coordinates remains unchanged. The adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates. When the current control coordinates are non-boundary coordinates and the control switching event indicates upward movement, the horizontal coordinate of the current control remains unchanged, the vertical coordinate of the current control is adjusted to the vertical coordinate value minus one unit coordinate value, and the adjusted horizontal coordinate and the adjusted vertical coordinate are determined as the target control coordinates.
7. The method according to claim 1, characterized in that, The key operation corresponding to the key event on the target control includes: When the key operation corresponding to the key event is a control switching operation, the selected control is switched from the current control to the target control; When the key operation corresponding to the key event is a control command operation, the target control is invoked to respond to the operation command corresponding to the control command operation.
8. The method according to claim 1, characterized in that, The wireless control signal includes an infrared signal.
9. A control-responsive terminal, characterized in that, An application for terminals running a Windows operating system, the terminal being equipped with a wireless signal receiver, the terminal comprising: The identifier acquisition unit is used to acquire a wireless control signal for a terminal application based on the wireless signal receiver, and to acquire the control identifier carried by the wireless control signal. An event determination unit is used to determine the key event corresponding to the control identifier based on a key mapping table. The operation response unit is used to determine the coordinates of the currently selected control. The operation response unit is further configured to determine the target control coordinates corresponding to the key event based on the key event and the current control coordinates; The operation response unit is further configured to obtain the target control corresponding to the coordinates of the target control, and respond to the key operation corresponding to the key event on the target control, wherein the target control is a control in the terminal application.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor and executing the steps of the method as described in any one of claims 1 to 8.
11. A terminal device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the steps of the method as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
Key value touch method and device, terminal and storage medium
CN112052052A