CN113434066A - Input device indication icon implementation method and device, equipment and storage medium - Google Patents

Input device indication icon implementation method and device, equipment and storage medium Download PDF

Info

Publication number
CN113434066A
CN113434066A CN202110819740.8A CN202110819740A CN113434066A CN 113434066 A CN113434066 A CN 113434066A CN 202110819740 A CN202110819740 A CN 202110819740A CN 113434066 A CN113434066 A CN 113434066A
Authority
CN
China
Prior art keywords
data
mouse
input
trigger
keyboard
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.)
Pending
Application number
CN202110819740.8A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110819740.8A priority Critical patent/CN113434066A/en
Publication of CN113434066A publication Critical patent/CN113434066A/en
Pending legal-status Critical Current

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/04817Interaction 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 using icons
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04105Pressure sensors for measuring the pressure or force exerted on the touch surface without providing the touch position

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an input device indication icon realization method, which is used for indicating the operation of a mouse and/or a keyboard in an icon mode; the method comprises the following steps: acquiring trigger data of a trigger switch and first coded data of input equipment; wherein the trigger data comprises a pressure value and switch information data; decoding the first coded data through a preset decoding rule to obtain first input data; and outputting an indication icon according to the first input data and the trigger data and a preset display rule. The method realizes the indication icon of the input equipment, thereby displaying the input operation in a visual mode and further detecting whether the clicked key is correct when the input equipment is recorded.

Description

Input device indication icon implementation method and device, equipment and storage medium
Technical Field
The application relates to the technical field of computer input equipment, in particular to a method, a device, equipment and a storage medium for realizing an indication icon of input equipment.
Background
With the development of computer technology, an input device (InputDevice) is used as a means for a person or an external device to interact with a computer to input raw data and a program for processing the data into the computer.
The computer can receive various data, such as numerical data or non-numerical data, and the data can be input into the computer through different types of input devices for storage, processing and output.
The keyboard and the mouse are used as common and common input equipment and are indispensable equipment of a computer, and as the mouse and the keyboard with the highest use frequency, only a cursor of the mouse can be seen in use; the operation of the keyboard and mouse cannot be displayed in the form of icons.
Disclosure of Invention
In view of the above, the present application is proposed to provide an input device indication icon implementation method and apparatus, a device and a storage medium that overcome or at least partially solve the above problems. The method and the device do not solve the problem that the operation of displaying the mouse and the keyboard in an icon mode can be realized without opening auxiliary software in the system, and simultaneously, whether the keyboard and the mouse have key faults or not can also be detected, and the method and the device can also be used for similar input equipment.
An input device indication icon implementation method is used for indicating operation of a mouse and/or a keyboard in an icon mode;
the method comprises the following steps:
acquiring trigger data of a trigger switch and first input data of input equipment; wherein the trigger data comprises a pressure value and switch information data; the input device comprises a mouse and/or a keyboard;
calculating absolute coordinates of the mouse according to the first input data based on a global mouse interface function in the system;
associating the absolute coordinates with a cursor display position of the mouse to obtain associated data;
generating a calling parameter according to the triggering data, the associated data and the first input data;
and calling a preset icon according to the calling parameter, outputting the indication icon at the cursor position, and specifically, displaying the indication icon corresponding to a mouse button and/or a mouse moving direction or the indication icon corresponding to a keyboard button in a manner of following the cursor position.
Further, the step of acquiring the trigger data of the trigger switch and the first input data of the input device includes:
acquiring trigger data of a trigger switch and first coded data of input equipment;
and decoding the first coded data through a preset decoding rule to obtain first input data.
Further, the first coded data comprises mouse coded data and keyboard coded data;
the step of acquiring the trigger data of the trigger switch and the first coded data of the input device comprises the following steps:
the trigger switch and the input device are connected in a USB master control interface or a Bluetooth or 2.4G wireless mode;
receiving the trigger data through a self-defined USB-HID channel;
receiving the first encoded data over a standard USB-HID channel.
Further, the step of receiving the trigger data through self-defining a USB-HID channel includes:
enumerating the USB port to obtain an enumeration result containing an idle USB port;
determining a custom USB-HID channel for receiving the acquired trigger data according to the enumeration result;
and receiving the trigger data through the custom USB-HID channel.
Further, the step of decoding the first encoded data by a preset decoding rule to obtain first input data includes:
decoding the first coded data according to a decoding rule preset in an operating system to obtain first input data; wherein the first input data comprises mouse input data and keyboard input data; the mouse input data comprises mouse button function data and mouse displacement data; the keyboard input data includes keyboard key function mapping data and character mapping data.
Further, the step of decoding the first encoded data according to a decoding rule preset in the operating system to obtain the first input data includes:
decoding the first encoded data according to preset code value data, specifically, decoding the mouse encoded data and the keyboard encoded data according to a mouse and keyboard key comparison table preset in an operating system to obtain first input data; the code value data is preset in a comparison table of mouse and keyboard keys in an operating system; the code value data includes scan codes and ASCII codes.
Further, the step of calling a preset icon according to the calling parameter and a preset display rule, and outputting the indication icon at the cursor position includes:
and calling the indication icon which corresponds to the mouse function key and the keyboard key and is preset in the icon library according to the calling parameter, and correspondingly displaying and outputting the indication icon according to the mouse key and the moving mode which are knocked when the mouse is operated and the key which is knocked when the keyboard is operated.
An input device indication icon implementing apparatus for indicating operation of a mouse and/or a keyboard in the form of an icon;
the device comprises:
the data receiving unit is used for acquiring trigger data of the trigger switch and first input data of the input equipment; wherein the trigger data comprises a pressure value and switch information data; the input device comprises a mouse and/or a keyboard;
the processing unit is used for processing the trigger data and the first input data received by the data receiving unit;
and the display unit is used for outputting an indication icon according to the first input data and the trigger data processed by the processing unit and a preset display rule.
An input device indication icon implementing device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program when executed by the processor implementing the steps of the input device indication icon implementing method as described above.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of an input device indication icon implementation method as described above.
The application has the following advantages:
in the embodiment of the application, the method is realized by indicating the icon through the input device, and the method is used for indicating the operation of a mouse and/or a keyboard in the mode of the icon; the method comprises the following steps: synchronously acquiring trigger data of a trigger switch and first coded data of input equipment; wherein the trigger data comprises a pressure value and switch information data; decoding the first coded data through a preset decoding rule to obtain first input data; and outputting an indication icon according to the first input data and the trigger data and a preset display rule. The method realizes the indication icon of the input equipment, thereby displaying the input operation in a visual mode and further detecting whether the clicked key is correct when the input equipment is recorded.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the present application will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive labor.
FIG. 1 is a flowchart illustrating steps of a method for implementing an input device indication icon according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an input device indication icon implementing apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description. It is to be understood that the embodiments described are only a few embodiments of the present application and 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, in any embodiment of the present application, the input device includes a mouse and a keyboard, and the trigger switch is a capacitive pressure device; the input signals of the keyboard and the mouse are matched with the trigger signals by combining the trigger switch with the input equipment, and the indication icons are displayed according to the preset rules.
Referring to fig. 1, an input device indication icon implementation method provided by an embodiment of the present application is illustrated, and the method is used for indicating operations of a mouse and/or a keyboard in an icon manner;
the method comprises the following steps:
s100, acquiring trigger data of a trigger switch and first input data of input equipment; wherein the trigger data comprises a pressure value and switch information data; the input device comprises a mouse and/or a keyboard;
s200, outputting an indication icon according to the first input data and the trigger data and a preset display rule; specifically, based on a global mouse interface function in the system, calculating the absolute coordinates of the mouse according to the first input data; associating the absolute coordinates with a cursor display position of the mouse to obtain associated data; generating a calling parameter according to the triggering data, the associated data and the first input data; and calling a preset icon according to the calling parameter, outputting the indication icon at the cursor position, and specifically, displaying the indication icon corresponding to a mouse button and/or a mouse moving direction or the indication icon corresponding to a keyboard button in a manner of following the cursor position.
In the embodiment of the application, the method is realized by indicating the icon through the input device, and the method is used for indicating the operation of a mouse and/or a keyboard in the mode of the icon; the method comprises the following steps: synchronously acquiring trigger data of a trigger switch and first coded data of input equipment; wherein the trigger data comprises a pressure value and switch information data; decoding the first coded data through a preset decoding rule to obtain first input data; and outputting an indication icon according to the first input data and the trigger data and a preset display rule. The method realizes the indication icon of the input equipment, thereby displaying the input operation in a visual mode and further detecting whether the clicked key is correct when the input equipment is recorded.
Next, a method of implementing the input device indication icon in the present exemplary embodiment will be further described.
Trigger data of the trigger switch and first input data of the input device are acquired as described in step S100.
In an embodiment of the present application, a specific process of "acquiring the trigger data of the trigger switch and the first input data of the input device" in step S100 may be further described in conjunction with the following description.
Connecting the trigger switch and the input device in a USB master control interface or a Bluetooth or 2.4G wireless mode;
receiving the trigger data through a self-defined USB-HID channel as described in the following steps; receiving the first encoded data over a standard USB-HID channel.
As an example, the trigger switch and the input device are connected in a USB master control interface or a bluetooth or 2.4G wireless manner; receiving the trigger data through a self-defined USB-HID channel; receiving the first encoded data over a standard USB-HID channel; specifically, a mouse/keyboard and a capacitive pressure device are wirelessly connected through a USB master control interface or Bluetooth or 2.4G; the output pressure value or the switch data information of the capacitive pressure device is wirelessly transmitted to the terminal through a USB main control interface or Bluetooth or 2.4G. For example, a keyboard and a mouse are connected through a computer through Bluetooth and a trigger switch is triggered.
The step of receiving the trigger data through a self-defined USB-HID channel comprises: enumerating the USB port to obtain an enumeration result containing an idle USB port; determining a custom USB-HID channel for receiving the acquired trigger data according to the enumeration result; and receiving the trigger data through the custom USB-HID channel.
Acquiring trigger data of a trigger switch and first input data of an input device as described in the step S200; wherein the trigger data comprises a pressure value and switch information data; the input device includes a mouse and/or a keyboard.
In an embodiment of the present application, a specific process of "outputting an indication icon according to a preset display rule according to the first input data and the trigger data" in step S200 may be further described with reference to the following description.
Calculating absolute coordinates of the mouse according to the first input data based on a global mouse interface function in the system; associating the absolute coordinates with a cursor display position of the mouse to obtain associated data; generating a calling parameter according to the triggering data, the associated data and the first input data; and calling a preset icon according to the calling parameter, outputting the indication icon at the cursor position, and specifically, displaying the indication icon corresponding to a mouse button and/or a mouse moving direction or the indication icon corresponding to a keyboard button in a manner of following the cursor position.
As an example, calculating absolute coordinates of the mouse according to the first input data based on a global mouse interface function in the system as described in the following steps; associating the absolute coordinates with a cursor display position of the mouse to obtain associated data; generating a calling parameter according to the triggering data, the associated data and the first input data; and calling a preset icon according to the calling parameter and a preset display rule, and outputting the indication icon at the cursor position.
It should be noted that, in the manner of following the cursor position, the indication icon corresponding to the mouse button and/or the mouse moving direction or the indication icon corresponding to the keyboard button is displayed on any display interface of the system, such as an interface of an operating system, for example, in text input, letters capable of being input by a keyboard are displayed, but only displayed in a text input interface and limited by the input interface, and the process is actually input by the keyboard and then output to a text; in the application, the corresponding indication icon is displayed while inputting, and can be used for indicating the knocked key.
In an embodiment of the present application, the step of acquiring the trigger data of the trigger switch and the first input data of the input device includes: acquiring trigger data of a trigger switch and first coded data of input equipment; and decoding the first coded data through a preset decoding rule to obtain first input data.
Decoding the first coded data according to a decoding rule preset in an operating system to obtain first input data; wherein the first input data comprises mouse input data and keyboard input data; the mouse input data comprises mouse button function data and mouse displacement data; the keyboard input data includes keyboard key function mapping data and character mapping data.
It should be noted that the keyboard, the mouse, and the system standard input device are all preset with internal encoding and touch rules in the operating systems of various terminal platforms, and the keyboard, the mouse, and the system standard input device need to be encoded before inputting information to the terminal device, and then decoded in the terminal device to obtain the input information, for example, ASCII encoding of keyboards a to Z (capital letters) in a PC, and the decimal encoding value is 65 to 90.
Decoding the first coded data according to a decoding rule preset in an operating system to obtain first input data;
as an example, the step of decoding the first encoded data according to a decoding rule preset inside an operating system to obtain first input data includes: decoding the first encoded data according to preset code value data, specifically, decoding the mouse encoded data and the keyboard encoded data according to a mouse and keyboard key comparison table preset in an operating system to obtain first input data; the code value data is preset in a comparison table of mouse and keyboard keys in an operating system; the code value data includes scan codes and ASCII codes.
In an embodiment of the present application, a specific process of "outputting an indication icon according to a preset display rule according to the first input data and the trigger data" in step S200 may be further described with reference to the following description.
Calculating the absolute coordinates of the mouse according to the first input data based on a global mouse interface function in the system; associating the absolute coordinates with a cursor display position of the mouse to obtain associated data; generating a calling parameter according to the triggering data, the associated data and the first input data; and calling a preset icon according to the calling parameter and a preset display rule, and outputting the indication icon at the cursor position.
As an example, based on a global mouse interface function in the system, the absolute coordinates of the mouse are calculated according to the first input data, for example, under a Windows operating system platform, the coordinates of the mouse are obtained by calling the global mouse coordinate interface provided by the operating system in real time, specifically, the absolute coordinates of the mouse are obtained and calculated by calling a GetCursorPos () function or the absolute coordinates of the mouse are obtained and calculated by calling a DirectInput () corresponding function; associating the absolute coordinates with a cursor display position of the mouse to obtain associated data; generating a calling parameter according to the triggering data, the associated data and the first input data; calling a preset icon according to the calling parameter and a preset display rule, and outputting the indication icon at the cursor position; for example, when "H" is input by the keyboard, an icon representing "H" is shown at the cursor position, and if not, or if there is a display error, it is possible to perform the operation similar to the keyboard by checking whether the keyboard is input or whether there is a failure in the keyboard, and when a mouse key is clicked or the mouse is moved, it is shown in the form of an icon; the icon is not displayed when the key of the keyboard or the mouse button is flipped up, or the time of display is set (e.g., 0.1 second).
The step of calling a preset icon according to the calling parameter and a preset display rule and outputting the indication icon at the cursor position comprises the following steps: calling the indication icons corresponding to the mouse function keys and the keyboard keys and preset in an icon library according to the calling parameters, and correspondingly displaying and outputting the indication icons according to the mouse keys and the moving mode which are knocked when the mouse is operated and the key keys which are knocked when the keyboard is operated; for example, when the cursor at the current coordinate position moves, a picture preset in the gallery is called in real time and displayed, specifically, in an illustrative manner, when the cursor moves, a corresponding movement track pattern is output in real time, and the pattern style, size, color and transparency are set to show different display effects.
The method has the advantages that the method can independently display the icons aiming at the operation of the mouse or the keyboard, and can be used for detecting whether the mouse and the keyboard have faults or not.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Referring to fig. 2, an input device indication icon provided by an embodiment of the present application is illustrated; the device is used for indicating the operation of a mouse and/or a keyboard in an icon mode;
the method specifically comprises the following steps:
a data receiving unit 100 for acquiring trigger data of the trigger switch and first input data of the input device; wherein the trigger data comprises a pressure value and switch information data; the input device comprises a mouse and/or a keyboard;
a processing unit 200 for processing the trigger data and the first input data received by the data receiving unit;
a display unit 300, configured to output an indication icon according to a preset display rule according to the first input data and the trigger data processed by the processing unit.
In an embodiment of the present application, the data receiving unit 100 includes: the USB master control port, the Bluetooth port and the 2.4G wireless port; the USB master control port, the Bluetooth port and the 2.4G wireless port are in signal connection with a system bus; the USB master control interface or the Bluetooth port or the 2.4G wireless port is electrically connected with the trigger switch and the input equipment; the input device comprises a mouse and a keyboard;
the system bus comprises a standard USB-HID channel and a custom HID channel; for receiving the trigger data over a self-defined USB-HID channel; and receiving the first encoded data over a standard USB-HID channel; the system bus is connected to the decoding unit by signals.
In an embodiment of the present application, the system bus is further signal-connected to a channel processing module;
the channel processing module is used for enumerating the USB ports to obtain an enumeration result containing idle USB ports; determining a custom USB-HID channel for receiving the acquired trigger data according to the enumeration result; and receiving the trigger data through the custom USB-HID channel.
In an embodiment of the present application, the method further includes: the decoding module is used for decoding the first coded data according to a decoding rule preset in the operating system to obtain first input data; wherein the first input data comprises mouse input data and keyboard input data; the mouse input data comprises mouse button function data and mouse displacement data; the keyboard input data includes keyboard key function mapping data and character mapping data.
In an embodiment of the present application, the decoding module includes: the mouse and keyboard decoding submodule is used for decoding the first coded data according to preset code value data, and specifically, decoding the mouse coded data and the keyboard coded data according to a mouse and keyboard key comparison table preset in an operating system to obtain first input data; the code value data is preset in a comparison table of mouse and keyboard keys in an operating system; the code value data includes scan codes and ASCII codes.
In an embodiment of the present application, the processing unit 200 includes: the coordinate calculation module is used for calculating the absolute coordinates of the mouse according to the first input data based on a global mouse interface function in the system;
the data association module is used for associating the absolute coordinates with a cursor display position of the mouse to obtain associated data;
the parameter generation module is used for generating a calling parameter according to the trigger data, the associated data and the first input data;
and the data output module is used for calling a preset icon according to the calling parameter and a preset display rule and outputting the indication icon at the cursor position.
In an embodiment of the present application, the data output module is in signal connection with the display unit 300, and is configured to call the indication icon preset in the icon library corresponding to the mouse function key and the keyboard key according to the call parameter, and correspondingly display and output the indication icon according to the mouse key and the moving mode clicked when the mouse is operated and the key clicked when the keyboard is operated.
Referring to fig. 3, a computer device for implementing an input device indication icon according to the present application is shown, which may specifically include the following:
the computer device 12 described above is embodied in the form of a general purpose computing device, and the components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples various system components including the memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus 18 structures, including a memory bus 18 or memory controller, a peripheral bus 18, an accelerated graphics port, and a processor or local bus 18 using any of a variety of bus 18 architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus 18, micro-channel architecture (MAC) bus 18, enhanced ISA bus 18, audio Video Electronics Standards Association (VESA) local bus 18, and Peripheral Component Interconnect (PCI) bus 18.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory 30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (commonly referred to as "hard drives"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 42, with the program modules 42 configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules 42, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, camera, etc.), with one or more devices that enable an operator to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through the I/O interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN)), a Wide Area Network (WAN), and/or a public network (e.g., the Internet) via network adapter 20. As shown in FIG. 3, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units 16, external disk drive arrays, RAID systems, tape drives, and data backup storage systems 34, etc.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the memory 28, for example, implementing an input device indication icon implementation method provided in the embodiments of the present application.
That is, the processing unit 16 implements, when executing the program,: synchronously acquiring trigger data of a trigger switch and first coded data of input equipment; wherein the trigger data comprises a pressure value and switch information data; decoding the first coded data through a preset decoding rule to obtain first input data; and outputting an indication icon according to the first input data and the trigger data and a preset display rule.
In an embodiment of the present application, there is also provided a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements an input device indication icon implementing method as provided in all embodiments of the present application.
That is, the program when executed by the processor implements: synchronously acquiring trigger data of a trigger switch and first coded data of input equipment; wherein the trigger data comprises a pressure value and switch information data; decoding the first coded data through a preset decoding rule to obtain first input data; and outputting an indication icon according to the first input data and the trigger data and a preset display rule.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an input execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an input execution system, apparatus, or device.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the operator's computer, partly on the operator's computer, as a stand-alone software package, partly on the operator's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the operator's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, the apparatus, the device and the storage medium for implementing the indication icon of the input device provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An input device indication icon realization method is characterized in that the method is used for indicating the operation of a mouse and/or a keyboard in an icon mode;
the method comprises the following steps:
acquiring trigger data of a trigger switch and first input data of input equipment; wherein the trigger data comprises a pressure value and switch information data; the input device comprises a mouse and/or a keyboard;
calculating absolute coordinates of the mouse according to the first input data based on a global mouse interface function in the system;
associating the absolute coordinates with a cursor display position of the mouse to obtain associated data;
generating a calling parameter according to the triggering data, the associated data and the first input data;
and calling a preset icon according to the calling parameter, outputting the indication icon at the cursor position, and specifically, displaying the indication icon corresponding to a mouse button and/or a mouse moving direction or the indication icon corresponding to a keyboard button in a manner of following the cursor position.
2. The method of claim 1, wherein the step of obtaining trigger data for the trigger switch and first input data for the input device comprises:
acquiring trigger data of a trigger switch and first coded data of input equipment;
and decoding the first coded data through a preset decoding rule to obtain first input data.
3. The method of claim 2, wherein the first encoded data includes mouse encoded data and keyboard encoded data;
the step of acquiring the trigger data of the trigger switch and the first coded data of the input device comprises the following steps:
the trigger switch and the input device are connected in a USB master control interface or a Bluetooth or 2.4G wireless mode;
receiving the trigger data through a self-defined USB-HID channel;
receiving the first encoded data over a standard USB-HID channel.
4. The method of claim 3, wherein the step of receiving the trigger data over a self-defined USB-HID channel comprises:
enumerating the USB port to obtain an enumeration result containing an idle USB port;
determining a custom USB-HID channel for receiving the acquired trigger data according to the enumeration result;
and receiving the trigger data through the custom USB-HID channel.
5. The method according to claim 2, wherein the step of decoding the first encoded data by a preset decoding rule to obtain first input data comprises:
decoding the first coded data according to a decoding rule preset in an operating system to obtain first input data; wherein the first input data comprises mouse input data and keyboard input data; the mouse input data comprises mouse button function data and mouse displacement data; the keyboard input data includes keyboard key function mapping data and character mapping data.
6. The method according to claim 5, wherein the step of decoding the first encoded data according to a decoding rule preset in an operating system to obtain the first input data comprises:
decoding the first encoded data according to preset code value data, specifically, decoding the mouse encoded data and the keyboard encoded data according to a mouse and keyboard key comparison table preset in an operating system to obtain first input data; the code value data is preset in a comparison table of mouse and keyboard keys in an operating system; the code value data includes scan codes and ASCII codes.
7. The method according to claim 1, wherein the step of calling a preset icon according to the calling parameter and a preset display rule and outputting the indication icon at the cursor position comprises:
and calling the indication icon which corresponds to the mouse function key and the keyboard key and is preset in the icon library according to the calling parameter, and correspondingly displaying and outputting the indication icon according to the mouse key and the moving mode which are knocked when the mouse is operated and the key which is knocked when the keyboard is operated.
8. An input device indication icon realization device is characterized in that the device is used for indicating the operation of a mouse and/or a keyboard in an icon mode;
the device comprises:
the data receiving unit is used for acquiring trigger data of the trigger switch and first input data of the input equipment; wherein the trigger data comprises a pressure value and switch information data; the input device comprises a mouse and/or a keyboard;
the processing unit is used for processing the trigger data and the first input data received by the data receiving unit;
and the display unit is used for outputting an indication icon according to the first input data and the trigger data processed by the processing unit and a preset display rule.
9. An input device indication icon implementing device, comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which computer program, when executed by the processor, implements the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110819740.8A 2021-07-20 2021-07-20 Input device indication icon implementation method and device, equipment and storage medium Pending CN113434066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110819740.8A CN113434066A (en) 2021-07-20 2021-07-20 Input device indication icon implementation method and device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110819740.8A CN113434066A (en) 2021-07-20 2021-07-20 Input device indication icon implementation method and device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113434066A true CN113434066A (en) 2021-09-24

Family

ID=77761134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110819740.8A Pending CN113434066A (en) 2021-07-20 2021-07-20 Input device indication icon implementation method and device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113434066A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073375A (en) * 2009-11-24 2011-05-25 联想(北京)有限公司 Portable terminal and display output method thereof
CN102955650A (en) * 2011-08-25 2013-03-06 幻音科技(深圳)有限公司 Cursor gesture input method and device
CN103813209A (en) * 2012-11-02 2014-05-21 三星电子株式会社 Display apparatus and control method for displaying an operational state of a user's input
CN105353883A (en) * 2015-12-08 2016-02-24 清华大学 Man-machine interaction method, man-machine interaction system and calculating apparatus
CN108415562A (en) * 2018-02-12 2018-08-17 四川斐讯信息技术有限公司 A kind of cursor control method and cursor control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073375A (en) * 2009-11-24 2011-05-25 联想(北京)有限公司 Portable terminal and display output method thereof
CN102955650A (en) * 2011-08-25 2013-03-06 幻音科技(深圳)有限公司 Cursor gesture input method and device
CN103813209A (en) * 2012-11-02 2014-05-21 三星电子株式会社 Display apparatus and control method for displaying an operational state of a user's input
CN105353883A (en) * 2015-12-08 2016-02-24 清华大学 Man-machine interaction method, man-machine interaction system and calculating apparatus
CN108415562A (en) * 2018-02-12 2018-08-17 四川斐讯信息技术有限公司 A kind of cursor control method and cursor control system

Similar Documents

Publication Publication Date Title
US9547439B2 (en) Dynamically-positioned character string suggestions for gesture typing
TW464800B (en) A method for inputting data to an electronic device, an article comprising a medium for storing instructions, and an image processing system
US8121640B2 (en) Dual module portable devices
KR101494556B1 (en) Methods and apparatus for interacting with an electronic device application by moving an object in the air over an electronic device display
USRE36137E (en) Instruction input system for electronic processor
US8648809B2 (en) Reconfiguration of virtual keyboard
CN108553894B (en) Display control method and device, electronic equipment and storage medium
CN109446832B (en) Screen capturing method and device
US10339833B2 (en) Assistive reading interface
CN111881054B (en) User interface automatic test method, system, equipment and storage medium
CN112650433A (en) Interface screenshot method and device and electronic equipment
CN109656384A (en) Character string input method and device
US3720948A (en) Processing of coordinate values of points entered in a graph board or the like
US20140267046A1 (en) Variable user tactile input device with display feedback system
CN113434066A (en) Input device indication icon implementation method and device, equipment and storage medium
CN115016671A (en) Touch display control device, touch display device, equipment and method
CN114356123A (en) Input device with mouse function and keyboard
CN110209242B (en) Button function binding method, button function calling method, button function binding device, button function calling device and projection control equipment
KR100503056B1 (en) Touch pad processing apparatus, method thereof and touch pad module in computer system
JP6232694B2 (en) Information processing apparatus, control method thereof, and program
CN112181256B (en) Output and input image arrangement method and device
TWI598748B (en) Electronic Device And Method For Correcting Character
CN115035261B (en) Method, device, equipment and medium for generating collision device
CN110659097B (en) Language file processing method, device, equipment and storage medium
CN114241471B (en) Video text recognition method and device, electronic equipment and readable storage medium

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