aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/action_tapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/action_tapping.h')
-rw-r--r--tmk_core/common/action_tapping.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/tmk_core/common/action_tapping.h b/tmk_core/common/action_tapping.h
index 1db43a442..509d5eabd 100644
--- a/tmk_core/common/action_tapping.h
+++ b/tmk_core/common/action_tapping.h
@@ -17,27 +17,24 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17#ifndef ACTION_TAPPING_H 17#ifndef ACTION_TAPPING_H
18#define ACTION_TAPPING_H 18#define ACTION_TAPPING_H
19 19
20
21
22/* period of tapping(ms) */ 20/* period of tapping(ms) */
23#ifndef TAPPING_TERM 21#ifndef TAPPING_TERM
24#define TAPPING_TERM 200 22# define TAPPING_TERM 200
25#endif 23#endif
26 24
27//#define RETRO_TAPPING // Tap anyway, even after TAPPING_TERM, as long as there was no interruption 25//#define RETRO_TAPPING // Tap anyway, even after TAPPING_TERM, as long as there was no interruption
28 26
29/* tap count needed for toggling a feature */ 27/* tap count needed for toggling a feature */
30#ifndef TAPPING_TOGGLE 28#ifndef TAPPING_TOGGLE
31#define TAPPING_TOGGLE 5 29# define TAPPING_TOGGLE 5
32#endif 30#endif
33 31
34#define WAITING_BUFFER_SIZE 8 32#define WAITING_BUFFER_SIZE 8
35 33
36
37#ifndef NO_ACTION_TAPPING 34#ifndef NO_ACTION_TAPPING
38uint16_t get_event_keycode(keyevent_t event); 35uint16_t get_event_keycode(keyevent_t event);
39uint16_t get_tapping_term(uint16_t keycode); 36uint16_t get_tapping_term(uint16_t keycode);
40void action_tapping_process(keyrecord_t record); 37void action_tapping_process(keyrecord_t record);
41#endif 38#endif
42 39
43#endif 40#endif