Button click anti-shake method and system and storage medium
By utilizing controller feedback signals to switch states in the button click anti-shake strategy, the problems of controller instruction backlog and hardware consumption caused by rapid user clicks are solved, thus improving the user experience.
Patent Information
- Application Number
- CN202510750379.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-10-17
AI Technical Summary
The existing button click anti-shake strategy is too simple in cockpit applications, resulting in invalid clicks when users perform quick operations, affecting the user experience and potentially leading to controller command backlog and hardware consumption.
By initializing the button state to a non-blocking state, obtaining the user's click action and generating an indication signal, waiting for the controller feedback signal, and switching the state according to the feedback to respond to or block the click operation, a fixed delay strategy is avoided.
It achieves flexible control of button clicks based on controller feedback, preventing the controller from being unable to process instructions due to button clicks when the user's operation is blocked, and at the same time improves the user experience.
Smart Images

Figure CN120803286A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent cockpit, in particular to a button click anti-shake method, a button click anti-shake system and a storage medium. BACKGROUND
[0002] In today's increasingly rich material and spiritual life, more and more people use car cockpit applications more and more frequently, so people's requirements for the interactive experience and fluency of car cockpit applications are also getting higher and higher. At present, there are a large number of switch buttons in cockpit applications, especially vehicle control related applications. Each button can control the related functions of the vehicle after being clicked, but if the buttons are clicked continuously and quickly, a large number of signals will be sent to the corresponding controller of the vehicle in a short time, causing the controller to accumulate instructions that cannot be processed and causing excessive consumption of the controller hardware. In view of this problem, the current button click anti-shake strategy mainly controls by adding a time delay, that is, after clicking, the button click state is set to non-clickable within the delay time, so as to avoid user rapid operation. However, this anti-shake strategy in cockpit applications is too single, which will cause the user to be intercepted by the anti-shake strategy when he wants to quickly adjust a function, so that the click is invalid, which greatly affects the user experience. SUMMARY
[0003] The purpose of the present application is to provide a button click anti-shake method, system and storage medium, which can not only solve the problem that the user's rapid clicking of the cockpit application button causes the controller to be unable to process the instructions, but also will not excessively control the button and affect the user experience.
[0004] The present application provides the following solutions:
[0005] According to one aspect of the present application, a button click anti-shake method is provided, which comprises:
[0006] initializing the state of the button as a non-blocking state;
[0007] In the non-blocking state, the user's button click action is obtained;
[0008] According to the user's button click action in the non-blocking state, a click action instruction signal sent to the controller is generated;
[0009] The click action instruction signal is sent to the controller, the state of the button is switched to a blocking state, and the feedback signal of the controller is waited for;
[0010] It is judged whether the feedback signal of the controller is received;
[0011] If the feedback signal of the controller is received, the state of the button is restored to the non-blocking state;
[0012] The state of the button is the blocking state, the controller does not respond to the generated click action instruction signal sent to the controller;
[0013] According to the state of the button jumping to the non-blocking state, the controller responds to the generated click action instruction signal sent to the controller, and executes the corresponding instruction action under the click action instruction signal;
[0014] According to the completion of the controller executing the instruction action under the action instruction signal, the controller generates a feedback signal.
[0015] Optionally, the feedback signal of the controller is a feedback signal generated by the controller autonomously.
[0016] Optionally, the feedback signal of the controller is a feedback signal generated by the controller according to the state query instruction triggered by the button.
[0017] Optionally, the state query instruction is triggered according to whether the timer started by the button side is timed out, and is sent to the controller.
[0018] Optionally, it further comprises:
[0019] Before judging whether the feedback signal of the controller is received, it is judged whether the locally started timer is timed out;
[0020] If the timer is timed out, a state query instruction is generated and sent to the controller.
[0021] Optionally, the click action instruction signal is sent to the controller, the state of the button is jumped to the blocking state, and the feedback signal of the controller is waited, comprising:
[0022] The local timer is started;
[0023] The locally started timer has a set timing length.
[0024] Optionally, it further comprises:
[0025] Before judging whether the feedback signal of the controller is received, it is judged whether the locally started timer is timed out;
[0026] If the timer is not timed out, and the user's button click action is obtained again, the locally started timer is reset.
[0027] Optionally, the timer after the reset has the same timing length as before the reset.
[0028] According to the two aspects of the present application, a button click anti-shake system is provided, which comprises:
[0029] The initialization module is configured to initialize the state of the button as a non-blocking state.
[0030] The action acquisition module is configured to acquire a button click action of the user in the non-blocking state.
[0031] The signal generation module is configured to generate a click action indication signal sent to the controller according to the button click action of the user in the non-blocking state.
[0032] The jump module is configured to send the click action indication signal to the controller, jump the state of the button to a blocking state, and wait for a feedback signal of the controller.
[0033] The judgment module is configured to judge whether the feedback signal of the controller is received.
[0034] The recovery module is configured to restore the state of the button to the non-blocking state if the feedback signal of the controller is received.
[0035] When the state of the button is the blocking state, the controller does not respond to the generated click action indication signal sent to the controller.
[0036] According to the state jump of the button to the non-blocking state, the controller responds to the generated click action indication signal sent to the controller, and executes an instruction action corresponding to the click action indication signal.
[0037] According to the completion of the execution of the instruction action of the controller according to the action indication signal, the controller generates the feedback signal.
[0038] According to the three aspects of the present application, a computer readable storage medium is provided, the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the button click anti-shake method as described above.
[0039] Through the above scheme, the following beneficial technical effects are obtained:
[0040] The anti-shake strategy of the present application is to control the click through the feedback signal of the controller, rather than being fixedly not clickable within a certain number of milliseconds. In this way, when the controller feedback is fast, the next click can be quickly performed, and the user operation will not be blocked. BRIEF DESCRIPTION OF DRAWINGS
[0041] Figure 1 is a flowchart of the button click anti-shake method provided by one or more embodiments of the present application;
[0042] Figure 2 is a flowchart of the button click anti-shake method provided by one or more embodiments of the present application;
[0043] Figure 3is a flowchart of a button click anti-shake method provided by one or more embodiments of the present application;
[0044] Figure 4 is a flowchart of a button click anti-shake method provided by one or more embodiments of the present application;
[0045] Figure 5 is a flowchart of a button click anti-shake method provided by one or more embodiments of the present application;
[0046] Figure 6 is a structural diagram of a button click anti-shake system provided by one or more embodiments of the present application. DETAILED DESCRIPTION
[0047] The technical solutions of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.
[0048] Figure 1 A flowchart of a button click anti-shake method provided by one or more embodiments of the present application is shown. Referring to Figure 1 , the button click anti-shake method includes the following operation steps:
[0049] S11, initializing the state of the button as a non-blocking state.
[0050] S12, in the non-blocking state, obtaining the button click action of the user.
[0051] S13, generating a click action indication signal sent to the controller according to the button click action of the user in the non-blocking state.
[0052] S14, sending the click action indication signal to the controller, jumping the state of the button to a blocking state, and waiting for the feedback signal of the controller.
[0053] S15, judging whether the feedback signal of the controller is received.
[0054] S16, if yes, restoring the state of the button to the non-blocking state.
[0055] As described above, the key of the button anti-shake in the present embodiment is to switch the state of the button based on the signal feedback amount of the controller, thereby realizing the anti-shake of the button operation.
[0056] In the technical solution of the present embodiment, the button is set to two different states, the first state is called the non-blocking state. The second state is called the blocking state.
[0057] In the non-blocking state, the user's button click action is valid, and the button and the controller will provide feedback. In the blocking state, the user's button click action is invalid, and the user will not receive any feedback.
[0058] In other words, in the non-blocking state, the user's button click action will trigger a control command to the controller. In the blocking state, the user's button click action will not trigger a control command to the controller.
[0059] When the button is running, it is first initialized. After the initialization operation, the state of the button is set to the non-blocking state.
[0060] If the user's click operation on the button is obtained in the non-blocking state, the button needs to send a click action indication signal to the controller. At the same time of sending the indication signal, the state of the button is adjusted to the blocking state.
[0061] The controller executes corresponding actions after receiving the indication signal sent by the button. These actions can include opening the air conditioner air plate, reducing the set room temperature of the air conditioner, etc.
[0062] After the controller completes the execution of the set actions, it feeds back an action completion signal to the button.
[0063] After receiving the action completion signal fed back by the controller, the state of the button is again set to the non-blocking state.
[0064] That is, only in the non-blocking state, the button click operation is valid and will trigger related instruction operations to the controller. In the blocking state, the button click operation is invalid and will not trigger any operation to the controller.
[0065] The switching between the blocking state and the non-blocking state is completed through the user's click operation and the state feedback of the controller. The state feedback of the controller only occurs after the execution of the related actions of the controller is completed. According to the state feedback of the controller, the state of the button will only be adjusted from the blocking state to the non-blocking state.
[0066] According to the user's click operation, the state of the button will only be adjusted from the non-blocking state to the blocking state.
[0067] The technical scheme provided by the embodiment has the advantages that the button click control strategy can be flexibly set according to different types of functions and buttons and signal feedback of the controller, so that the next click can be quickly performed when the controller signal feedback is fast, and the user operation is not blocked. The present application can not only solve the problem that the controller cannot process the instruction caused by the user quickly clicking the cabin application button, but also will not excessively control the button to affect the user experience.
[0068] Figure 2 A flowchart of a button click anti-shake method provided by one or more embodiments of the application is shown. Referring to Figure 2 , the button click anti-shake method includes the following operation steps:
[0069] S21, initializing the state of the button as a completed state.
[0070] S22, in the completed state, obtaining the button click action of the user.
[0071] S23, generating a click action instruction signal sent to the controller according to the button click action of the user in the completed state.
[0072] S24, sending the click action instruction signal to the controller, jumping the state of the button to a request state, and waiting for the feedback signal of the controller.
[0073] S25, judging whether the feedback signal of the controller is received.
[0074] S26, if yes, restoring the state of the button to the completed state.
[0075] In the embodiment, the two states of the button are the completed state and the request state.
[0076] The completed state indicates that the related action of the controller has been performed. The request state indicates that the button is requesting the controller to perform the corresponding action, and has not obtained the further result of the action execution.
[0077] In the initial stage of the action execution, the state of the button is set to the completed state.
[0078] After the user has the click operation on the button, the button needs to judge whether the current state is the completed state.
[0079] If the current state is the completed state, the related instruction can be sent to the controller. At the same time of sending the instruction, the current state of the button is changed to the request state.
[0080] In the request state, if the user's re-click operation is obtained, the button will not send any signal to the controller, and the state of the button itself will not change.
[0081] Only in one case, the state of the button will change from the original request to the completion state, that is, the controller feeds back the indication signal to the button.
[0082] The button receives the indication signal, and first judges whether the current state is in the request or in the completion state. In the completion state, no further operation is needed. If it is judged that the current state is in the request, the current state needs to be further changed to the request.
[0083] The button anti-shake strategy applied to the vehicle cabin application in the embodiment can be used in actual development and application scenarios, such as central air conditioning application, similar to vehicle air conditioner switch buttons, and the anti-shake strategy provided in the embodiment can be used.
[0084] Figure 3 A flowchart of a button click anti-shake method provided by one or more embodiments of the application is shown. Referring to Figure 3 , the button click anti-shake method includes the following operation steps:
[0085] S31, initializing the state of the button as a no-timer state.
[0086] S32, in the no-timer state, obtaining the button click action of the user.
[0087] S33, generating a click action indication signal sent to the controller according to the button click action of the user in the no-timer state.
[0088] S34, sending the click action indication signal to the controller, and jumping the state of the button to a timer state.
[0089] S35, judging whether the local started timer ends.
[0090] S36, if the timer ends, generating a state query instruction issued to the controller.
[0091] S37, if the timer does not end, and the button click action of the user is obtained again, resetting the local started timer.
[0092] S38, judging whether the feedback signal of the controller is received.
[0093] S39, if the feedback signal is received, the state of the button is restored to the no-timer state.
[0094] The biggest difference between the embodiment and the aforementioned embodiments of the application is that the built-in timer mechanism is adopted. That is, when the state is synchronized between the time and the controller, whether the timer has ended.
[0095] In the present embodiment, the button also has two states. One is a no-timer state, in which the timer on the button is not triggered, and the button is in an idle state. In the no-timer state, the button click operation of the user is responded to accordingly. That is, in the no-timer state, the user clicks the button, and the button sends a click action instruction signal to the controller.
[0096] The other is a timer state. In the timer state, the timer on the button is triggered. That is, the timer is in a timing state and is counting down time.
[0097] In the timer state, the button click operation of the user does not cause the button to send a signal to the controller, but causes the timer inside the button to be reset, that is, to start timing again.
[0098] Until the timing of the timer itself ends, the button actively acquires the state of the controller. If the acquired state of the controller is that no command is being executed, that is, it is idle, the current state is changed to the no-timer state again.
[0099] Figure 4 A flowchart of a button click anti-shake method provided by one or more embodiments of the present application is shown. Referring to Figure 4 , the button click anti-shake method includes the following operation steps:
[0100] S401, the user clicks an AI button.
[0101] S402, the AI button sends an instruction signal to the controller.
[0102] S403, the AI button remains in a request state.
[0103] S404, the user clicks the AI button again.
[0104] S405, the AI button is in the request state and does not repeatedly send an instruction.
[0105] S406, the controller completes the execution of the action and sends a feedback signal to the AI button.
[0106] S407, the AI button is restored to a completion state from the request state.
[0107] S408, the user clicks the AI button again.
[0108] S409, the current state of the AI button is a completion state, and an instruction signal is sent to the controller.
[0109] S410, the controller completes the execution of the action and sends a feedback signal to the AI button.
[0110] The technical solution of the button anti-shake provided by the embodiment is that whether the button click operation of the user is responded to is controlled according to the state transition of the button, and then some repeated button click operations are shielded, so that the function of button anti-shake is realized.
[0111] Specifically, the AI button has two different states, one is called a completed state, and the other is called a request state. In the completed state, the received user click operation can be responded to, that is, in the completed state, if the user click operation on the AI button is received, the AI button will send a related action instruction to the controller.
[0112] However, it should be noted that once any click operation of the user is received in the completed state, the state of the AI button will jump to the request state. In the request state, the click operation of the user on the AI button will not be responded to. That is, if the state of the AI button is the request state at this time, the user clicks the AI button, and the click action is invalid and will not cause any action of the controller. In other words, in the request state, if the AI button is clicked by the user, the AI button will not send any action instruction to the controller, and the controller will not have any response.
[0113] Specifically, if the user wants to turn on the air conditioning system, but the user clicks the related button when the state of the button is in the request state, at this time, any air conditioner in the cabin will not perform the related operation of turning on.
[0114] In the embodiment, only when the task currently executed by the controller is executed, and the controller feeds back the feedback signal indicating that the action has been executed to the AI button, the state of the button will be reset from the request state to the completed state.
[0115] That is, in the embodiment, the conditions that can change the state of the AI button are also two. One is the click operation of the user on the AI button in the completed state, and the other is the feedback signal of the controller completing the related action execution. The click action of the user can make the state of the AI button jump from the completed state to the request state, and the feedback signal of the controller can make the state of the AI button jump from the request state to the completed state.
[0116] Overall, the scheme provided by the embodiment is actually a technical solution of button anti-shake control according to state jump, and the jump action of the state is based on the triggering of the related control signal.
[0117] It is also needed to emphasize that, in the present embodiment, the feedback signal sending action of the controller is spontaneously initiated after the action of the controller itself is executed. That is to say, in the present embodiment, the feedback signal sending action of the controller does not need the triggering of other related components. As long as the action currently executed by the controller is executed, it will certainly feedback the state of itself to the AI button, so that the AI button knows its state, and then the state jump of the AI button itself is performed to complete the anti-shake strategy.
[0118] Figure 5 A flow chart of the button click anti-shake method provided by one or more embodiments of the present application is shown. Referring to Figure 5 , the button click anti-shake method comprises the following operation steps:
[0119] S501, the user clicks the AI button.
[0120] S502, the AI button sends an instruction signal to the controller, and sets the current state as the state with the timer.
[0121] S503, the AI button starts the 2s timer.
[0122] S504, the user clicks the AI button again.
[0123] S505, the AI button resets the 2s timer.
[0124] S506, the user clicks the AI button again.
[0125] S507, the AI button resets the 2s timer.
[0126] S508, the 2s timer ends.
[0127] S509, the AI button acquires the state of the controller.
[0128] S510, the controller feeds back the current state, and the state of the AI button is set as the state without the timer.
[0129] The difference between the present embodiment and the foregoing embodiments of the present application is that the anti-shake strategy of the present embodiment not only depends on the state jump of the button itself, but also has the addition of the delay mechanism.
[0130] That is to say, every time the click operation of the user is received, a timer is started or reset. The timer has a fixed timing duration, and only after the timing of the timer ends, the subsequent state query action is executed.
[0131] The difference between this embodiment and the previous embodiments of the application is that the state of the controller is no longer actively reported by the controller itself, but is changed to be actively queried by the AI button. The controller only feeds back its state to the AI button after receiving a query signal, i.e., a state acquisition request, from the AI button. If no query signal is received, the controller does not feed back the state to the AI button.
[0132] The same as the previous embodiments of the application is that the AI button in this embodiment also has two different states. One is the state with a timer, and the other is the state without a timer.
[0133] The state with a timer is easy to understand, which means that there is a timer that has been started and is currently counting. Then, the state without a timer means that no timer has been started.
[0134] After the AI button is initially started and the initialization operation is performed, it should be in the state without a timer.
[0135] When a user's click operation is received, a timer is started. At this time, the AI button comes to the state with a timer.
[0136] In the state with a timer, the user's click operation is not responded by the controller. The timer is responded by the user's click operation at this time. Specifically, the started timer is reset, i.e., the timer counting action starts from the beginning. However, in the state with a timer, the AI button is clicked, and at this time, the controller does not have any action.
[0137] The state in which the controller has a response action is the state without a timer. In the state in which no timer is started in the system, the user's click operation is responded by the controller, i.e., the user's click operation causes the controller to perform a corresponding control action, unlike in the state with a timer, in which only the timer is reset.
[0138] The reason for adding the timer mechanism is that in some scenarios, the user's clicks on the button are often continuous. At this time, if the user's click operation is completely ignored, it will cause a lagging feeling to the user.
[0139] The applicant has studied the user's click behavior in this scenario. In order to avoid causing a lagging feeling to the user and also to meet the actual need for anti-shake control, a timer is added. Each time the user clicks, the timer is started first, and the countdown is performed. After the countdown is completed, the action execution of the controller is queried by the device area on the button side to see whether the execution is complete. If the execution is complete, the state of the button is restored to the state without a timer, and at this time, the next click operation of the user can be received.
[0140] Figure 6 A structural diagram of a button click anti-shake system provided by one or more embodiments of the present application is shown. Referring to Figure 6 , the button click anti-shake system comprises:
[0141] The initialization module 601 is configured to initialize the state of the button as a non-blocking state.
[0142] The action acquisition module 602 is configured to acquire a button click action of a user in the non-blocking state.
[0143] The signal generation module 603 is configured to generate a click action instruction signal sent to the controller according to the button click action of the user in the non-blocking state.
[0144] The jump module 604 is configured to send the click action instruction signal to the controller, jump the state of the button to a blocking state, and wait for a feedback signal of the controller.
[0145] The judgment module 608 is configured to judge whether the feedback signal of the controller is received.
[0146] The recovery module 609 is configured to restore the state of the button to the non-blocking state if the feedback signal of the controller is received.
[0147] In the blocking state of the button, the controller does not respond to the generated click action instruction signal sent to the controller.
[0148] According to the state of the button jumping to the non-blocking state, the controller responds to the generated click action instruction signal sent to the controller, and executes an instruction action corresponding to the click action instruction signal.
[0149] According to the completion of the execution of the instruction action under the action instruction signal of the controller, the controller generates the feedback signal.
[0150] Optionally, the feedback signal of the controller is a feedback signal autonomously generated by the controller.
[0151] Optionally, the feedback signal of the controller is a feedback signal generated by the controller according to a state query instruction triggered by the button.
[0152] Optionally, the state query instruction is triggered according to whether a timer started by the button side is timed out, and is sent to the controller.
[0153] Optionally, the button click anti-shake system further comprises:
[0154] The timing judgment module 605 is configured to judge whether a locally started timer is timed out before judging whether the feedback signal of the controller is received.
[0155] The generating module 606 is configured to generate a state query instruction to be sent to the controller if the timer ends.
[0156] Optionally, the jumping module 604 is specifically configured to:
[0157] start a timer locally;
[0158] Optionally, the locally started timer has a set time length.
[0159] Optionally, the method further comprises:
[0160] The timing judging module 605 is configured to judge whether the locally started timer ends before judging whether the feedback signal of the controller is received.
[0161] The resetting module 607 is configured to reset the locally started timer if the timer does not end and the user's button clicking action is obtained again.
[0162] Optionally, the timer after the resetting has the same time length as before the resetting.
[0163] It is worth noting that, although only some basic functional modules are disclosed in the embodiments of the present application, it does not mean that the composition of the system is limited to the above basic functional modules, on the contrary, the meaning expressed by the embodiments is: on the basis of the above basic functional modules, those skilled in the art can add one or more functional modules to form infinite embodiments or technical solutions according to the existing technology, that is, the system is open rather than closed, and the protection scope of the present application claim cannot be limited to the disclosed basic functional modules because the embodiments only disclose individual basic functional modules. At the same time, in order to describe conveniently, the above device is described as various units and modules. Of course, in the implementation of the present application, the functions of the units and modules can be realized in the same or multiple software and / or hardware.
[0164] The present application also provides a computer readable storage medium, which stores a computer program executable by a vehicle, and when the computer program runs on the vehicle, the vehicle executes the steps of the button clicking anti-shake method.
[0165] In particular, a computer storage medium of embodiments of the present application can employ any combination of one or more computer readable medium or media. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium 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 this embodiment, the computer readable storage medium can be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
[0166] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
[0167] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A button click anti-shake method, characterized in that: The button click anti-shake method includes: Initialize the button state to non-blocking state; In a non-blocking state, get the user's button click action; According to the button click action of the user in the non-blocking state, a click action indication signal is generated and sent to the controller; Send a click action indication signal to the controller, change the button state to the blocked state, and wait for the controller's feedback signal; Determine whether a feedback signal from the controller is received; If,received, the button state is restored to non-blocking state; Wherein, when the button is in the blocking state, the controller does not respond to the generated click action indication signal sent to the controller; According to the state of the button jumping to the non-blocking state, the controller responds to the generated click action indication signal sent to the controller and executes the instruction action corresponding to the click action indication signal; After the controller completes the action according to the instruction signal, the controller generates a feedback signal.
2. The method according to claim 1, characterized in that The controller's feedback signal is a feedback signal generated autonomously by the controller.
3. The method according to claim 1, characterized in that The controller's feedback signal is a feedback signal generated by the controller according to the status query instruction triggered by the button.
4. The method according to claim 3, characterized in that The status query command is triggered based on whether the timer started on the button side has expired and is sent to the controller.
5. The method according to claim 4, characterized in that Also includes: Before determining whether a feedback signal from the controller is received, determining whether a locally started timer has expired; If the timer ends, a status query instruction is generated and sent to the controller.
6. The method according to claim 5, characterized in that Send a click action indication signal to the controller, change the button state to the blocked state, and wait for the controller's feedback signal, including: Start the timer locally; The timer started locally has a set timing time length.
7. The method according to claim 5, characterized in that Also includes: Before determining whether a feedback signal from the controller is received, determining whether a locally started timer has expired; If the timing has not ended and the user clicks the button again, the locally started timer will be reset.
8. The method according to claim 7, characterized in that After the timer is reset, it has the same duration as before the timer was reset.
9. A button click anti-shake system, characterized in that: The button click anti-shake system includes: Initialization module, used to initialize the button state to non-blocking state; The action acquisition module is used to obtain the user's button click action in a non-blocking state; A signal generating module, configured to generate a click action indication signal to be sent to the controller according to a button click action of a user in a non-blocking state; The jump module is used to send a click action indication signal to the controller, jump the button state to the blocking state, and wait for the feedback signal from the controller; A judgment module, used to judge whether a feedback signal from the controller is received; The recovery module is used to restore the state of the button to the non-blocking state if received; Wherein, when the button is in the blocking state, the controller does not respond to the generated click action indication signal sent to the controller; According to the state of the button jumping to the non-blocking state, the controller responds to the generated click action indication signal sent to the controller and executes the instruction action corresponding to the click action indication signal; After the controller completes the action according to the instruction signal, the controller generates a feedback signal.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the button click anti-shake method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Method and apparatus for preventing duplicate button pressing by user
CN101394406A
Method and device for preventing repeated clicking, computer equipment and readable storage medium
CN112306805A
Anti-repetition method for liking, equipment and storage medium
CN113709258A
Button event processing method and device
CN115629892A
Key jitter elimination method, device, equipment, medium, product, keyboard and vehicle
CN117784958A