Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]修复 短按->长按 按键操作误触发按下事件 #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

i-jaffer
Copy link

问题描述:

  1. 当按键按以下顺序按下时: 短按 -> 长按,handle->state 的值 0 -> 1 -> 2 -> 0 -> 1,会多触发一次 EVENT_CB(PRESS_DOWN); 事件回调,实际不需要,handle->state 的正确状态应该为 0 -> 1 -> 2 -> 1

@i-jaffer i-jaffer changed the title [fix]修复短按->长按按键误触发按下事件 [fix]修复 短按->长按 按键操作误触发按下事件 Feb 28, 2023
@0x1abin
Copy link
Owner

0x1abin commented Nov 17, 2023

感谢提交修复!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants