You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
5.9 KiB

  1. # group `leader`
  2. Leader Key
  3. ## Summary
  4. Members | Descriptions
  5. --------------------------------|---------------------------------------------
  6. `public void `[`leader_start_user`](#group__leader_1gae7b6746b0c6bd83cada1e770a7d8315d)`(void)` | User callback, invoked when the leader sequence begins.
  7. `public void `[`leader_end_user`](#group__leader_1ga20986d88ffc5f21f00eab4b5e9a03188)`(void)` | User callback, invoked when the leader sequence ends.
  8. `public void `[`leader_start`](#group__leader_1ga1f5dad3a2df12d29023e48852ff638ba)`(void)` | Begin the leader sequence, resetting the buffer and timer.
  9. `public void `[`leader_end`](#group__leader_1ga7ecc035ad29aed6d5ee3848725234b6c)`(void)` | End the leader sequence.
  10. `public void `[`leader_task`](#group__leader_1gaa451b483f86840a1a3a773a074b73019)`(void)` |
  11. `public bool `[`leader_sequence_active`](#group__leader_1gab52594aae07ec2f59cc6cc00dce9cc0b)`(void)` | Whether the leader sequence is active.
  12. `public bool `[`leader_sequence_add`](#group__leader_1ga0b9825ee3240ffac41837664d10c36ff)`(uint16_t keycode)` | Add the given keycode to the sequence buffer.
  13. `public bool `[`leader_sequence_timed_out`](#group__leader_1gadb5905415a54ffab4a47a8d3227b3942)`(void)` | Whether the leader sequence has reached the timeout.
  14. `public void `[`leader_reset_timer`](#group__leader_1ga5a9246dc3f952a5522c188f747ce0722)`(void)` | Reset the leader sequence timer.
  15. `public bool `[`leader_sequence_one_key`](#group__leader_1ga6bcdd330c94f7074361c21ad8ee901fd)`(uint16_t kc)` | Check the sequence buffer for the given keycode.
  16. `public bool `[`leader_sequence_two_keys`](#group__leader_1ga6a09c0ae645990e9d219c62244c30e42)`(uint16_t kc1,uint16_t kc2)` | Check the sequence buffer for the given keycodes.
  17. `public bool `[`leader_sequence_three_keys`](#group__leader_1ga0dd4e91b428947bfb5ddb6fd09b29c11)`(uint16_t kc1,uint16_t kc2,uint16_t kc3)` | Check the sequence buffer for the given keycodes.
  18. `public bool `[`leader_sequence_four_keys`](#group__leader_1ga5f71174f1afa31112108336e0d782ff2)`(uint16_t kc1,uint16_t kc2,uint16_t kc3,uint16_t kc4)` | Check the sequence buffer for the given keycodes.
  19. `public bool `[`leader_sequence_five_keys`](#group__leader_1ga2c565e3c2d21eac4b23db75a15a9fa2d)`(uint16_t kc1,uint16_t kc2,uint16_t kc3,uint16_t kc4,uint16_t kc5)` | Check the sequence buffer for the given keycodes.
  20. ## Members
  21. #### `public void `[`leader_start_user`](#group__leader_1gae7b6746b0c6bd83cada1e770a7d8315d)`(void)`
  22. User callback, invoked when the leader sequence begins.
  23. #### `public void `[`leader_end_user`](#group__leader_1ga20986d88ffc5f21f00eab4b5e9a03188)`(void)`
  24. User callback, invoked when the leader sequence ends.
  25. #### `public void `[`leader_start`](#group__leader_1ga1f5dad3a2df12d29023e48852ff638ba)`(void)`
  26. Begin the leader sequence, resetting the buffer and timer.
  27. #### `public void `[`leader_end`](#group__leader_1ga7ecc035ad29aed6d5ee3848725234b6c)`(void)`
  28. End the leader sequence.
  29. #### `public void `[`leader_task`](#group__leader_1gaa451b483f86840a1a3a773a074b73019)`(void)`
  30. #### `public bool `[`leader_sequence_active`](#group__leader_1gab52594aae07ec2f59cc6cc00dce9cc0b)`(void)`
  31. Whether the leader sequence is active.
  32. #### `public bool `[`leader_sequence_add`](#group__leader_1ga0b9825ee3240ffac41837664d10c36ff)`(uint16_t keycode)`
  33. Add the given keycode to the sequence buffer.
  34. If `LEADER_NO_TIMEOUT` is defined, the timer is reset if the buffer is empty.
  35. #### Parameters
  36. * `keycode` The keycode to add.
  37. #### Returns
  38. `true` if the keycode was added, `false` if the buffer is full.
  39. #### `public bool `[`leader_sequence_timed_out`](#group__leader_1gadb5905415a54ffab4a47a8d3227b3942)`(void)`
  40. Whether the leader sequence has reached the timeout.
  41. If `LEADER_NO_TIMEOUT` is defined, the buffer must also contain at least one key.
  42. #### `public void `[`leader_reset_timer`](#group__leader_1ga5a9246dc3f952a5522c188f747ce0722)`(void)`
  43. Reset the leader sequence timer.
  44. #### `public bool `[`leader_sequence_one_key`](#group__leader_1ga6bcdd330c94f7074361c21ad8ee901fd)`(uint16_t kc)`
  45. Check the sequence buffer for the given keycode.
  46. #### Parameters
  47. * `kc` The keycode to check.
  48. #### Returns
  49. `true` if the sequence buffer matches.
  50. #### `public bool `[`leader_sequence_two_keys`](#group__leader_1ga6a09c0ae645990e9d219c62244c30e42)`(uint16_t kc1,uint16_t kc2)`
  51. Check the sequence buffer for the given keycodes.
  52. #### Parameters
  53. * `kc1` The first keycode to check.
  54. * `kc2` The second keycode to check.
  55. #### Returns
  56. `true` if the sequence buffer matches.
  57. #### `public bool `[`leader_sequence_three_keys`](#group__leader_1ga0dd4e91b428947bfb5ddb6fd09b29c11)`(uint16_t kc1,uint16_t kc2,uint16_t kc3)`
  58. Check the sequence buffer for the given keycodes.
  59. #### Parameters
  60. * `kc1` The first keycode to check.
  61. * `kc2` The second keycode to check.
  62. * `kc3` The third keycode to check.
  63. #### Returns
  64. `true` if the sequence buffer matches.
  65. #### `public bool `[`leader_sequence_four_keys`](#group__leader_1ga5f71174f1afa31112108336e0d782ff2)`(uint16_t kc1,uint16_t kc2,uint16_t kc3,uint16_t kc4)`
  66. Check the sequence buffer for the given keycodes.
  67. #### Parameters
  68. * `kc1` The first keycode to check.
  69. * `kc2` The second keycode to check.
  70. * `kc3` The third keycode to check.
  71. * `kc4` The fourth keycode to check.
  72. #### Returns
  73. `true` if the sequence buffer matches.
  74. #### `public bool `[`leader_sequence_five_keys`](#group__leader_1ga2c565e3c2d21eac4b23db75a15a9fa2d)`(uint16_t kc1,uint16_t kc2,uint16_t kc3,uint16_t kc4,uint16_t kc5)`
  75. Check the sequence buffer for the given keycodes.
  76. #### Parameters
  77. * `kc1` The first keycode to check.
  78. * `kc2` The second keycode to check.
  79. * `kc3` The third keycode to check.
  80. * `kc4` The fourth keycode to check.
  81. * `kc5` The fifth keycode to check.
  82. #### Returns
  83. `true` if the sequence buffer matches.