您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
123456789101112131415161718192021 |
- #include "action_oneshot.h"
-
-
- #ifndef NO_ACTION_ONESHOT
- oneshot_state_t oneshot_state;
-
- void oneshot_start(uint8_t mods)
- {
- oneshot_state.mods = mods;
- }
-
- void oneshot_cancel(void)
- {
- oneshot_state.mods = 0;
- }
-
- void oneshot_toggle(void)
- {
- oneshot_state.disabled = !oneshot_state.disabled;
- }
- #endif
|