CN114879876A - Key mode switching method and device, storage medium and electronic equipment - Google Patents

Key mode switching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114879876A
CN114879876A CN202210430833.6A CN202210430833A CN114879876A CN 114879876 A CN114879876 A CN 114879876A CN 202210430833 A CN202210430833 A CN 202210430833A CN 114879876 A CN114879876 A CN 114879876A
Authority
CN
China
Prior art keywords
physical key
mode
target physical
current working
key
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
CN202210430833.6A
Other languages
Chinese (zh)
Other versions
CN114879876B (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.)
Hunan Xiaowen Electronic Technology Co ltd
Original Assignee
Hunan Xiaowen Electronic 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 Hunan Xiaowen Electronic Technology Co ltd filed Critical Hunan Xiaowen Electronic Technology Co ltd
Priority to CN202210430833.6A priority Critical patent/CN114879876B/en
Publication of CN114879876A publication Critical patent/CN114879876A/en
Application granted granted Critical
Publication of CN114879876B publication Critical patent/CN114879876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a method and a device for switching key modes, a storage medium and electronic equipment. Wherein, the method comprises the following steps: detecting a setting instruction aiming at a target physical key on a display interface of a special effect equipment controller; responding to the setting instruction, and reading the current working mode of the target physical key, wherein the current working mode comprises a self-locking mode and a jog mode; if the current working mode of the target physical key is the self-locking mode, switching the current working mode of the target physical key into the inching mode; and/or if the current working mode of the physical key is the inching mode, switching the current working mode of the physical key into the self-locking mode. According to the invention, the relevance between the display interface and the physical keys is improved, an efficient and rapid mode switching mode is realized, the technical problem that the process of setting the key mode of the special effect equipment controller in the prior art is too complicated is solved, and the user experience is improved.

Description

Key mode switching method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of control of special effect devices, and in particular, to a method and an apparatus for switching a key mode, a storage medium, and an electronic device.
Background
In the related art, a special effect device controller is used to control the triggering of a special effect device, and in order to flexibly utilize keys on the controller, it is usually necessary to set key functions, such as setting the operating mode thereof.
In the related art, the relevance between the mechanical key working mode setting menu and the mechanical key is not strong, the setting process is complicated, and the setting is usually finished in a built-in mode after leaving a factory and cannot be reset. Or opening a specific setting operation interface of the operating system, returning to the operation interface after setting, and entering the specific setting operation interface of the operating system when the working mode needs to be updated. The setting function is matched with the position of the mechanical key on the interface, and the setting function cannot be quickly and conveniently set corresponding to the corresponding mechanical key.
In view of the above problems in the related art, no effective solution has been found at present.
Disclosure of Invention
In order to solve the defects of the related art, the invention provides a key mode switching method and device, a storage medium and electronic equipment.
According to an aspect of an embodiment of the present application, a method for switching a key mode is provided, including: detecting a setting instruction aiming at a target physical key on a display interface of a special effect equipment controller; responding to the setting instruction, and reading the current working mode of the target physical key, wherein the current working mode comprises a self-locking mode and a jog mode; if the current working mode of the target physical key is the self-locking mode, switching the current working mode of the target physical key into a jog mode; and/or if the current working mode of the physical key is the inching mode, switching the current working mode of the physical key into the self-locking mode.
Further, detecting a setting instruction for the target physical key on a display interface of the special effect device controller includes: detecting a setting instruction on a display interface of a special effect equipment controller; positioning an instruction input area of the setting instruction on the display interface; searching a target physical key matched with the instruction input area, and associating the target physical key as a setting object of the setting instruction; the display interface comprises a plurality of instruction input areas, and each instruction input area corresponds to one physical key of the special effect equipment controller.
Further, detecting a setting instruction for the target physical key on a display interface of the special effect device controller includes: detecting touch operation aiming at a target physical key on a display interface of a special effect equipment controller; identifying the operation type of the touch operation; and if the operation type is single-point touch, triggering and generating the setting instruction based on the touch operation.
Further, after switching the current operation mode of the target physical key to the jog mode, the method further comprises: switching the first identification information displayed on the display interface into second identification information; and/or after the current working mode of the physical key is switched to the self-locking mode, the method further comprises the following steps: switching the second identification information displayed on the display interface into the first identification information; the first identification information is used for identifying that the current working mode of the target physical key is the self-locking mode, and the second identification information is used for identifying that the current working mode of the target physical key is the inching mode.
Further, after switching the current operation mode of the target physical key to the jog mode, the method further comprises: detecting the physical state of the target physical key, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is turned on when the target physical key is switched on, and the state indicator lamp is turned off when the target physical key is switched off; if the physical state is a pressing state, controlling the state indicator lamp to be lightened; and if the physical state is the bouncing state, controlling the state indicator lamp to be extinguished.
Further, after switching the current working mode of the physical key to the self-locking mode, the method further includes: monitoring a trigger operation aiming at the target physical key, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is lightened when the target physical key is switched on, and the state indicator lamp is extinguished when the target physical key is switched off; if the triggering operation aiming at the target physical key is monitored, judging the current working state of the state indicator lamp; if the current working state is an off state, controlling the state indicator lamp to be lightened; and if the current working state is a lighting state, controlling the state indicator lamp to be turned off.
Further, if the current working mode of the target physical key is the self-locking mode, the current working mode of the target physical key is switched to the inching mode; and/or, if the current working mode of the physical key is the jog mode, after the current working mode of the physical key is switched to the self-locking mode, the method further comprises: if the current working mode of the target physical key is a jog mode, detecting continuous pressing operation aiming at the target physical key, and controlling a first effect unit to trigger until the triggering time of the first effect unit is over or the pressing operation is stopped; if the current working mode of the target physical key is the self-locking mode, detecting single pressing operation aiming at the target physical key, and controlling a second effect unit to trigger until the triggering time of the second effect unit is finished or detecting the single pressing operation aiming at the target physical key again; the first effect unit is configured to control a first special effect device set, and the second effect unit is configured to control a second special effect device set.
According to another aspect of the embodiments of the present application, there is also provided a key mode switching device, including: the first detection module is used for detecting a setting instruction aiming at a target physical key on a display interface of the special effect equipment controller; the reading module is used for responding to the setting instruction and reading the current working mode of the target physical key, wherein the current working mode comprises a self-locking mode and a jog mode; the first switching module is used for switching the current working mode of the target physical key into a jog mode if the current working mode of the target physical key is a self-locking mode; and/or if the current working mode of the physical key is the inching mode, switching the current working mode of the physical key into the self-locking mode.
Further, the first detection module comprises: the first detection unit is used for detecting a setting instruction on a display interface of the special effect equipment controller; the positioning unit is used for positioning an instruction input area of the setting instruction on the display interface; the association unit is used for searching a target physical key matched with the instruction input area and associating the target physical key as a setting object of the setting instruction; the display interface comprises a plurality of instruction input areas, and each instruction input area corresponds to one physical key of the special effect equipment controller.
Further, the first detection module comprises: the second detection unit is used for detecting touch operation aiming at the target physical key on a display interface of the special effect equipment controller; the identification unit is used for identifying the operation type of the touch operation; and the generating unit is used for triggering and generating the setting instruction based on the touch operation if the operation type is single-point touch.
Further, the apparatus further comprises: the second switching module is used for switching the first identification information displayed on the display interface into second identification information after the first switching module switches the current working mode of the target physical key into the jog mode; and/or after the first switching module switches the current working mode of the physical key to the self-locking mode, switching second identification information displayed on the display interface to first identification information; the first identification information is used for identifying that the current working mode of the target physical key is the self-locking mode, and the second identification information is used for identifying that the current working mode of the target physical key is the inching mode.
Further, the apparatus further comprises: the second detection module is used for detecting the physical state of the target physical key after the first switching module switches the current working mode of the target physical key into the inching mode, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is turned on when the target physical key is switched on, and the state indicator lamp is turned off when the target physical key is switched off; the first control module is used for controlling the state indicator lamp to be lightened if the physical state is a pressing state; and if the physical state is the bouncing state, controlling the state indicator lamp to be extinguished.
Further, the apparatus further comprises: the monitoring module is used for monitoring the trigger operation aiming at the target physical key after the current working mode of the physical key is switched to the self-locking mode by the first switching module, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is lightened when the target physical key is switched on, and the state indicator lamp is extinguished when the target physical key is switched off; the judging module is used for judging the current working state of the state indicator lamp if the triggering operation aiming at the target physical key is monitored; the second control module is used for controlling the state indicator lamp to be lightened if the current working state is an off state; and if the current working state is a lighting state, controlling the state indicator lamp to be turned off.
Further, the apparatus further comprises: the first trigger module is used for switching the current working mode of the target physical key into a jog mode if the current working mode of the target physical key is the self-locking mode in the first switching module; and/or after the current working mode of the physical key is switched to the self-locking mode if the current working mode of the physical key is the inching mode, detecting continuous pressing operation aiming at the target physical key if the current working mode of the target physical key is the inching mode, and controlling the first effect unit to trigger until the triggering time of the first effect unit is over or the pressing operation is stopped; the second trigger module is used for switching the current working mode of the target physical key into a jog mode if the current working mode of the target physical key is the self-locking mode in the first switching module; and/or, if the current working mode of the physical key is a jog mode, after the current working mode of the physical key is switched to a self-locking mode, if the current working mode of the target physical key is the self-locking mode, detecting a single pressing operation aiming at the target physical key, and controlling a second effect unit to trigger until the triggering time of the second effect unit is over or detecting the single pressing operation aiming at the target physical key again; the first effect unit is configured to control a first special effect device set, and the second effect unit is configured to control a second special effect device set.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program, wherein the program performs the above-mentioned method steps when executed.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; a processor for executing the above method steps by executing the program stored in the memory.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the above method.
According to the invention, a setting instruction aiming at a target physical key is detected on a display interface of a special effect equipment controller, and the current working mode of the target physical key is read in response to the setting instruction, wherein the current working mode comprises a self-locking mode and a inching mode; if the current working mode of the target physical key is the self-locking mode, the current working mode of the target physical key is switched to the inching mode, if the current working mode of the physical key is the inching mode, the current working mode of the physical key is switched to the self-locking mode, a setting instruction is detected on a display interface of the special effect equipment controller, and the switching between the self-locking mode and the inching mode of the physical key is realized based on the setting instruction, so that the relevance between the display interface and the physical key is improved, a high-efficiency and quick mode switching mode is realized, the technical problem that the process of setting the key mode of the special effect equipment controller in the prior art is too complicated is solved, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a controller according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for switching between key modes according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface of a controller in an embodiment of the invention;
FIG. 4 is a schematic diagram of the inching mode and self-mode-locking triggering in an embodiment of the present invention;
fig. 5 is a block diagram of a switching device of a key mode according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The method provided in the first embodiment of the present application may be executed in a controller, a computer, or a similar computing device. Taking an example of the operation on a controller, fig. 1 is a hardware structure block diagram of a controller according to an embodiment of the present invention. As shown in fig. 1, the controller may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally, a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is merely illustrative and is not intended to limit the structure of the controller. For example, the controller may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a controller program, for example, a software program and a module of application software, such as a device linkage program corresponding to a method for switching a key mode in an embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the device linkage program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 can further include memory located remotely from the processor 102, which can be connected to the controller over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network may include a wired network interface (e.g., RS485, RS232, etc.) of the controller or a wireless network provided by a communication provider. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a method for switching a key mode is provided, and fig. 2 is a flowchart of a method for switching a key mode according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, detecting a setting instruction aiming at a target physical key on a display interface of a special effect equipment controller;
in this embodiment, the special effect device controller is simply referred to as a controller (also called a master controller, which is a host device and a control center of all special effect devices), the controller is a controller of various types of special effect devices such as a stage, and is used for automatically or manually controlling the stage special effect devices, and the stage special effect devices include various types of stage special effect devices such as a flower spraying machine, a flame spraying machine, a laser, an air spraying machine, a smoke spraying machine, fireworks, and the like. When manual or semi-automatic control is carried out, the triggering needs to be carried out by means of physical keys on a controller. The physical keys may be mechanical cases on the controller, touch keys, or remote control keys. The display interface may be a main control interface/main interface, a control interface of an operating system of the special effect device controller.
Step S204, responding to a setting instruction, and reading the current working mode of the target physical key, wherein the current working mode comprises a self-locking mode and a jog mode;
optionally, the mechanical button of the controller is divided into a self-locking mode and a inching mode, the inching mode is also called a non-self-locking mode, the self-locking button is a switch with a mechanical locking function, if the self-locking button is pressed to be in a connection state, the self-locking button is pressed to be in a disconnection state after rebounding, the button is pressed to be not in the connection state in the non-self-locking state, and the button is in the disconnection state when the button is loosened.
In one example, the operating mode of the physical key may be set by changing a flag.
Step S206, if the current working mode of the target physical key is a self-locking mode, switching the current working mode of the target physical key into a jog mode; and/or if the current working mode of the physical key is the inching mode, switching the current working mode of the physical key into the self-locking mode.
Through the steps, a setting instruction aiming at a target physical key is detected on a display interface of a special effect equipment controller, the current working mode of the target physical key is read in response to the setting instruction, wherein the current working mode comprises a self-locking mode and a jog mode, if the current working mode of the target physical key is the self-locking mode, the current working mode of the target physical key is switched to the jog mode, if the current working mode of the physical key is the jog mode, the current working mode of the physical key is switched to the self-locking mode, the setting instruction is directly detected on the display interface of the special effect equipment controller, and the switching between the self-locking mode and the jog mode of the physical key is realized based on the setting instruction, so that the relevance between the display interface and the physical key is improved, an efficient and rapid mode switching mode is realized, and the technical problem that the process of setting the key mode of the special effect equipment controller in the prior art is too complicated is solved, the user experience is improved.
In one implementation of this embodiment, detecting a setting instruction for the target physical button on the display interface of the special effect device controller includes: detecting a setting instruction on a display interface of a special effect equipment controller; positioning an instruction input area of the setting instruction on the display interface; searching a target physical key matched with the instruction input area, and associating the target physical key as a setting object of the setting instruction; the display interface comprises a plurality of instruction input areas, and each instruction input area corresponds to one physical key of the special effect equipment controller.
In this embodiment, the special effects device controller includes a plurality of physical keys, each physical key associated with at least one effect element (also referred to as a CUE), and the display interface of the controller is provided with and displays the instruction input areas (or the key mode setting areas) with the same number as the physical keys, each instruction input area corresponds to one physical key of the special effect equipment controller, when detecting the setting command, it is also necessary to locate the input position for detecting the setting command, such as the first command input region detecting the setting command of the first physical key, the second command input region detecting the setting command of the second physical key, therefore, a plurality of physical keys can be rapidly and flexibly configured on the same display interface through the distribution of the instruction input area without complex interface switching operation or entering a specific setting interface. The effect unit of this embodiment is a control unit of the master controller, and an effect unit can simultaneously map a plurality of target special effect devices by adding the plurality of target special effect devices, and trigger the plurality of mapped target special effect devices at one time, so that the plurality of mapped target special effect devices are automatically triggered or set off according to a certain time rule, and a clustered special effect is achieved.
In some examples, if the number of the physical keys is greater than the number of the instruction input regions, the instruction input regions may also be turned by the switch button or the page turning button, for example, 10 physical keys are provided, the display interface may only display 5 instruction input regions at most once, before turning the page, the 5 instruction input regions match the physical keys 1 to 5, and after turning the page, the 5 instruction input regions match the physical keys 6 to 10. Searching for a target physical key matched with the instruction input area comprises the following steps: and reading page number information of the instruction input area, and searching a target physical key matched with the instruction input area based on the page number information.
In one example, detecting a setting instruction for a target physical key on a display interface of a special effects device controller includes: detecting touch operation aiming at a target physical key on a display interface of a special effect equipment controller; identifying an operation type of touch operation; and if the operation type is single-point touch, generating a setting instruction based on touch operation triggering.
In this embodiment, the operation type packet includes: the method comprises the steps of single-point touch, long-press touch, double-click triggering, sliding triggering and the like, and different types of instructions can be generated based on different operation types by presetting a mapping relation between operation types and instruction generation types, or setting instructions aiming at different physical keys are generated. In the embodiment, the simple single-point touch is selected as the trigger operation for triggering the generation of the setting instruction, so that the operation flow can be simplified.
In an implementation manner of this embodiment, after switching the current operation mode of the target physical key to the jog mode, the method further includes: switching first identification information displayed on a display interface into second identification information; and/or after switching the current working mode of the physical key into the self-locking mode, the method further comprises the following steps: switching the second identification information displayed on the display interface into the first identification information; the first identification information is used for identifying that the current working mode of the target physical key is the self-locking mode, and the second identification information is used for identifying that the current working mode of the target physical key is the inching mode.
Optionally, each display interface displaying each physical key is the same as the instruction input area of the physical key.
Optionally, the first identification information and the second identification information may be patterns, characters, and the like, for example, the first identification information is a "locked" pattern identifier, and the second identification information is an "unlocked" pattern identifier; the first identification information is a pattern identification of "Δ", and the second identification information is a null identification. Through after the mode of switching the physical button, the identification information of this physical button of synchronous switch, the current mode of this physical button of sign on the display interface of master controller, produce the associativity more easily, more directly perceived, the degree of discernment is high, reduces the probability of maloperation, improves user experience.
In an application scenario of this embodiment, the mechanical key has an indicator light for indicating a key triggering state, and after the current operating mode of the target physical key is switched to the jog mode, the method further includes: detecting the physical state of a target physical key, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is turned on when the target physical key is switched on, and the state indicator lamp is turned off when the target physical key is switched off; if the physical state is a pressing state, controlling a state indicator lamp to be lightened; if the physical state is the bounce state, the state indicator lamp is controlled to be turned off.
This embodiment is experienced in order realizing better button, and the embedded pilot lamp that indicates button trigger state that sets up on the mechanical button is triggered at mechanical button, and mechanical button switches on, and backstage control pilot lamp lights. In the self-locking working mode, the mechanical key is pressed, the indicator light is turned on, the mechanical key is pressed again, the mechanical key is turned off, and the indicator light is turned off; in the non-self-locking mode, the indicator light is turned on when a mechanical key is pressed, and the indicator light is turned off when the hand is released. The on and off of the physical key can be an electric signal, or a communication signal, that is, the physical key is electrically connected and electrically disconnected, or the physical key is communicated and communicated.
In another application scenario of this embodiment, after switching the current working mode of the physical key to the auto-lock mode, the method further includes: monitoring a trigger operation aiming at a target physical key, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is lightened when the target physical key is switched on, and the state indicator lamp is extinguished when the target physical key is switched off; if the triggering operation aiming at the target physical key is monitored, the current working state of the state indicator lamp is judged; if the current working state is an off state, controlling a state indicator lamp to be lightened; and if the current working state is the lighting state, controlling the state indicator lamp to be turned off.
In one example of this embodiment, the mechanical button may trigger the start of the program, if the program is in a self-locking state, the function of the mechanical button is locked, the triggered program continues to run, and pressing the mechanical button again may terminate the program; if the program is operated in a non-self-locking state, the triggered program is continuously operated, the function of the mechanical key cannot be locked, and the program operation can be terminated after the key is released. The starting program is used for activating the effect unit and sending a starting instruction/ignition instruction to the special effect equipment so as to enable the special effect equipment to be set off or activated.
Fig. 3 is an interface schematic diagram of a controller in an embodiment of the present invention, including physical keys, a display interface, a status indicator lamp on each physical key, and an instruction input area on the display interface right above each physical key, where the instruction input area is used to display identification information, and the identification information includes identification information related to a working mode (self-locking, inching) of the physical key and custom identification information related to a function of the physical key.
In this embodiment, if the current working mode of the target physical key is the self-locking mode, the current working mode of the target physical key is switched to the inching mode; and/or, if the current working mode of the physical key is the jog mode, after switching the current working mode of the physical key into the self-locking mode, further comprising: if the current working mode of the target physical key is the inching mode, detecting continuous pressing operation aiming at the target physical key, and controlling the first effect unit to trigger until the triggering time of the first effect unit is over or the pressing operation is stopped; if the current working mode of the target physical key is the self-locking mode, detecting single pressing operation aiming at the target physical key, and controlling the second effect unit to trigger until the triggering time of the second effect unit is finished or detecting the single pressing operation aiming at the target physical key again; the first effect unit is used for controlling the first special effect device set, and the second effect unit is used for controlling the second special effect device set.
When the physical keys are in different working modes, the working flows of the physical keys are different, the target physical key is the key 1, if the key 1 is currently set to be in a jog mode, the key 1 is associated with a first CUE, the trigger cycle of the first CUE is 10S, after the continuous pressing operation of the key 1 is detected, the first CUE starts to run, if the pressing is stopped before 10S, the first CUE also stops triggering, and if 10S arrives, the running of the first CUE is finished, and the key 1 also stops triggering; the target physical key is the key 2, if the key 2 is currently set to be in the self-locking mode, the key 2 is associated with a second CUE, the trigger cycle of the second CUE is 8S, after single pressing operation (single-point operation) of the key 2 is detected, the second CUE starts to operate, if the user presses the key 2 again before 8S, the second CUE stops triggering, and if 8S is reached, the second CUE finishes operating, and the key 2 also stops triggering. FIG. 4 is a schematic diagram of the inching mode and self-mode-locking mode triggering in an embodiment of the present invention.
By adopting the scheme of the embodiment, each mechanical key just corresponds to the touch interval on the liquid crystal screen, the touch area corresponding to the mechanical key is touched lightly, the icon on the touch area is switched between self-locking effect and non-self-locking effect, and more complicated setting is not needed. In order to have better key experience, the mechanical key is provided with an indicator light for indicating the key triggering state, and when the mechanical key is triggered, the system controls the indicator light to light up. In the self-locking working mode, the mechanical key is pressed, the indicator light is turned on, and the indicator light is turned off after the mechanical key is pressed again; in the non-self-locking mode, the indicator light is turned on when a mechanical key is pressed, and the indicator light is turned off when the hand is released.
Every mechanical button all has the button mode setting area corresponding with it, and button mode setting area is tangible LCD screen, and mechanical button overall arrangement is pressed close to in the setting area, produces the associativity more easily, and the degree of discernment is high, operates rapidly. The mechanical key is provided with an indicator light for indicating the trigger state of the key, so that the trigger state of the mechanical key is easy to identify.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus necessary general mechanical equipment, and certainly can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solution of the present invention or portions thereof contributing to the prior art may be embodied in the form of software controlled mechanical device, the software being stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and including instructions for causing a mechanical device (cloud service device, etc.) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a switching device of key modes is further provided for implementing the above embodiments and preferred embodiments, which have already been described and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a switching device of a key mode according to an embodiment of the present invention, as shown in fig. 5, the device includes: a first detection module 50, a reading module 52, a first switching module 54, wherein,
the first detection module 50 is used for detecting a setting instruction aiming at a target physical key on a display interface of the special effect equipment controller;
a reading module 52, configured to read a current working mode of the target physical key in response to the setting instruction, where the current working mode includes a self-locking mode and a jog mode;
a first switching module 54, configured to switch the current working mode of the target physical key to a jog mode if the current working mode of the target physical key is the self-locking mode; and/or if the current working mode of the physical key is the inching mode, switching the current working mode of the physical key into the self-locking mode.
Optionally, the first detecting module includes: the first detection unit is used for detecting a setting instruction on a display interface of the special effect equipment controller; the positioning unit is used for positioning an instruction input area of the setting instruction on the display interface; the association unit is used for searching a target physical key matched with the instruction input area and associating the target physical key as a setting object of the setting instruction; the display interface comprises a plurality of instruction input areas, and each instruction input area corresponds to one physical key of the special effect equipment controller.
Optionally, the first detecting module includes: the second detection unit is used for detecting touch operation aiming at the target physical key on a display interface of the special effect equipment controller; the identification unit is used for identifying the operation type of the touch operation; and the generating unit is used for triggering and generating the setting instruction based on the touch operation if the operation type is single-point touch.
Optionally, the apparatus further comprises: the second switching module is used for switching the first identification information displayed on the display interface into second identification information after the first switching module switches the current working mode of the target physical key into the jog mode; and/or after the first switching module switches the current working mode of the physical key to the self-locking mode, switching second identification information displayed on the display interface to first identification information; the first identification information is used for identifying that the current working mode of the target physical key is the self-locking mode, and the second identification information is used for identifying that the current working mode of the target physical key is the inching mode.
Optionally, the apparatus further comprises: the second detection module is used for detecting the physical state of the target physical key after the first switching module switches the current working mode of the target physical key into the inching mode, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is turned on when the target physical key is switched on, and the state indicator lamp is turned off when the target physical key is switched off; the first control module is used for controlling the state indicator lamp to be lightened if the physical state is a pressing state; and if the physical state is the bouncing state, controlling the state indicator lamp to be extinguished.
Optionally, the apparatus further comprises: the monitoring module is used for monitoring the trigger operation aiming at the target physical key after the current working mode of the physical key is switched to the self-locking mode by the first switching module, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is lightened when the target physical key is switched on, and the state indicator lamp is extinguished when the target physical key is switched off; the judging module is used for judging the current working state of the state indicator lamp if the triggering operation aiming at the target physical key is monitored; the second control module is used for controlling the state indicator lamp to be lightened if the current working state is an off state; and if the current working state is a lighting state, controlling the state indicator lamp to be turned off.
Optionally, the apparatus further comprises: the first trigger module is used for switching the current working mode of the target physical key into a jog mode if the current working mode of the target physical key is the self-locking mode in the first switching module; and/or after the current working mode of the physical key is switched to the self-locking mode if the current working mode of the physical key is the inching mode, detecting continuous pressing operation aiming at the target physical key if the current working mode of the target physical key is the inching mode, and controlling the first effect unit to trigger until the triggering time of the first effect unit is over or the pressing operation is stopped; the second trigger module is used for switching the current working mode of the target physical key into a jog mode if the current working mode of the target physical key is the self-locking mode in the first switching module; and/or, if the current working mode of the physical key is a jog mode, after the current working mode of the physical key is switched to a self-locking mode, if the current working mode of the target physical key is the self-locking mode, detecting a single pressing operation aiming at the target physical key, and controlling a second effect unit to trigger until the triggering time of the second effect unit is over or detecting the single pressing operation aiming at the target physical key again; the first effect unit is configured to control a first special effect device set, and the second effect unit is configured to control a second special effect device set.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, detecting a setting instruction aiming at the target physical key on a display interface of the special effect equipment controller;
s2, responding to the setting instruction, reading the current working mode of the target physical key, wherein the current working mode comprises a self-locking mode and a jog mode;
s3, if the current working mode of the target physical key is the self-locking mode, switching the current working mode of the target physical key to the inching mode; and/or if the current working mode of the physical key is the inching mode, switching the current working mode of the physical key into the self-locking mode.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, detecting a setting instruction aiming at the target physical key on a display interface of the special effect equipment controller;
s2, responding to the setting instruction, reading the current working mode of the target physical key, wherein the current working mode comprises a self-locking mode and a jog mode;
s3, if the current working mode of the target physical key is the self-locking mode, switching the current working mode of the target physical key to the inching mode; and/or if the current working mode of the physical key is the inching mode, switching the current working mode of the physical key into the self-locking mode.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (12)

1. A method for switching a key mode is characterized by comprising the following steps:
detecting a setting instruction aiming at a target physical key on a display interface of a special effect equipment controller;
responding to the setting instruction, and reading the current working mode of the target physical key, wherein the current working mode comprises a self-locking mode and a jog mode;
if the current working mode of the target physical key is the self-locking mode, switching the current working mode of the target physical key into the inching mode; and/or if the current working mode of the physical key is the inching mode, switching the current working mode of the physical key into the self-locking mode.
2. The method of claim 1, wherein detecting a setting instruction for the target physical key on a display interface of a special effects device controller comprises:
detecting a setting instruction on a display interface of a special effect equipment controller;
positioning an instruction input area of the setting instruction on the display interface;
searching a target physical key matched with the instruction input area, and associating the target physical key as a setting object of the setting instruction;
the display interface comprises a plurality of instruction input areas, and each instruction input area corresponds to one physical key of the special effect equipment controller.
3. The method of claim 1, wherein detecting a setting instruction for the target physical key on a display interface of a special effects device controller comprises:
detecting touch operation aiming at a target physical key on a display interface of a special effect equipment controller;
identifying the operation type of the touch operation;
and if the operation type is single-point touch, triggering and generating the setting instruction based on the touch operation.
4. A method according to claim 1,
after switching the current operation mode of the target physical key to the jog mode, the method further comprises: switching the first identification information displayed on the display interface into second identification information; and/or the presence of a gas in the gas,
after switching the current working mode of the physical key to the self-locking mode, the method further comprises: switching the second identification information displayed on the display interface into the first identification information;
the first identification information is used for identifying that the current working mode of the target physical key is the self-locking mode, and the second identification information is used for identifying that the current working mode of the target physical key is the inching mode.
5. The method of claim 1, wherein after switching the current operating mode of the target physical key to jog mode, the method further comprises:
detecting the physical state of the target physical key, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is turned on when the target physical key is switched on, and the state indicator lamp is turned off when the target physical key is switched off;
if the physical state is a pressing state, controlling the state indicator lamp to be lightened; and if the physical state is the bouncing state, controlling the state indicator lamp to be extinguished.
6. The method of claim 1, wherein after switching the current operating mode of the physical key to the lock-free mode, the method further comprises:
monitoring a trigger operation aiming at the target physical key, wherein a state indicator lamp is arranged on the target physical key, the state indicator lamp is lightened when the target physical key is switched on, and the state indicator lamp is extinguished when the target physical key is switched off;
if the triggering operation aiming at the target physical key is monitored, judging the current working state of the state indicator lamp;
if the current working state is an off state, controlling the state indicator lamp to be lightened; and if the current working state is a lighting state, controlling the state indicator lamp to be turned off.
7. The method of claim 1, wherein if the current operating mode of the target physical key is the self-locking mode, the current operating mode of the target physical key is switched to the jog mode; and/or, if the current working mode of the physical key is the jog mode, after the current working mode of the physical key is switched to the self-locking mode, the method further comprises:
if the current working mode of the target physical key is a jog mode, detecting continuous pressing operation aiming at the target physical key, and controlling a first effect unit to trigger until the triggering time of the first effect unit is over or the pressing operation is stopped;
if the current working mode of the target physical key is the self-locking mode, detecting single pressing operation aiming at the target physical key, and controlling a second effect unit to trigger until the triggering time of the second effect unit is finished or detecting the single pressing operation aiming at the target physical key again;
the first effect unit is configured to control a first special effect device set, and the second effect unit is configured to control a second special effect device set.
8. A key mode switching device, comprising:
the first detection module is used for detecting a setting instruction aiming at a target physical key on a display interface of the special effect equipment controller;
the reading module is used for responding to the setting instruction and reading the current working mode of the target physical key, wherein the current working mode comprises a self-locking mode and a jog mode;
the first switching module is used for switching the current working mode of the target physical key into a jog mode if the current working mode of the target physical key is a self-locking mode; and/or if the current working mode of the physical key is the inching mode, switching the current working mode of the physical key into the self-locking mode.
9. The apparatus of claim 8, wherein the first detection module comprises:
the first detection unit is used for detecting a setting instruction on a display interface of the special effect equipment controller;
the positioning unit is used for positioning an instruction input area of the setting instruction on the display interface;
the association unit is used for searching a target physical key matched with the instruction input area and associating the target physical key as a setting object of the setting instruction; the display interface comprises a plurality of instruction input areas, and each instruction input area corresponds to one physical key of the special effect equipment controller.
10. The apparatus of claim 8, wherein the first detection module comprises:
the second detection unit is used for detecting touch operation aiming at the target physical key on a display interface of the special effect equipment controller;
the identification unit is used for identifying the operation type of the touch operation;
and the generating unit is used for triggering and generating the setting instruction based on the touch operation if the operation type is single-point touch.
11. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is operative to perform the method steps of any of the preceding claims 1 to 7.
12. An electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method steps of any of claims 1 to 7 by executing a program stored on a memory.
CN202210430833.6A 2022-04-22 2022-04-22 Key mode switching method and device, storage medium and electronic equipment Active CN114879876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210430833.6A CN114879876B (en) 2022-04-22 2022-04-22 Key mode switching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210430833.6A CN114879876B (en) 2022-04-22 2022-04-22 Key mode switching method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114879876A true CN114879876A (en) 2022-08-09
CN114879876B CN114879876B (en) 2024-03-12

Family

ID=82672134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210430833.6A Active CN114879876B (en) 2022-04-22 2022-04-22 Key mode switching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114879876B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713804A (en) * 2013-12-05 2014-04-09 小米科技有限责任公司 Equipment control method and device and electronic equipment
CN105472111A (en) * 2014-09-03 2016-04-06 中兴通讯股份有限公司 Touch screen terminal key function switching method and apparatus
CN105867926A (en) * 2016-03-30 2016-08-17 深圳市宝尔爱迪科技有限公司 Method and device for physical key function user defining
CN106161995A (en) * 2016-08-30 2016-11-23 厦门视诚科技有限公司 The specially good effect switching device of Table top type Video processing control platform and specially good effect changing method
CN107193553A (en) * 2017-04-27 2017-09-22 北京小米移动软件有限公司 Key control method and device
CN110580123A (en) * 2019-09-12 2019-12-17 北京三一智造科技有限公司 handle key function setting method, device and system and storage medium
CN112015101A (en) * 2020-08-14 2020-12-01 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, intelligent control switch and storage medium
CN112090075A (en) * 2020-09-23 2020-12-18 努比亚技术有限公司 Game control method, mobile terminal and computer-readable storage medium
CN113268178A (en) * 2021-04-09 2021-08-17 青岛海尔洗衣机有限公司 Equipment display control method, device and medium
WO2022037255A1 (en) * 2020-08-18 2022-02-24 普源精电科技股份有限公司 Information processing method and apparatus, and multi-functional device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713804A (en) * 2013-12-05 2014-04-09 小米科技有限责任公司 Equipment control method and device and electronic equipment
CN105472111A (en) * 2014-09-03 2016-04-06 中兴通讯股份有限公司 Touch screen terminal key function switching method and apparatus
CN105867926A (en) * 2016-03-30 2016-08-17 深圳市宝尔爱迪科技有限公司 Method and device for physical key function user defining
CN106161995A (en) * 2016-08-30 2016-11-23 厦门视诚科技有限公司 The specially good effect switching device of Table top type Video processing control platform and specially good effect changing method
CN107193553A (en) * 2017-04-27 2017-09-22 北京小米移动软件有限公司 Key control method and device
CN110580123A (en) * 2019-09-12 2019-12-17 北京三一智造科技有限公司 handle key function setting method, device and system and storage medium
CN112015101A (en) * 2020-08-14 2020-12-01 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, intelligent control switch and storage medium
WO2022037255A1 (en) * 2020-08-18 2022-02-24 普源精电科技股份有限公司 Information processing method and apparatus, and multi-functional device
CN112090075A (en) * 2020-09-23 2020-12-18 努比亚技术有限公司 Game control method, mobile terminal and computer-readable storage medium
CN113268178A (en) * 2021-04-09 2021-08-17 青岛海尔洗衣机有限公司 Equipment display control method, device and medium

Also Published As

Publication number Publication date
CN114879876B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN105245954B (en) Smart television starting method and smart television starting device
CN101311981B (en) Remote controller multi-user mode setting method and system
CN108833222B (en) Household appliance control method, household appliance control device, remote controller, terminal, server and medium
CN104950716B (en) A kind of apparatus control method and device
CN105204730A (en) Screen control method and user terminal
CN105072258A (en) Mobile terminal profile switching method, apparatus, and mobile terminal
US20140092035A1 (en) System and method for controlling device switching on/off, and mobile communication device therefor
KR20230038430A (en) Interaction method, storage medium, and electronic device for building interlocking scenarios of devices
CN105786340A (en) Terminal screen display method and apparatus
CN104572215A (en) Method and device for controlling startup and shutdown of intelligent terminal
US11585550B2 (en) Control method and control device for air conditioner
CN111708471A (en) Control processing method and related device
CN104506732B (en) System switching method and device based on contact person
CN111586952A (en) Switch control method, device, processor and intelligent switch equipment
CN105959765B (en) A kind of terminal starting control method, device and set-top box based on IR remote controller
CN109974233B (en) Control method, control device, air conditioner system and storage medium
CN109974232B (en) Rapid control method and terminal of air conditioner system, air conditioner system and medium
CN103226458A (en) Multi-screen display control method for intelligent mobile equipment
CN103916545A (en) Status switching method and electronic device
CN114879876B (en) Key mode switching method and device, storage medium and electronic equipment
CN108132074A (en) Entropy detection test timing device, method, storage medium and entropy detection test station
CN106406109B (en) Household electrical appliance and its match network method and network distribution device
CN113703351A (en) Equipment control method, device and system
CN108592355B (en) Control box and air conditioning system
CN115325596B (en) Multi-split control method and device and multi-split

Legal Events

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