CN115586838A - Keyboard key execution method - Google Patents

Keyboard key execution method Download PDF

Info

Publication number
CN115586838A
CN115586838A CN202211385026.3A CN202211385026A CN115586838A CN 115586838 A CN115586838 A CN 115586838A CN 202211385026 A CN202211385026 A CN 202211385026A CN 115586838 A CN115586838 A CN 115586838A
Authority
CN
China
Prior art keywords
key
ratio
frequency
main controller
displacement
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
CN202211385026.3A
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.)
Gtech Technology Ltd
Original Assignee
Gtech Technology 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 Gtech Technology Ltd filed Critical Gtech Technology Ltd
Priority to CN202211385026.3A priority Critical patent/CN115586838A/en
Publication of CN115586838A publication Critical patent/CN115586838A/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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • 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/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry

Abstract

The invention aims to provide a keyboard key execution method which is compatible with various application scenes and can achieve convenient control of the automatic repeat rate of keys. According to the invention, the displacement distance d of the key structure is obtained through the key sensor capable of detecting the analog quantity change, and whether the pressing time length t after key conduction is greater than the triggering time length ta is detected, so that the switching between the single conduction mode and the repeated mode is further completed; in the repeated mode, the main controller adjusts the on-off repeated frequency f by detecting the ratio k of the displacement distance d of the key structure to the total displacement stroke s, so that the repeated frequency f is adjusted according to the pressing depth of a user, and various scenes can be used compatibly. The invention is applied to the technical field of the input equipment triggering method.

Description

Keyboard key execution method
Technical Field
The invention is applied to the technical field of input equipment triggering methods, and particularly relates to a keyboard key execution method.
Background
The traditional keyboard key pressing is divided into two main working states of single pressing and continuous pressing. When the user presses the key and releases the key at a higher speed, single character input or command input can be formed in the host; when the user continues to press a key for more than a certain time, the host computer will generate continuous input. For example, a single press of the A key and release in a short time, the host will enter a single A character; as shown in fig. 1, when the a key is continuously pressed, the host inputs the first a, delays for a designated time (e.g. 0.5 seconds), and then continuously and quickly outputs the characters of 'AAAAAAA …' until the key is turned off, in the above process, the key is always in the on state, and the continuously output command is realized by a module inside the host system.
In fact, the keyboard reports the on-off condition of the switch to the host through the communication interfaces such as the USB and the like according to the on-off condition of the switch, and the host judges whether the function is single input or continuous input according to the press time of the reported key. When continuous repeated key input is required, a user can continuously press the keys to enable the system to automatically produce continuous input, and the user does not need to repeatedly and continuously press and release the keys, so that the use efficiency is improved.
However, in the case where the user keeps pressing the key, the speed of the repetitive output generated by the system is default or adjustable in the system setting, and the user cannot adjust the speed of the repetitive output in real time by the depth of the pressing stroke of the key.
The mode of adjusting the repetition delay and the repetition speed by opening the control panel of the operating system brings inconvenience in use, and the repetition speed cannot be adjusted at any time according to the input requirement, so that the use efficiency is greatly influenced. For example, in a large Excel table, when the current focus unit needs to be moved, a direction key needs to be pressed; however, when the direction key is continuously pressed, the user can lose position and the working idea is influenced due to too high moving speed; if the direction key is released by repeatedly pressing, although the position of the focus cell can be accurately controlled, the efficiency is affected by too slow and tired time. In addition, in some game applications, such as direction control of a racing game, a user needs to avoid the pressing time of the key from exceeding the time of repeated delay so as to avoid entering a quick repeated mode of the system and causing oversteer, so that the purpose of adjusting a small amount of steering can be achieved only by manually controlling the pressing frequency of the direction key according to the number of the steering. Such control accuracy is poor, and the wrist is damaged for a long time because too many movements of the hand are required.
For example, chinese patent publication No. CN105742098B discloses a photoelectric linear-control keyboard key switch, which receives an optical signal through a photoelectric sensor, and provides different illumination states through different key pressing depths, so that the photoelectric sensor generates a corresponding current signal. Although the scheme discloses a key scheme with linear adjustment, in the scheme, the keys always output trigger signals through linearly changing current, and the scheme can be well adapted to moving and driving scenes of games, but cannot be well adapted to scenes such as point shooting or accurate cell moving in shooting games.
Disclosure of Invention
The technical problem to be solved by the invention is to overcome the defects of the prior art and provide a keyboard key execution method which can be compatible with various application scenes and can achieve the purpose of conveniently controlling the automatic repeat rate of keys.
The technical scheme adopted by the invention is as follows: the invention comprises a main controller, a key sensor for detecting analog quantity change and a key structure matched with the key sensor, wherein the key sensor detects the displacement distance d of the key structure, the key sensor is in electric signal connection with the main controller, and the keyboard key execution method also comprises the following specific working steps:
s1, the main controller obtains a ratio k of a displacement distance d of the key structure to a total displacement stroke s through the key sensor;
s2, when the ratio k is larger than the set trigger displacement ratio ka, the key is switched to a pressing state, and single on-off is executed;
s3, the main controller detects the pressing time t of the key in a pressing state, when the pressing time t is greater than the set triggering time ta, the key enters a repeating mode, the key is switched on and off in a circulating mode in the repeating mode, and the main controller adjusts the frequency f of the circulating switching according to the ratio k;
and S4, when the ratio k is smaller than the set trigger displacement ratio ka, keeping the key state to be disconnected.
According to the scheme, the key sensors capable of detecting analog quantity, such as the magnetic sensor, the photoelectric sensor, the pressure sensor and the like, are used for triggering the sensors through the structures such as the magnets, the shading holes, the springs or the pillars which are correspondingly arranged on the key structures, and the main controller is used for matching the detection value of the sensors with the parameter table corresponding to the sensors so as to obtain the real-time value of the key displacement distance d. And acquiring the pressing proportion of the user when pressing the key according to the ratio k between the displacement distance d and the total displacement stroke s, judging that the user has the intention of operating the key when the ratio k is greater than the trigger displacement ratio ka, and executing one-time on-off to realize the output of the characters or the instructions. When the ratio k is greater than the trigger displacement ratio ka and the state is kept to exceed the trigger duration ta, the repetitive mode is entered to realize the cyclic switching between the on state and the off state, at the moment, characters or instructions can be continuously input to the computer equipment or the terminal, and the cyclic frequency f is correspondingly adjusted by the main controller according to the pressing depth of the user, so that the user can obtain the required repetitive character input speed by adjusting the pressing depth of the key. The method and the device have the advantages that repeated input of operation scenes such as movement or driving of a user in a focus cell or a game is met, operation convenience and efficiency are improved, meanwhile, the method and the device are compatible with a traditional input mode, the user can adapt to the operation mode quickly and conveniently, meanwhile, the scheme of the application can be adapted to mobile keys and can also adapt to character input keys, and compatibility is better.
Preferably, in step S3, when the ratio k is greater than the set full-open limit kb, the key is kept in the continuous conducting state until the ratio k is less than the full-open limit kb, and the main controller resumes the state of adjusting the frequency f according to the ratio k.
One preferable scheme is that before the step S1, the method further comprises: step S0. the user sets the trigger displacement ratio ka, the trigger duration ta and the frequency f range through the main controller.
Preferably, in step S0, the user sets a frequency f range by adjusting the scaling factor x, where the relationship between the frequency f and the ratio k satisfies f = kx, the maximum frequency fmax satisfies f = x, and the minimum frequency fmin satisfies f = ka x.
One preferable scheme is that, in step S0, the user directly sets a maximum value fmax and a minimum value fmin of the frequency f, and the relationship between the frequency f and the ratio k satisfies f = fmax × k, and f ≧ fmin.
Drawings
FIG. 1 is a schematic diagram of a repeat mode operation of a conventional keyboard;
FIG. 2 is a flowchart illustrating a first embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an operating state of the first embodiment of the present invention;
FIG. 4 is a flowchart of the operation of the second embodiment of the present invention;
fig. 5 is a schematic diagram of an operating state of the second embodiment of the present invention.
Detailed Description
The first embodiment is as follows:
in this embodiment, the present invention includes a main controller, a key sensor for detecting analog quantity changes, and a key structure cooperating with the key sensor, where the key sensor detects a displacement distance d of the key structure, the key sensor is in electrical signal connection with the main controller, and the main controller communicates with a computer device or a terminal to output a key signal.
The main controller is a microprocessor used for controlling the keyboard equipment; the key sensor is a Hall sensor or a photoelectric sensor or a pressure sensor; when the key sensor is a Hall sensor, a magnet matched with the Hall sensor is arranged on the key structure, and the Hall sensor acquires the displacement distance of the key structure by detecting the change of a magnetic field, converts the displacement distance into a corresponding electric signal and outputs the electric signal to the main controller; when the key sensor is a photoelectric sensor, the key structure is provided with a light shielding hole, and the flux of the light shielding hole is changed by pressing the key structure, so that the key structure is converted into a corresponding electric signal to obtain a displacement distance d; when the key sensor is a pressure sensor, the key structure is correspondingly provided with a pressure spring, and the pressure sensor is converted into a corresponding electric signal to acquire the displacement distance d through the change of the elasticity in the compression process of the pressure spring.
As shown in fig. 2, the keyboard key execution method includes the following steps:
s0. a user interacts with the main controller through a visual interface of computer equipment, and sets a trigger displacement ratio ka, a trigger duration ta and a frequency f range through the main controller, wherein the main controller stores the parameters in a memory of keyboard equipment;
s1, the main controller obtains a ratio k of a displacement distance d and a total displacement stroke s after a user presses the key structure through the key sensor, wherein d is more than or equal to 0 and less than or equal to s, and the total displacement stroke s is the maximum movable distance of the key structure;
s2, when the ratio k is larger than the set trigger displacement ratio ka, the key is switched to a pressing state, single on-off is executed, and the computer equipment inputs a corresponding character or instruction after acquiring a signal;
s3, the main controller detects the pressing time t of the key in a pressing state, when the pressing time t is greater than the set triggering time ta, the key enters a repeating mode, the key is switched on and off in a circulating mode in the repeating mode, and the main controller adjusts the frequency f of the circulating switching according to the ratio k;
and S4, when the ratio k is smaller than the set trigger displacement ratio ka, keeping the key state to be disconnected.
In step S0, the user sets a frequency f range by adjusting the scaling factor x, where the relationship between the frequency f and the ratio k satisfies f = kx, the maximum frequency fmax satisfies f = x, and the minimum frequency fmin satisfies f = ka x.
In addition, in step S0, by storing the parameters in the memory of the keyboard device, the computer device can be switched to execute the set repetitive pattern without repetitive setting, thereby improving the convenience of use.
As shown in fig. 3, assuming that the trigger displacement ratio ka is 0.1, the trigger time ta is 100ms, the working process of the present application is as follows:
the user starts to press the key structure at a constant speed at the time t 0;
when the key structure is at the moment t1, the ratio k of the displacement distance d to the total displacement stroke s is greater than 0.1, and at the moment, the main controller outputs a primary conduction signal to the computer equipment;
the user continuously presses at a constant speed, and at the time t2 which is 100ms after the time t1, the main controller executes a repeating mode and starts to simulate a repeating on-off signal;
the user keeps pressing at a constant speed between the time t2 and the time t3 when the key structure reaches the maximum stroke, namely the displacement distance d is continuously increased, and the repetition frequency is increased along with the increase of the displacement distance d by the frequency f in the process;
at the time t4 when the ratio k of the displacement distance d to the total displacement stroke s is less than 0.1 from the time t3, the user keeps releasing the key structure at a constant speed, and in the process, the frequency f reduces the repetition frequency along with the reduction of the displacement distance d until the key state is switched to off at the time t 4;
and the key is kept in the off state from the time t4 to the time when the user completely releases the key.
In the actual use process, the main controller adjusts the frequency f according to a preset relation function of the ratio k and the frequency f.
Example two:
as shown in fig. 4, the present embodiment is different from the first embodiment in that:
and in the step S3, when the ratio k is larger than the set full-open limit kb, the key is kept in a continuous conducting state until the ratio k is smaller than the full-open limit kb, and the main controller restores the state of adjusting the frequency f according to the ratio k.
As shown in fig. 5, the ratio k is greater than the full-open limit kb at time t5 between time t2 and time t3, and is less than the full-open limit kb at time t6 between time t3 and time t4, and the keys enter the continuous conduction state between time t5 and time t6, and the key repetition is not performed by the keyboard device, and the computer operating system recognizes the continuous conduction signal and then automatically enters the conventional repetition mode.
The method is compatible with the traditional repeated mode, so that a user can freely select different operation modes, and the operation freedom is improved.
Example three:
the difference between the present embodiment and the first embodiment is:
in step S0, the user directly sets a maximum value fmax and a minimum value fmin of the frequency f, where the relationship between the frequency f and the ratio k satisfies f = fmax × k, and f is greater than or equal to fmin.
And the main controller adjusts the frequency f according to the functional relation.
While the embodiments of the present invention have been described in terms of practical embodiments, they are not to be construed as limiting the meaning of the present invention, and modifications of the embodiments and combinations with other embodiments will be apparent to those skilled in the art in light of the present description.

Claims (5)

1. A keyboard key execution method comprises a main controller, a key sensor for detecting analog quantity change and a key structure matched with the key sensor, wherein the key sensor detects the displacement distance d of the key structure, and the key sensor is in electric signal connection with the main controller, and is characterized by comprising the following working steps:
s1, the main controller obtains a ratio k of a displacement distance d of the key structure to a total displacement stroke s through the key sensor;
s2, when the ratio k is larger than the set trigger displacement ratio ka, the key is switched to a pressing state, and single on-off is executed;
s3, detecting a pressing time t of the key in a pressing state by the main controller, entering a repeated mode when the pressing time t is greater than a set triggering time ta, and circularly switching the key between on and off in the repeated mode, wherein the main controller adjusts the frequency f of circular switching according to a ratio k;
and S4, when the ratio k is smaller than the set trigger displacement ratio ka, keeping the key state to be disconnected.
2. The method as claimed in claim 1, wherein in step S3, when the ratio k is greater than the full open limit kb, the keys are kept in the continuous conducting state until the ratio k is less than the full open limit kb, and the main controller resumes the state of adjusting the frequency f according to the ratio k.
3. The keyboard key execution method of claim 1, further comprising, before step S1: step S0. the user sets the trigger displacement ratio ka, the trigger duration ta and the frequency f range through the main controller.
4. The keyboard key execution method of claim 3, wherein: in step S0, the user sets a frequency f range by adjusting the scaling factor x, where the relationship between the frequency f and the ratio k satisfies f = kx, the maximum frequency fmax satisfies f = x, and the minimum frequency fmin satisfies f = ka × x.
5. The keyboard key execution method of claim 3, wherein: in step S0, the user directly sets a maximum value fmax and a minimum value fmin of the frequency f, where the relationship between the frequency f and the ratio k satisfies f = fmax × k, and f is greater than or equal to fmin.
CN202211385026.3A 2022-11-07 2022-11-07 Keyboard key execution method Pending CN115586838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211385026.3A CN115586838A (en) 2022-11-07 2022-11-07 Keyboard key execution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211385026.3A CN115586838A (en) 2022-11-07 2022-11-07 Keyboard key execution method

Publications (1)

Publication Number Publication Date
CN115586838A true CN115586838A (en) 2023-01-10

Family

ID=84782340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211385026.3A Pending CN115586838A (en) 2022-11-07 2022-11-07 Keyboard key execution method

Country Status (1)

Country Link
CN (1) CN115586838A (en)

Similar Documents

Publication Publication Date Title
CN103367000B (en) A kind of many driving switch and using method
KR100243031B1 (en) Apparatus for moving a cursor on a screen
WO2009020204A1 (en) Input device, control device, control system, control method and handheld device
JPH0734531B2 (en) Fader device
AU2002321881A1 (en) Appliance control system with auxiliary inputs
CN101639671B (en) Method and device for controlling object selection and parameter setting
CN112863163A (en) Self-generating remote controller and application thereof
DE3828334C2 (en) Remote controlled electrical device
CN109036924A (en) A kind of controllable magnetic button control system
CN115586838A (en) Keyboard key execution method
CN107168134B (en) Brain-eye hybrid driven household appliance control method
CN108488598A (en) Three axis hold the method that stabilizer and its handle and three axis of control hold stabilizer
CN102915126A (en) Method, device and system of light ray remote-control positioning
CN109806581A (en) The control method and handle of handle rocker indicator
CN113597070B (en) Multi-channel light source control method and system based on light source controller
CN102135831B (en) Method and device for controlling line display of touch screen
CN208169957U (en) Three axis hold stabilizer and its handle
CN210673344U (en) Movement axis of medical imaging equipment based on button force adjustment
CN219511703U (en) Wireless temperature measuring device of switch cabinet
CN213399974U (en) Laser remote controller for large screen interaction
US20220391245A1 (en) Information processing apparatus
CN104735850A (en) Remote controller of lighting device and control method thereof
JPH10207636A (en) Pointer moving method and pointing device
JP3215234B2 (en) Computer game input device
CN1604027A (en) Functional module for controlling cursor movement in electronic devices

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