tap_dance_defs.h 740 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2022 Sergey Vlasov (@sigprof)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. enum custom_keycodes {
  8. // (FAST|SLOW)_xy = tap KC_x on press, tap KC_y on release. For FAST_xy
  9. // process_record_user() returns false to stop processing early; for
  10. // SLOW_xy process_record_user() returns true, therefore all other key
  11. // handlers are invoked.
  12. FAST_AB = SAFE_RANGE,
  13. FAST_CD,
  14. SLOW_AB,
  15. SLOW_CD,
  16. };
  17. enum tap_dance_ids {
  18. TD_L_MOVE, // ACTION_TAP_DANCE_LAYER_MOVE(KC_APP, 1)
  19. TD_L_TOGG, // ACTION_TAP_DANCE_LAYER_TOGGLE(KC_APP, 1)
  20. TD_LT_APP, // similar to LT(1, KC_APP) with KC_RCTL on tap+hold or double tap
  21. };
  22. #ifdef __cplusplus
  23. }
  24. #endif