@@ -27,58 +27,48 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
27
27
28
28
/* Called once, before initialising USB. */
29
29
/* Default behaviour: do nothing. */
30
- void early_init_hook (void );
30
+ void hook_early_init (void );
31
31
32
32
/* Called once, after USB is connected and keyboard initialised. */
33
33
/* Default behaviour: do nothing. */
34
- void late_init_hook (void );
34
+ void hook_late_init (void );
35
35
36
36
/* Called once, on getting SUSPEND event from USB. */
37
37
/* Default behaviour: enables sleep LED breathing. */
38
- void suspend_entry_hook (void );
38
+ void hook_suspend_entry (void );
39
39
40
40
/* Called repeatedly during the SUSPENDed state. */
41
41
/* Default behaviour: power down and periodically check
42
42
* the matrix, cause wakeup if needed. */
43
- void suspend_loop_hook (void );
43
+ void hook_suspend_loop (void );
44
44
45
45
/* Called once, on getting WAKE event from USB. */
46
46
/* Default behaviour: disables sleep LED breathing and restores
47
47
* the "normal" indicator LED status by default. */
48
- void wakeup_hook (void );
48
+ void hook_wakeup (void );
49
49
50
50
/* Called once, on checking the bootmagic combos. */
51
51
/* Default behaviour: do nothing. */
52
- void bootmagic_hook (void );
52
+ void hook_bootmagic (void );
53
53
54
54
/* -------------------------------------
55
55
* Keyboard / periodic hooks
56
56
* ------------------------------------- */
57
57
58
- /* Called periodically from the matrix scan loop (very often!) */
58
+ /* Called periodically from the keyboard loop (very often!) */
59
59
/* Default behaviour: do nothing. */
60
- void scan_loop_hook (void );
60
+ void hook_keyboard_loop (void );
61
61
62
62
/* Called on matrix state change event (every keypress => often!) */
63
63
/* Default behaviour: do nothing. */
64
- void matrix_change_hook (keyevent_t event );
64
+ void hook_matrix_change (keyevent_t event );
65
65
66
66
/* Called on layer state change event. */
67
67
/* Default behaviour: do nothing. */
68
- void layer_change_hook (uint8_t layer_state );
69
-
70
- /* Called on tap event. */
71
- /* Default behaviour: do nothing. */
72
- // void tap_event_hook(void);
73
- /* TODO */
74
-
75
- /* Called on hold event. */
76
- /* Default behaviour: do nothing. */
77
- // void hold_event_hook(void);
78
- /* TODO */
68
+ void hook_layer_change (uint8_t layer_state );
79
69
80
70
/* Called on indicator LED update event (when reported from host). */
81
- /* Default behaviour: calls led_set (for compatibility). */
82
- void led_update_hook (uint8_t led_status );
71
+ /* Default behaviour: calls keyboard_set_leds (for compatibility). */
72
+ void hook_keyboard_leds_change (uint8_t led_status );
83
73
84
74
#endif /* _HOOKS_H_ */
0 commit comments