Skip to content

Instantly share code, notes, and snippets.

@takashicompany
Last active July 11, 2021 13:31
Show Gist options
  • Save takashicompany/822d2c71ac81f07676e0c84d239f1b96 to your computer and use it in GitHub Desktop.
Save takashicompany/822d2c71ac81f07676e0c84d239f1b96 to your computer and use it in GitHub Desktop.
// キーを押した回数を格納する変数
static uint16_t press_count = 0;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// キーが押されたら、カウンターをインクリメントする
if (record->event.pressed) {
press_count++;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment