CN118057504A - A control response method, terminal, storage medium and terminal device - Google Patents

A control response method, terminal, storage medium and terminal device Download PDF

Info

Publication number
CN118057504A
CN118057504A CN202211451953.0A CN202211451953A CN118057504A CN 118057504 A CN118057504 A CN 118057504A CN 202211451953 A CN202211451953 A CN 202211451953A CN 118057504 A CN118057504 A CN 118057504A
Authority
CN
China
Prior art keywords
coordinate
control
current control
event
abscissa
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211451953.0A
Other languages
Chinese (zh)
Other versions
CN118057504B (en
Inventor
莫光胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shizhen Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shizhen Information Technology Co Ltd
Priority to CN202211451953.0A priority Critical patent/CN118057504B/en
Publication of CN118057504A publication Critical patent/CN118057504A/en
Application granted granted Critical
Publication of CN118057504B publication Critical patent/CN118057504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application discloses a control response method, a terminal, a storage medium and terminal equipment, wherein the method comprises the following steps: based on a wireless signal receiver, acquiring a wireless control signal aiming at terminal application, acquiring a control identifier carried by the wireless control signal, determining a key event corresponding to the control identifier based on a key mapping table, determining a target control corresponding to the key event, and responding to key operation corresponding to the key event on the target control. By determining the target control corresponding to the wireless control signal and responding to the key operation corresponding to the key event, the application realizes the control of the terminal application of the terminal equipment according to the wireless control signal, adaptively solves the problem that the terminal or system is not matched with the wireless signal, and improves the popularity of the wireless signal control terminal equipment.

Description

Control response method, terminal, storage medium and terminal equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a control response method, a terminal, a storage medium, and a terminal device.
Background
At present, when a conference is carried out, in order to facilitate the personnel carrying out the conference to clearly express the conference content, the participants are also facilitated to better understand the conference, and terminal equipment is mostly adopted for displaying the conference content. For the terminal device, the terminal device can be controlled by a wireless signal remote control mode.
Disclosure of Invention
The application provides a control response method, a terminal, a storage medium and terminal equipment, wherein the terminal application of the terminal equipment is controlled according to a wireless control signal by determining a target control corresponding to the wireless control signal and responding to a key operation corresponding to a key event, so that the problem that a terminal or a system is not matched with the wireless signal is adaptively solved, and the popularity of the wireless signal control terminal equipment is improved.
In a first aspect, an embodiment of the present application provides a control response method, which is applied to a terminal installed with a windows system, where the terminal is configured with a wireless signal receiver, and includes:
Acquiring a wireless control signal aiming at terminal application based on the wireless signal receiver, and acquiring a control identifier carried by the wireless control signal;
determining a key event corresponding to the control identifier based on a key mapping table;
determining a target control corresponding to the key event, and responding to key operation corresponding to the key event on the target control, wherein the target control is one control in the terminal application.
In a second aspect, an embodiment of the present application provides a control response terminal, which is applied to a terminal installed with a windows system, where the terminal is configured with a wireless signal receiver, and the terminal includes:
The identification acquisition unit is used for acquiring a wireless control signal aiming at terminal application based on the wireless signal receiver and acquiring a control identification carried by the wireless control signal;
the event determining unit is used for determining a key event corresponding to the control identifier based on a key mapping table;
And the operation response unit is used for determining a target control corresponding to the key event, responding to the key operation corresponding to the key event on the target control, and the target control is one control in the terminal application.
In a third aspect, embodiments of the present application provide a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method described above.
In a fourth aspect, an embodiment of the present application provides 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 perform the steps of the method of the second aspect.
In the embodiment of the application, the control identification in the wireless control signal is obtained, the key event corresponding to the control identification is determined based on the key mapping table, then the target control corresponding to the key event is determined, and the target control responds to the key operation corresponding to the key event, so that the terminal application of the terminal equipment is controlled according to the wireless control signal, the problem that the terminal or the system is not matched with the wireless signal is adaptively solved, and the popularity of the wireless signal control terminal equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application and that other drawings may be obtained from them without inventive effort for a person skilled in the art.
Fig. 1 is a system architecture diagram of a control response method according to an embodiment of the present application;
Fig. 2 is a flow chart of a control response method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an exemplary up-shift operation according to an embodiment of the present application;
FIG. 4 is an exemplary schematic diagram of a control switching operation according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating an exemplary operation of a control instruction according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a control distribution change according to an embodiment of the present application;
FIG. 7 is an exemplary diagram of another control distribution variation provided by an embodiment of the present application;
FIG. 8 is an exemplary diagram of control coordinates provided by an embodiment of the present application;
fig. 9 is a flow chart of a control response method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a control response terminal according to an embodiment of the present application;
FIG. 11 is a schematic diagram of an operation response unit according to an embodiment of the present application;
Fig. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the features and advantages of the present application more comprehensible, embodiments accompanied with figures in the present application are described in detail below, wherein the embodiments are described only in some but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Large and medium conference rooms are generally equipped with conference display devices, tuning power amplifier audio devices, and the like. These devices may form a teleconference scenario with a separate terminal that has teleconferencing software installed. In the scene, the split terminal can support the operation of infrared remote control.
At present, the android system defaults to support remote control key signals, and the android application controls defaults to support switching and selection of remote control keys (up, down, left, right and definite). Therefore, the operation systems of the current mainstream split type terminals are all android systems. However, due to the limitation of a platform, the split terminal provided with the android system has poor performance when performing a video conference, and cannot support multiple paths of high-definition 4K cradle head cameras.
In order to solve the above problems, developers switch the operating system of the split terminal to a windows system carrying an Intel high-performance processor. In order to be compatible with the default operation habit of a user, a split terminal provided with a windows system still needs to support the operation of infrared remote control. However, the windows system does not support the receiving of infrared signals, and controls (such as buttons and input boxes) in the windows software do not support the switching and selection of remote control cases by default.
Therefore, how to support the operation of infrared remote control is a problem to be solved for a split terminal installed with windows system.
Based on the above, the embodiment of the application provides a control response method, which is characterized in that a control identifier in a wireless control signal is obtained, a key event corresponding to the control identifier is determined based on a key mapping table, then a target control corresponding to the key event is determined, and a key operation corresponding to the key event is responded to the target control, so that the terminal application of terminal equipment is controlled according to the wireless control signal, the problem that a terminal or a system is not matched with the wireless signal is adaptively solved, and the popularity of the wireless signal control terminal equipment is improved.
Referring to fig. 1, a system structure diagram of a control response method is provided in an embodiment of the present application. As shown in fig. 1, the control response method provided by the embodiment of the present application may be applied to the wireless signal generator 10 and the terminal device 20 to implement a process of controlling the terminal device through a wireless signal, and the system structure provided by the embodiment of the present application mainly includes the wireless signal generator 10 and the terminal device 20. The wireless signal generator 10 may be a device capable of transmitting a wireless signal, such as a remote controller; the terminal device 20 may include, but is not limited to, a separate terminal, a mobile phone, a personal computer, a notebook computer, smart furniture, a vehicle-mounted device, a wearable device, and the like, which have functions of terminal application installation, operation, and the like.
In the embodiment of the present application, the wireless signal generator 10 sends a wireless control signal to the terminal device 20, after the terminal device 20 receives the wireless control signal, the control identifier carried in the wireless control signal is obtained, the key event corresponding to the control identifier is determined, the target control corresponding to the key event is further determined, and the key operation corresponding to the key event is responded on the target control.
In the embodiment of the application, the control identification in the wireless control signal is obtained, the key event corresponding to the control identification is determined based on the key mapping table, then the target control corresponding to the key event is determined, and the target control responds to the key operation corresponding to the key event, so that the terminal application of the terminal equipment is controlled according to the wireless control signal, the problem that the terminal or the system is not matched with the wireless signal is adaptively solved, and the popularity of the wireless signal control terminal equipment is improved.
Based on the system architecture shown in fig. 1, a detailed description will be given below of a control response method provided by an embodiment of the present application with reference to fig. 2 to 8.
Referring to fig. 2, a flow chart of a control response method is provided for an embodiment of the present application, where the method is applied to a terminal installed with a windows system, and the terminal is configured with a wireless signal receiver. As shown in fig. 2, the method may include the following steps S101 to S103.
S101, acquiring a wireless control signal applied to a terminal based on a wireless signal receiver, and acquiring a control identifier carried by the wireless control signal;
In one embodiment, the terminal device receives a wireless control signal sent by the wireless signal receiver and applied to the terminal device displayed by the terminal device, and identifies the wireless control signal to obtain a control identifier carried in the wireless control signal.
Further, the wireless signal receiver may be a device for receiving a wireless control signal, may be an accessory installed on the terminal device, may be a peripheral connected to the terminal device by a wired connection, and may be set according to practical situations. After receiving the wireless control signal sent by the user through the wireless signal generator, the wireless signal receiver analyzes the wireless control signal to obtain a control identifier carried in the wireless control signal.
Further, the wireless signal generator may be a device for transmitting a wireless control signal, for example, may be a remote controller or the like.
Further, the wireless control signal may be a signal carrying a control identifier, for example, an infrared signal or the like.
Further, the control identifier may be information having an identifying function, for example, the control identifier indicating the up-shift operation is "103", and the operation to be performed by the user by sending the wireless control signal can be determined by analyzing the control identifier. It should be noted that, the upward movement operation may be the direction pointed by the y axis of the coordinate system in the left graph of fig. 3 is the upward movement direction in the picture shown in fig. 3, and after the upward movement operation is performed, the control "control a" above the control "control C" is selected, so as to obtain the effect shown in the right graph of fig. 3. It can be understood that the direction pointed by the x-axis is right-shifted, the direction pointed by the y-axis negative direction is downward-shifted, and the direction pointed by the x-axis negative direction is left-shifted, so that the user can accord with daily use habits in actual operation, and the setting can be performed according to actual conditions.
S102, determining a key event corresponding to the control identifier based on a key mapping table;
in one embodiment, after the control identifier is obtained, the control identifier is queried in a pre-established key mapping table, so as to determine the keyboard identifier corresponding to the control identifier, and further determine the key event corresponding to the keyboard identifier.
Further, the key mapping table may be a table recorded with each control identifier that can be sent by the wireless signal generator, a keyboard identifier corresponding to each control identifier, and a key event corresponding to the keyboard identifier, where the key mapping table may be a table that is well established when a program is written by a program developer when the factory or after the factory, and mapping relationships among keys, control identifiers, keyboard identifiers, and key events are determined while the table is established. For example, as shown in table 1, table 1 includes four data types of key, control identifier, keyboard identifier and key event, and specific information corresponding to each data type. It should be noted that the "key" data type may or may not be present in the key mapping table stored in the terminal device, and is thus shown in table 1 for ease of understanding. After the control identifier is obtained, the keyboard identifier corresponding to the control identifier is queried in the key mapping table, and then the key event corresponding to the keyboard identifier is determined. For example, the acquired control identifier is "103", and it can be determined after the key mapping table is queried that the keyboard identifier corresponding to the control identifier "103" is "38", so as to determine the key event "Up" corresponding to the "keyboard identifier".
TABLE 1
Key-press Control mark Keyboard identification Key event
Upper part 103 38 Up
Lower part(s) 108 40 Down
Left side 105 37 Left
Right side 106 39 Right
Determination of 28 13 Enter
Return to 158 8 Back
It can be understood that when the program developer writes the program, the corresponding relationship between the control identifier and the keyboard identifier is determined in advance, and then the key mapping table is established according to the corresponding relationship. The method comprises the steps of obtaining and identifying control identifiers in wireless control signals, selecting a keyboard identifier corresponding to the control identifier, establishing a mapping relation between the control identifier and the keyboard identifier, storing the mapping relation into a key mapping table until the mapping relation between each control identifier and the corresponding keyboard identifier is determined and stored into the key mapping table, and thus completing the establishment of the key mapping table.
It should be noted that, the corresponding relationship between the keyboard identifier and the key event is the corresponding relationship of the keyboard, so after determining the mapping relationship between the control identifier and the keyboard identifier, the me event corresponding to the control identifier can be further determined. For example, the mapping relationship with the control identifier "103" stored in table 1 is a keyboard identifier "38", so that it can be determined that the corresponding key event is "Up", and if the mapping relationship is established between the control identifier "103" and the keyboard identifier "40" when the key mapping table is established, the keyboard identifier corresponding to the wireless control signal carrying the control identifier "103" sent by the user through the wireless signal generator side is "40", so that the corresponding key event is "Down".
Further, the key event may be an event that is indicated by the wireless control signal and is executed on the terminal application, for example, a control selected in a display interface of the terminal application is switched to another control, and so on.
S103, determining a target control corresponding to the key event, and responding to key operation corresponding to the key event on the target control;
In one embodiment, after determining the key event corresponding to the wireless control signal, determining a current control and a target control corresponding to the key event, and responding to a key operation corresponding to the key event on the target control.
Further, the key event may be classified into a control switching event, a control instruction event, and the like.
Further, the control toggle event may be a toggle event for transferring a selected state of the current control to other controls, the selected state being used to indicate a control object of the operation. For example, as shown in fig. 4, when the current control selected by the left graph in fig. 4 is "control a", and the key event indicates that the key event is moved down, the selected control is switched from "control a" to "control C", so as to obtain the effect shown in the right graph in fig. 4.
Further, the control instruction event may be an operation event of calling the control response control instruction of the selected state. For example, as shown in fig. 5, the currently selected control displayed in the left diagram in fig. 5 is "return", and when the key event is "Enter" is received, the current control is the target control, the target control is called "return" to respond to the operation instruction corresponding to the control instruction, and the instruction of "return" is executed, so as to obtain the content displayed in the right diagram in fig. 5, namely, return to the display interface of the last process of the terminal application. When a new interface of the terminal application is entered, a feasible method for selecting the current control is to select a control corresponding to a minimum row coordinate value of a row and a minimum column coordinate value of a column in a control matrix distribution diagram corresponding to the current interface. For example, in the right diagram of fig. 5, the control "control E" is taken as the current control in the new interface.
Further, in order to facilitate the operation of each control on the display interface of the terminal application, a feasible method may be to determine a control object to be operated, where the control coordinate corresponds to each control mark, and the specifically adopted method may be to obtain attribute information corresponding to each control in the application interface, determine an initial coordinate of the control in the attribute information in the application interface as a control coordinate corresponding to the control, and establish a binding relationship between the control coordinate and a control name in the attribute information of the control. Because each control coordinate is determined and bound according to the attribute information of the control, even if the position of the control on the application interface is shifted in the actual operation process of the user, as shown in fig. 6, the selection operation among the controls is determined according to the control coordinate, so that the condition that the selection switching of the control is inconsistent with the actual display content of the application interface when the user uses the wireless signal generator is avoided. When the user performs the operation to cause the position shift of the controls on the application interface, the sequence relationship between the controls is not changed, that is, the sequence between the controls shown in fig. 7 is not changed, but the distance between the controls shown in fig. 6 is changed. Wherein the initial coordinates may be coordinates assigned when the control is created when the display interface is generated.
Further, when determining that the wireless control signal is for selecting a control corresponding to the behavior indicated by the control switching event, one feasible method is to determine the position of the current control coordinate on the display interface of the terminal application, and determine the target control coordinate based on the behavior indicated by the control switching event. For example, the determination of target control coordinates is achieved in combination with the control coordinates shown in FIG. 8 and the switching rules shown in Table 2.
TABLE 2
Control switch event Switching rules
Upward movement of y-1
Move downwards y+1
Left shift x-1
Move to the right x+1
Referring to the content shown in fig. 8, the control "control a" is a current control, the corresponding current control coordinate is (1, 1), and if the control switching event indicates that the control is moved down, the target control coordinate is (1, 1+1), that is, (1, 2), and the target control corresponding to the target control coordinate is "control C". The "1" in the table is a unit coordinate value, and the unit coordinate value may be a unit value used for calculating the coordinate, for example, may be "1", "0.1", or "2", and the specific value may be set according to the actual situation, and for convenience of understanding, the unit coordinate value used in the embodiment of the present application is "1".
Further, if the current control coordinate is a boundary coordinate, a feasible method is as follows: when the abscissa in the current control coordinate is the maximum row coordinate value of the row and the control switching event is right shift, the calculation method of the target control coordinate is (x=1, y=y+1); when the abscissa in the current control coordinate is the minimum row coordinate value of the row, and the control switching event is left shift, the calculation method of the target control coordinate is (x=maxx, y=y-1); when the ordinate in the current control coordinate is the maximum column coordinate value of the row and the control switching event is downward movement, the calculation method of the target control coordinate is (x=x+1, y=1); when the ordinate in the current control coordinate is the minimum column coordinate value of the row, and the control switching event is upward movement, the calculation method of the target control coordinate is (x=x-1, y=maxy). Wherein, "max X" and "max Y" are the maximum row coordinate value and the maximum column coordinate value in the last row and the last column of the current control coordinate, respectively. For example, if the current control coordinate is (1, 2), and the control switching event is left shift, since the maximum row coordinate value of the previous row of the current control coordinate is 2, the target control coordinate is (max X, 2-1), i.e., (2, 1); if the current control coordinate is (1, 2) and the control switching event is a move down, the target control coordinate is (1+1, 1), namely (2, 1). Other cases can be analogized according to the above examples, and are not described here again.
If the current control coordinate is (1, 1) that is the abscissa and the ordinate are the minimum values of the rows and the columns, the control switching event is indicated to be up-shift or left-shift, and since there is no control above and to the left of the current control, the target control coordinate is the current control coordinate and is not changed, and if the abscissa and the ordinate are the maximum values of the rows and the columns, the control switching event is indicated to be down-shift or right-shift.
It should be noted that, the above switching rule is a method provided by the embodiment of the present application, and a specific switching rule may be set according to an actual situation.
In the embodiment of the application, the control identification in the wireless control signal is obtained, the key event corresponding to the control identification is determined based on the key mapping table, then the target control corresponding to the key event is determined, and the target control responds to the key operation corresponding to the key event, so that the terminal application of the terminal equipment is controlled according to the wireless control signal, the problem that the terminal or the system is not matched with the wireless signal is adaptively solved, and the popularity of the wireless signal control terminal equipment is improved.
Referring to fig. 9, a flowchart of a control response method is provided in an embodiment of the present application, where the method is applied to a terminal installed with a windows system, and the terminal is configured with a wireless signal receiver. As shown in fig. 9, the method may include the following step S201 to step S206.
S201, acquiring a wireless control signal applied to a terminal based on a wireless signal receiver, and acquiring a control identifier carried by the wireless control signal;
In one embodiment, the terminal device receives a wireless control signal sent by the wireless signal receiver and applied to the terminal device displayed by the terminal device, and identifies the wireless control signal to obtain a control identifier carried in the wireless control signal.
Further, the wireless signal receiver may be a device for receiving a wireless control signal, may be an accessory installed on the terminal device, may be a peripheral connected to the terminal device by a wired connection, and may be set according to practical situations. After receiving the wireless control signal sent by the user through the wireless signal generator, the wireless signal receiver analyzes the wireless control signal to obtain a control identifier carried in the wireless control signal.
Further, the wireless signal generator may be a device for transmitting a wireless control signal, for example, may be a remote controller or the like.
Further, the wireless control signal may be a signal carrying a control identifier, for example, an infrared signal or the like.
Further, the control identifier may be information having an identifying function, for example, the control identifier indicating the up-shift operation is "103", and the operation to be performed by the user by sending the wireless control signal can be determined by analyzing the control identifier. It should be noted that, the upward movement operation may be the direction pointed by the y axis of the coordinate system in the left graph of fig. 3 is the upward movement direction in the picture shown in fig. 3, and after the upward movement operation is performed, the control "control a" above the control "control C" is selected, so as to obtain the effect shown in the right graph of fig. 3. It can be understood that the direction pointed by the x-axis is right-shifted, the direction pointed by the y-axis negative direction is downward-shifted, and the direction pointed by the x-axis negative direction is left-shifted, so that the user can accord with daily use habits in actual operation, and the setting can be performed according to actual conditions.
S202, determining a key event corresponding to the control identifier based on a key mapping table;
in one embodiment, after the control identifier is obtained, the control identifier is queried in a pre-established key mapping table, so as to determine the keyboard identifier corresponding to the control identifier, and further determine the key event corresponding to the keyboard identifier.
Further, the key mapping table may record each control identifier that may be sent by the wireless signal generator, a keyboard identifier corresponding to each control identifier, and a key event corresponding to the keyboard identifier. For example, as shown in table 1, table 1 includes four data types of key, control identifier, keyboard identifier and key event, and specific information corresponding to each data type. It should be noted that the "key" data type may or may not be present in the key mapping table stored in the terminal device, and is thus shown in table 1 for ease of understanding. After the control identifier is obtained, the keyboard identifier corresponding to the control identifier is queried in the key mapping table, and then the key event corresponding to the keyboard identifier is determined. For example, the acquired control identifier is "103", and it can be determined after the key mapping table is queried that the keyboard identifier corresponding to the control identifier "103" is "38", so as to determine the key event "Up" corresponding to the "keyboard identifier".
It can be understood that when the program developer writes the program, the corresponding relationship between the control identifier and the keyboard identifier is determined in advance, and then the key mapping table is established according to the corresponding relationship. The method comprises the steps of obtaining and identifying control identifiers in wireless control signals, selecting a keyboard identifier corresponding to the control identifier, establishing a mapping relation between the control identifier and the keyboard identifier, storing the mapping relation into a key mapping table until the mapping relation between each control identifier and the corresponding keyboard identifier is determined and stored into the key mapping table, and thus completing the establishment of the key mapping table.
It should be noted that, the corresponding relationship between the keyboard identifier and the key event is the corresponding relationship of the keyboard, so after determining the mapping relationship between the control identifier and the keyboard identifier, the me event corresponding to the control identifier can be further determined. For example, the mapping relationship with the control identifier "103" stored in table 1 is a keyboard identifier "38", so that it can be determined that the corresponding key event is "Up", and if the mapping relationship is established between the control identifier "103" and the keyboard identifier "40" when the key mapping table is established, the keyboard identifier corresponding to the wireless control signal carrying the control identifier "103" sent by the user through the wireless signal generator side is "40", so that the corresponding key event is "Down".
Further, the key event may be an event that is indicated by the wireless control signal and is executed on the terminal application, for example, a control selected in a display interface of the terminal application is switched to another control, and so on.
S203, determining the current control coordinates corresponding to the current selected current control;
In one embodiment, a display interface of the terminal application is obtained, and current control coordinates corresponding to a current selected control are determined in the display interface of the terminal application.
For example, as shown in fig. 8, the control "control a" is the currently selected current control in fig. 8, and referring to the content shown in fig. 8, the current control corresponds to the current control coordinate of (1, 1).
Further, in order to facilitate the operation of each control on the display interface of the terminal application, a feasible method may be to determine a control object to be operated, where the control coordinate corresponds to each control mark, and the specifically adopted method may be to obtain attribute information corresponding to each control in the application interface, where the attribute information may be information including an initial coordinate of the control on the display interface, a name of the control, and the like. The initial coordinates may be coordinates given when the control is created when the display interface is generated, the initial coordinates of the control in the attribute information on the application interface are determined as control coordinates corresponding to the control, and a binding relationship is established between the control coordinates and a control name in the attribute information of the control.
It should be noted that, since each control coordinate is determined and bound according to the attribute information of the control, even if the user shifts the position of the control on the application interface in the actual operation process, as shown in fig. 6, the selection operation between the controls remains to be determined according to the control coordinate, so that the situation that the selection switching of the control and the actual display content of the application interface are not consistent when the user uses the wireless signal generator is avoided. When the user performs the operation to cause the position shift of the controls on the application interface, the sequence relationship between the controls is not changed, that is, the sequence between the controls shown in fig. 7 is not changed, but the distance between the controls shown in fig. 6 is changed.
S204, determining target control coordinates corresponding to the key event based on the key event and the current control coordinates;
In one embodiment, after determining the key event based on the control identifier, determining whether the current control coordinate is the target control coordinate based on the key event, and if not, determining the target control coordinate according to the coordinate of the current control coordinate in the display interface.
Further, the key event may be classified into a control switching event, a control instruction event, and the like.
Further, when the key operation corresponding to the key event is a control instruction operation, the current control coordinate is a target control coordinate, and calculation of the target control coordinate is not needed; when the button operation corresponding to the button event is a control switching operation, the target control coordinate is required to be calculated according to the control switching rule and the current control coordinate.
Further, the control toggle event may be a toggle event for transferring a selected state of the current control to other controls, the selected state being used to indicate a control object of the operation.
Further, the control instruction event may be an operation event of calling the control response control instruction of the selected state.
Further, the calculation of the coordinates of the target control is performed in different modes according to the coordinate type of the coordinates of the current control. For example, the current control coordinates may be boundary coordinates or non-boundary coordinates. When the current control coordinate is a boundary coordinate, adjusting the current control coordinate based on the adjacent row-column coordinate values to obtain a target control coordinate; and when the current control coordinate is a non-boundary coordinate, adjusting the current control coordinate according to the unit coordinate value to obtain the target control coordinate. The boundary coordinate may be a coordinate value of the coordinate, and if the abscissa value of the control coordinate is the maximum row coordinate value or the minimum row coordinate value of the row, or the ordinate value of the control coordinate is the maximum column coordinate value or the minimum column coordinate value of the column, the control coordinate is the boundary coordinate; the non-boundary coordinate may be a coordinate value of a control coordinate, where an abscissa value of the control coordinate is not a maximum row coordinate value or a minimum row coordinate value of a row, or an ordinate value of the control coordinate is not a maximum column coordinate value or a minimum column coordinate value of a column, and the control coordinate is the non-boundary coordinate.
When the abscissa in the current control coordinate reaches the maximum row coordinate value of the current control coordinate, and the control switching event is indicated to move right, adjusting the abscissa of the current control coordinate into a unit coordinate value, adjusting the ordinate of the current control coordinate into a unit coordinate value plus a unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates; when the ordinate in the current control coordinate reaches the maximum column coordinate value of the column of the current control coordinate and the control switching event is indicated to move downwards, adjusting the abscissa of the current control coordinate to be the abscissa plus a unit coordinate value, adjusting the ordinate of the current control coordinate to be the unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate to be the target control coordinate; when the abscissa in the current control coordinate reaches the minimum row coordinate value of the row in which the current control coordinate is located and the control switching event is indicated to be moved leftwards, adjusting the abscissa of the current control coordinate to the maximum row coordinate value of the row in which the current control coordinate is located, adjusting the ordinate of the current control coordinate to the ordinate minus a unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates; when the ordinate in the current control coordinate reaches the minimum column coordinate value of the column of the current control coordinate and the control switching event is indicated to move upwards, the abscissa of the current control coordinate is adjusted to be the abscissa minus a unit coordinate value, the ordinate of the current control coordinate is adjusted to be the maximum column coordinate value of the column of the current control coordinate, and the adjusted abscissa and the adjusted ordinate are determined to be the target control coordinate.
Further, the current control coordinates may also be special cases in boundary coordinates, such as: when the abscissa in the current control coordinate reaches the maximum row coordinate value of the row where the current control coordinate is located, and the ordinate in the current control coordinate reaches the maximum column coordinate value of the column where the current control coordinate is located, and the control switching event indicates that the control switching event moves right or moves down, determining the current control coordinate as a target control coordinate; and when the abscissa in the current control coordinate reaches the minimum row coordinate value of the row in which the current control coordinate is located, the ordinate in the current control coordinate reaches the minimum column coordinate value of the column in which the current control coordinate is located, and the control switching event is indicated to be left shift or up shift, determining the current control coordinate as the target control coordinate.
Further, when the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be right-shifted, adjusting the abscissa of the current control coordinate to be the abscissa value plus a unit coordinate value, keeping the ordinate of the current control coordinate unchanged, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates; when the current control coordinate is a non-boundary coordinate and the control switching event is indicated to move downwards, the abscissa of the current control coordinate is kept unchanged, the ordinate of the current control coordinate is adjusted to be the ordinate plus a unit coordinate value, and the adjusted abscissa and the adjusted ordinate are determined to be the target control coordinate; when the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be moved left, adjusting the abscissa of the current control coordinate to be a unit coordinate value minus the abscissa value, keeping the ordinate of the current control coordinate unchanged, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates; when the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be upward moving, the abscissa of the current control coordinate is kept unchanged, the ordinate of the current control coordinate is adjusted to be the ordinate minus a unit coordinate value, and the adjusted abscissa and the adjusted ordinate are determined to be the target control coordinate.
It should be noted that, the unit coordinate value may be a unit value adopted for calculating the coordinate, for example, may be "1", "0.1", or "2", and the specific value may be set according to the actual situation, and for convenience of understanding, the unit coordinate value adopted in the embodiment of the present application may be "1".
For ease of understanding, the embodiment of the present application describes a determination step for implementing the coordinates of the target control in combination with the control coordinates shown in fig. 8 and the switching rules shown in table 2.
Referring to the content shown in fig. 8, the control "control a" is a current control, the corresponding current control coordinate is (1, 1), and if the control switching event indicates that the control is moved down, the target control coordinate is (1, 1+1), that is, (1, 2), and the target control corresponding to the target control coordinate is "control C".
Further, if the current control coordinates are located at the boundary coordinates, a feasible method is as follows: when the abscissa in the current control coordinate is the maximum row coordinate value of the row and the control switching event is right shift, the calculation method of the target control coordinate is (x=1, y=y+1); when the abscissa in the current control coordinate is the minimum row coordinate value of the row, and the control switching event is left shift, the calculation method of the target control coordinate is (x=maxx, y=y-1); when the ordinate in the current control coordinate is the maximum column coordinate value of the row and the control switching event is downward movement, the calculation method of the target control coordinate is (x=x+1, y=1); when the ordinate in the current control coordinate is the minimum column coordinate value of the row, and the control switching event is upward movement, the calculation method of the target control coordinate is (x=x-1, y=maxy). Wherein, "max X" and "max Y" are the maximum row coordinate value and the maximum column coordinate value in the last row and the last column of the current control coordinate, respectively. For example, if the current control coordinate is (1, 2), and the control switching event is left shift, since the maximum row coordinate value of the previous row of the current control coordinate is 2, the target control coordinate is (max X, 2-1), i.e., (2, 1); if the current control coordinate is (1, 2) and the control switching event is a move down, the target control coordinate is (1+1, 1), namely (2, 1). Other cases can be analogized according to the above examples, and are not described here again.
It should be noted that, if the current control coordinate is (1, 1) that the abscissa and the ordinate are the minimum values of the rows and the columns, the control switching event is indicated to be moved up or moved left, then since there is no control above and to the left of the current control, the target control coordinate is the current control coordinate, and no change is performed, and (2, 2) that the abscissa and the ordinate are the maximum values of the rows and the columns, the control switching event is indicated to be moved down or moved right.
It should be noted that, the above switching rule is a method provided by the embodiment of the present application, and a specific switching rule may be set according to an actual situation.
S205, when the button operation corresponding to the button event is a control switching operation, switching the selected control from the current control to the target control;
In one embodiment, when the button operation corresponding to the button event is a control switching operation, the selected control displayed on the display interface is switched from the current control to the target control. For example, as shown in fig. 4, when the current control selected by the left graph in fig. 4 is "control a", and the key event indicates that the key event is moved down, the selected control is switched from "control a" to "control C", so as to obtain the effect shown in the right graph in fig. 4.
S206, when the key operation corresponding to the key event is a control instruction operation, calling an operation instruction corresponding to the target control operation in response to the control instruction operation;
In one embodiment, when the key operation corresponding to the key event is a control instruction operation, the operation event of the control in the selected state in response to the control instruction is called, so that the effect of the operation instruction corresponding to the target control is displayed on the display interface. For example, as shown in fig. 5, the currently selected control displayed in the left diagram in fig. 5 is "return", and when the key event is "Enter" is received, the current control is the target control, the target control is called "return" to respond to the operation instruction corresponding to the control instruction, and the instruction of "return" is executed, so as to obtain the content displayed in the right diagram in fig. 5, namely, return to the display interface of the last process of the terminal application. When a new interface of the terminal application is entered, a feasible method for selecting the current control is to select a control corresponding to the minimum row coordinate value of the row in the current display interface and the minimum column coordinate value of the column in the current display interface. For example, in the right diagram of fig. 5, the control "control E" is taken as the current control in the new interface.
Furthermore, by adopting the wireless control signal to control the terminal equipment, the terminal equipment or the system with better performance and stronger data processing capability can be adopted through the characteristics of strong applicability and popularity besides the convenience for the user to control the terminal equipment, so that better audio and video data compared with the terminal with general performance can be output, and the data processing efficiency and the data display capability of the user for playing high-quality data through the terminal equipment are improved. For example, an android system can receive infrared signals, but is limited by performance factors, the android system cannot play high-definition audio and video, a Windows system has enough computing performance to support terminal equipment to output high-definition audio and video, but the Windows system does not support receiving of infrared signals, and at the moment, the terminal equipment carrying the Windows system can receive control of the infrared signals by adopting the method of the application, so that the terminal equipment capable of playing high-definition audio and video and supporting infrared signal control is obtained.
In the embodiment of the application, the key mapping table is pre-established, the control coordinates of the controls in the display interface are determined, the control identification in the wireless control signal is obtained, the key event corresponding to the control identification is determined based on the key mapping table, then the target control corresponding to the key event is determined, and the target control is used for responding to the key operation corresponding to the key event, so that the terminal application of the terminal equipment is controlled according to the wireless control signal, the problem that the terminal or system is not matched with the wireless signal is adaptively solved, and the popularity of the wireless signal control terminal equipment is improved.
Based on the system architecture shown in fig. 1, the control response terminal provided by the embodiment of the present application will be described in detail below with reference to fig. 10 to 11. It should be noted that, the control response terminal in fig. 10 to fig. 11 may be the terminal device, or may be a control response module in the terminal device, which is specifically configured to execute the method of the embodiment shown in fig. 2 to fig. 9 of the present application, for convenience of explanation, only a portion relevant to the embodiment of the present application is shown, and specific technical details are not disclosed, and please refer to the embodiment shown in fig. 2 to fig. 9 of the present application.
Referring to fig. 10, a schematic structural diagram of a control response terminal is provided for an embodiment of the present application, where the terminal is applied to a terminal installed with a windows system, and the terminal is configured with a wireless signal receiver. As shown in fig. 10, the control response terminal 1 according to the embodiment of the present application may include: an identification acquisition unit 11, an event determination unit 12, and an operation response unit 13.
An identifier obtaining unit 11, configured to obtain a wireless control signal for a terminal application based on the wireless signal receiver, and obtain a control identifier carried by the wireless control signal;
An event determining unit 12, configured to determine a key event corresponding to the control identifier based on a key mapping table;
and the operation response unit 13 is configured to determine a target control corresponding to the key event, and respond to a key operation corresponding to the key event on the target control, where the target control is one control in the terminal application.
Alternatively, as shown in fig. 11, the operation response unit 13 includes:
a current coordinate determining subunit 131, configured to determine a current control coordinate corresponding to a currently selected current control;
A target coordinate determining subunit 132, configured to determine a target control coordinate corresponding to the key event based on the key event and the current control coordinate;
And the operation response subunit 133 is configured to obtain a target control corresponding to the target control coordinate, and respond to the key operation corresponding to the key event on the target control.
Optionally, the target coordinate determining subunit 132 is further configured to:
when the key event is a control instruction event, determining that the target control coordinate is the current control coordinate;
and when the button event is a control switching event, determining a target control coordinate based on a coordinate switching rule and the current control coordinate.
Optionally, the target coordinate determining subunit 132 is further configured to:
when the current control coordinate is a boundary coordinate, adjusting the current control coordinate based on adjacent row-column coordinate values to obtain a target control coordinate;
And when the current control coordinate is a non-boundary coordinate, adjusting the current control coordinate according to the unit coordinate value to obtain a target control coordinate.
Optionally, the target coordinate determining subunit 132 is further configured to:
When the abscissa in the current control coordinate reaches the maximum row coordinate value of the current control coordinate, and the control switching event is indicated to move right, adjusting the abscissa of the current control coordinate into a unit coordinate value, adjusting the ordinate of the current control coordinate into a unit coordinate value plus a unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate as a target control coordinate;
When the ordinate in the current control coordinate reaches the maximum column coordinate value of the column in which the current control coordinate is located and the control switching event is indicated to move downwards, adjusting the abscissa of the current control coordinate to be the abscissa value plus a unit coordinate value, adjusting the ordinate of the current control coordinate to be the unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate to be the target control coordinate;
When the abscissa in the current control coordinate reaches the minimum row coordinate value of the row where the current control coordinate is located and the control switching event is indicated to be moved left, adjusting the abscissa of the current control coordinate to the maximum row coordinate value of the row where the current control coordinate is located, adjusting the ordinate of the current control coordinate to the ordinate minus a unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate as a target control coordinate;
when the ordinate in the current control coordinate reaches the minimum column coordinate value of the column in which the current control coordinate is located and the control switching event is indicated to move upwards, the abscissa of the current control coordinate is adjusted to be the abscissa minus a unit coordinate value, the ordinate of the current control coordinate is adjusted to be the maximum column coordinate value of the column in which the current control coordinate is located, and the adjusted abscissa and the adjusted ordinate are determined to be target control coordinates.
Optionally, the target coordinate determining subunit 132 is further configured to:
When the abscissa in the current control coordinate reaches the maximum row coordinate value of the row where the current control coordinate is located, and the ordinate in the current control coordinate reaches the maximum column coordinate value of the column where the current control coordinate is located, and the control switching event indicates that the control switching event moves right or moves down, determining the current control coordinate as a target control coordinate;
and when the abscissa in the current control coordinate reaches the minimum row coordinate value of the row where the current control coordinate is located, the ordinate in the current control coordinate reaches the minimum column coordinate value of the column where the current control coordinate is located, and the control switching event indicates that the control switching event is moved left or moved up, determining the current control coordinate as a target control coordinate.
Optionally, the target coordinate determining subunit 132 is further configured to:
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be right-shifted, adjusting the abscissa of the current control coordinate to be an abscissa value plus a unit coordinate value, keeping the ordinate of the current control coordinate unchanged, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates;
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to move downwards, the abscissa of the current control coordinate is kept unchanged, the ordinate of the current control coordinate is adjusted to be an ordinate plus a unit coordinate value, and the adjusted abscissa and the adjusted ordinate are determined to be target control coordinates;
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be left-shifted, adjusting the abscissa of the current control coordinate to be a unit coordinate value minus the abscissa value, keeping the ordinate of the current control coordinate unchanged, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates;
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be upward movement, the abscissa of the current control coordinate is kept unchanged, the ordinate of the current control coordinate is adjusted to be the ordinate minus a unit coordinate value, and the adjusted abscissa and the adjusted ordinate are determined to be target control coordinates.
Optionally, the operation response subunit 133 is further configured to:
When the button operation corresponding to the button event is a control switching operation, switching the selected control from the current control to the target control;
When the key operation corresponding to the key event is a control instruction operation, the target control is called to respond to an operation instruction corresponding to the control instruction operation.
In the embodiment of the application, the key mapping table is pre-established, the control coordinates of the controls in the display interface are determined, the control identification in the wireless control signal is obtained, the key event corresponding to the control identification is determined based on the key mapping table, then the target control corresponding to the key event is determined, and the target control is used for responding to the key operation corresponding to the key event, so that the terminal application of the terminal equipment is controlled according to the wireless control signal, the problem that the terminal or system is not matched with the wireless signal is adaptively solved, and the popularity of the wireless signal control terminal equipment is improved.
The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium may store a plurality of program instructions, where the program instructions are adapted to be loaded by a processor and execute the method steps of the embodiment shown in fig. 2 to fig. 9, and the specific execution process may refer to the specific description of the embodiment shown in fig. 2 to fig. 9, which is not repeated herein.
Referring to fig. 12, a schematic structural diagram of a terminal device is provided in an embodiment of the present application. As shown in fig. 12, 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, at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 12, an operating system, a network communication module, an input-output interface module, and a control response application program may be included in the memory 1005, which is one type of computer-readable storage medium.
In the terminal device 1000 shown in fig. 12, the input-output interface 1003 is mainly used as an interface for providing input for a user, and acquires data input by the user.
In one embodiment, the processor 1001 may be configured to invoke a control response application stored in the memory 1005 and specifically perform the following operations:
Acquiring a wireless control signal aiming at terminal application based on the wireless signal receiver, and acquiring a control identifier carried by the wireless control signal;
determining a key event corresponding to the control identifier based on a key mapping table;
determining a target control corresponding to the key event, and responding to key operation corresponding to the key event on the target control, wherein the target control is one control in the terminal application.
Optionally, when executing the target control corresponding to the determined key event, the processor 1001 specifically executes the following operations when responding to the key operation corresponding to the key event on the target control:
determining the current control coordinates corresponding to the current selected current control;
Determining target control coordinates corresponding to the key event based on the key event and the current control coordinates;
And acquiring a target control corresponding to the target control coordinate, and responding to the key operation corresponding to the key event on the target control.
Optionally, when determining, based on the key event and the current control coordinate, the target control coordinate corresponding to the key event, the processor 1001 specifically performs the following operations:
when the key event is a control instruction event, determining that the target control coordinate is the current control coordinate;
and when the button event is a control switching event, determining a target control coordinate based on a coordinate switching rule and the current control coordinate.
Optionally, when determining the target control coordinates based on the coordinate switching rule and the current control coordinates, the processor 1001 specifically performs the following operations:
when the current control coordinate is a boundary coordinate, adjusting the current control coordinate based on adjacent row-column coordinate values to obtain a target control coordinate;
And when the current control coordinate is a non-boundary coordinate, adjusting the current control coordinate according to the unit coordinate value to obtain a target control coordinate.
Optionally, when the processor 1001 adjusts the current control coordinate based on the adjacent row-column coordinate value when the current control coordinate is the boundary coordinate, so as to obtain the target control coordinate, the following operations are specifically executed:
When the abscissa in the current control coordinate reaches the maximum row coordinate value of the current control coordinate, and the control switching event is indicated to move right, adjusting the abscissa of the current control coordinate into a unit coordinate value, adjusting the ordinate of the current control coordinate into a unit coordinate value plus a unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate as a target control coordinate;
When the ordinate in the current control coordinate reaches the maximum column coordinate value of the column in which the current control coordinate is located and the control switching event is indicated to move downwards, adjusting the abscissa of the current control coordinate to be the abscissa value plus a unit coordinate value, adjusting the ordinate of the current control coordinate to be the unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate to be the target control coordinate;
When the abscissa in the current control coordinate reaches the minimum row coordinate value of the row where the current control coordinate is located and the control switching event is indicated to be moved left, adjusting the abscissa of the current control coordinate to the maximum row coordinate value of the row where the current control coordinate is located, adjusting the ordinate of the current control coordinate to the ordinate minus a unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate as a target control coordinate;
when the ordinate in the current control coordinate reaches the minimum column coordinate value of the column in which the current control coordinate is located and the control switching event is indicated to move upwards, the abscissa of the current control coordinate is adjusted to be the abscissa minus a unit coordinate value, the ordinate of the current control coordinate is adjusted to be the maximum column coordinate value of the column in which the current control coordinate is located, and the adjusted abscissa and the adjusted ordinate are determined to be target control coordinates.
Optionally, when the processor 1001 adjusts the current control coordinate based on the adjacent row-column coordinate value when the current control coordinate is the boundary coordinate, so as to obtain the target control coordinate, the following operations are performed:
When the abscissa in the current control coordinate reaches the maximum row coordinate value of the row where the current control coordinate is located, and the ordinate in the current control coordinate reaches the maximum column coordinate value of the column where the current control coordinate is located, and the control switching event indicates that the control switching event moves right or moves down, determining the current control coordinate as a target control coordinate;
and when the abscissa in the current control coordinate reaches the minimum row coordinate value of the row where the current control coordinate is located, the ordinate in the current control coordinate reaches the minimum column coordinate value of the column where the current control coordinate is located, and the control switching event indicates that the control switching event is moved left or moved up, determining the current control coordinate as a target control coordinate.
Optionally, when the processor 1001 adjusts the current control coordinate according to the unit coordinate value when the current control coordinate is a non-boundary coordinate, so as to obtain the target control coordinate, the following operations are specifically executed:
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be right-shifted, adjusting the abscissa of the current control coordinate to be an abscissa value plus a unit coordinate value, keeping the ordinate of the current control coordinate unchanged, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates;
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to move downwards, the abscissa of the current control coordinate is kept unchanged, the ordinate of the current control coordinate is adjusted to be an ordinate plus a unit coordinate value, and the adjusted abscissa and the adjusted ordinate are determined to be target control coordinates;
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be left-shifted, adjusting the abscissa of the current control coordinate to be a unit coordinate value minus the abscissa value, keeping the ordinate of the current control coordinate unchanged, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates;
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be upward movement, the abscissa of the current control coordinate is kept unchanged, the ordinate of the current control coordinate is adjusted to be the ordinate minus a unit coordinate value, and the adjusted abscissa and the adjusted ordinate are determined to be target control coordinates.
Optionally, when executing a key operation corresponding to the key event on the target control, the processor 1001 specifically executes the following operations:
When the button operation corresponding to the button event is a control switching operation, switching the selected control from the current control to the target control;
When the key operation corresponding to the key event is a control instruction operation, the target control is called to respond to an operation instruction corresponding to the control instruction operation.
In the embodiment of the application, the key mapping table is pre-established, the control coordinates of the controls in the display interface are determined, the control identification in the wireless control signal is obtained, the key event corresponding to the control identification is determined based on the key mapping table, then the target control corresponding to the key event is determined, and the target control is used for responding to the key operation corresponding to the key event, so that the terminal application of the terminal equipment is controlled according to the wireless control signal, the problem that the terminal or system is not matched with the wireless signal is adaptively solved, and the popularity of the wireless signal control terminal equipment is improved.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (12)

1. A control response method, applied to a terminal installed with a windows system, the terminal being configured with a wireless signal receiver, the method comprising:
acquiring a wireless control signal aiming at terminal application based on the wireless signal receiver, and acquiring a control identifier carried by the wireless control signal;
determining a key event corresponding to the control identifier based on a key mapping table;
determining a target control corresponding to the key event, and responding to key operation corresponding to the key event on the target control, wherein the target control is one control in the terminal application.
2. The method of claim 1, wherein the determining the target control corresponding to the key event, and responding to the key operation corresponding to the key event on the target control, comprises:
determining the current control coordinates corresponding to the current selected current control;
Determining target control coordinates corresponding to the key event based on the key event and the current control coordinates;
And acquiring a target control corresponding to the target control coordinate, and responding to the key operation corresponding to the key event on the target control.
3. The method of claim 2, wherein the determining, based on the key event and the current control coordinates, target control coordinates corresponding to the key event comprises:
when the key event is a control instruction event, determining that the target control coordinate is the current control coordinate;
and when the button event is a control switching event, determining a target control coordinate based on a coordinate switching rule and the current control coordinate.
4. The method of claim 3, wherein the determining target control coordinates based on the coordinate switching rules and the current control coordinates comprises:
when the current control coordinate is a boundary coordinate, adjusting the current control coordinate based on adjacent row-column coordinate values to obtain a target control coordinate;
And when the current control coordinate is a non-boundary coordinate, adjusting the current control coordinate according to the unit coordinate value to obtain a target control coordinate.
5. The method of claim 4, wherein when the current control coordinate is a boundary coordinate, adjusting the current control coordinate based on adjacent row-column coordinate values to obtain a target control coordinate comprises:
When the abscissa in the current control coordinate reaches the maximum row coordinate value of the current control coordinate, and the control switching event is indicated to move right, adjusting the abscissa of the current control coordinate into a unit coordinate value, adjusting the ordinate of the current control coordinate into a unit coordinate value plus a unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate as a target control coordinate;
When the ordinate in the current control coordinate reaches the maximum column coordinate value of the column in which the current control coordinate is located and the control switching event is indicated to move downwards, adjusting the abscissa of the current control coordinate to be the abscissa value plus a unit coordinate value, adjusting the ordinate of the current control coordinate to be the unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate to be the target control coordinate;
When the abscissa in the current control coordinate reaches the minimum row coordinate value of the row where the current control coordinate is located and the control switching event is indicated to be moved left, adjusting the abscissa of the current control coordinate to the maximum row coordinate value of the row where the current control coordinate is located, adjusting the ordinate of the current control coordinate to the ordinate minus a unit coordinate value, and determining the adjusted abscissa and the adjusted ordinate as a target control coordinate;
when the ordinate in the current control coordinate reaches the minimum column coordinate value of the column in which the current control coordinate is located and the control switching event is indicated to move upwards, the abscissa of the current control coordinate is adjusted to be the abscissa minus a unit coordinate value, the ordinate of the current control coordinate is adjusted to be the maximum column coordinate value of the column in which the current control coordinate is located, and the adjusted abscissa and the adjusted ordinate are determined to be target control coordinates.
6. The method of claim 5, wherein when the current control coordinate is a boundary coordinate, adjusting the current control coordinate based on adjacent row-column coordinate values to obtain a target control coordinate comprises:
When the abscissa in the current control coordinate reaches the maximum row coordinate value of the row where the current control coordinate is located, and the ordinate in the current control coordinate reaches the maximum column coordinate value of the column where the current control coordinate is located, and the control switching event indicates that the control switching event moves right or moves down, determining the current control coordinate as a target control coordinate;
and when the abscissa in the current control coordinate reaches the minimum row coordinate value of the row where the current control coordinate is located, the ordinate in the current control coordinate reaches the minimum column coordinate value of the column where the current control coordinate is located, and the control switching event indicates that the control switching event is moved left or moved up, determining the current control coordinate as a target control coordinate.
7. The method of claim 4, wherein when the current control coordinate is a non-boundary coordinate, adjusting the current control coordinate according to a unit coordinate value to obtain a target control coordinate, comprises:
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be right-shifted, adjusting the abscissa of the current control coordinate to be an abscissa value plus a unit coordinate value, keeping the ordinate of the current control coordinate unchanged, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates;
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to move downwards, the abscissa of the current control coordinate is kept unchanged, the ordinate of the current control coordinate is adjusted to be an ordinate plus a unit coordinate value, and the adjusted abscissa and the adjusted ordinate are determined to be target control coordinates;
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be left-shifted, adjusting the abscissa of the current control coordinate to be a unit coordinate value minus the abscissa value, keeping the ordinate of the current control coordinate unchanged, and determining the adjusted abscissa and the adjusted ordinate as target control coordinates;
When the current control coordinate is a non-boundary coordinate and the control switching event is indicated to be upward movement, the abscissa of the current control coordinate is kept unchanged, the ordinate of the current control coordinate is adjusted to be the ordinate minus a unit coordinate value, and the adjusted abscissa and the adjusted ordinate are determined to be target control coordinates.
8. The method of claim 2, wherein the responding to the key operation corresponding to the key event on the target control comprises:
When the button operation corresponding to the button event is a control switching operation, switching the selected control from the current control to the target control;
When the key operation corresponding to the key event is a control instruction operation, the target control is called to respond to an operation instruction corresponding to the control instruction operation.
9. The method of claim 1, wherein the wireless control signal comprises an infrared signal.
10. A control response terminal, applied to a terminal installed with a windows system, the terminal being configured with a wireless signal receiver, the terminal comprising:
The identification acquisition unit is used for acquiring a wireless control signal aiming at terminal application based on the wireless signal receiver and acquiring a control identification carried by the wireless control signal;
the event determining unit is used for determining a key event corresponding to the control identifier based on a key mapping table;
And the operation response unit is used for determining a target control corresponding to the key event, responding to the key operation corresponding to the key event on the target control, and the target control is one control in the terminal application.
11. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any one of claims 1 to 9.
12. A terminal device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of the method according to any one of claims 1-9.
CN202211451953.0A 2022-11-18 2022-11-18 A control response method, a terminal, a storage medium, and a terminal device. Active CN118057504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211451953.0A CN118057504B (en) 2022-11-18 2022-11-18 A control response method, a terminal, a storage medium, and a terminal device.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211451953.0A CN118057504B (en) 2022-11-18 2022-11-18 A control response method, a terminal, a storage medium, and a terminal device.

Publications (2)

Publication Number Publication Date
CN118057504A true CN118057504A (en) 2024-05-21
CN118057504B CN118057504B (en) 2026-04-28

Family

ID=91069036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211451953.0A Active CN118057504B (en) 2022-11-18 2022-11-18 A control response method, a terminal, a storage medium, and a terminal device.

Country Status (1)

Country Link
CN (1) CN118057504B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013211676A (en) * 2012-03-30 2013-10-10 Nippon Seiki Co Ltd Portable terminal controller
CN103677612A (en) * 2012-09-22 2014-03-26 深圳清华大学研究院 Device and method for electronic device control
CN105320297A (en) * 2015-11-16 2016-02-10 海信集团有限公司 Terminal device control method and apparatus
WO2016045503A1 (en) * 2014-09-25 2016-03-31 阿里巴巴集团控股有限公司 Remote controller key matching and signal processing method and apparatus
CN108055704A (en) * 2017-12-22 2018-05-18 广州视源电子科技股份有限公司 Interactive control method, system, terminal and storage medium
CN112052052A (en) * 2020-09-24 2020-12-08 深圳创维-Rgb电子有限公司 Touch method and device for key value, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013211676A (en) * 2012-03-30 2013-10-10 Nippon Seiki Co Ltd Portable terminal controller
CN103677612A (en) * 2012-09-22 2014-03-26 深圳清华大学研究院 Device and method for electronic device control
WO2016045503A1 (en) * 2014-09-25 2016-03-31 阿里巴巴集团控股有限公司 Remote controller key matching and signal processing method and apparatus
CN105320297A (en) * 2015-11-16 2016-02-10 海信集团有限公司 Terminal device control method and apparatus
CN108055704A (en) * 2017-12-22 2018-05-18 广州视源电子科技股份有限公司 Interactive control method, system, terminal and storage medium
CN112052052A (en) * 2020-09-24 2020-12-08 深圳创维-Rgb电子有限公司 Touch method and device for key value, terminal and storage medium

Also Published As

Publication number Publication date
CN118057504B (en) 2026-04-28

Similar Documents

Publication Publication Date Title
US10419823B2 (en) Method for controlling multimedia playing, apparatus thereof and storage medium
CN109741279B (en) Image saturation adjustment method, device, storage medium and terminal
US20220155922A1 (en) Side-toolbar-display method, terminal, and storage medium
US12301983B2 (en) Content operation method and device, terminal, and storage medium
US9665247B2 (en) Method and device for applying a new skin to a display environment
WO2017121353A1 (en) Method and device for displaying control
CN109542304B (en) Display content loading method, device, equipment and storage medium
CN107943372A (en) A kind of interface display method, device and computer-readable recording medium
CN110968364A (en) Method and device for adding shortcut plug-in and intelligent equipment
WO2020134789A1 (en) Mobile terminal and method for controlling on and off of screen, and computer storage medium
KR20160040770A (en) Method and apparatus for searching contents
WO2025161520A1 (en) Display control method, storage medium, and computer device
US10613622B2 (en) Method and device for controlling virtual reality helmets
CN108566564A (en) Jump method, television set and the computer readable storage medium of page focus
CN112817555A (en) Volume control method and volume control device
WO2021104162A1 (en) Display method and electronic device
CN118057504B (en) A control response method, a terminal, a storage medium, and a terminal device.
CN113852751B (en) Image processing method, device, terminal and storage medium
CN114546171A (en) Data distribution method, device, storage medium and electronic device
US20250078330A1 (en) Method for processing comments and electronic device
CN117354773A (en) Interactive control method, device, terminal and storage medium
CN108920122B (en) Screen display method, device, terminal and computer readable storage medium
WO2024041023A9 (en) Application card adjustment method and apparatus, and terminal device and storage medium
CN112138397B (en) Trigger management method and device, computer equipment and storage medium
CN108734556A (en) Recommend the method and device of application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant