quantum.h: clean up process_keycode includes (#21579)
This commit is contained in:
parent
2db947fda6
commit
4af6f1df06
2 changed files with 47 additions and 36 deletions
|
@ -16,24 +16,64 @@
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#if defined(BACKLIGHT_ENABLE) || defined(LED_MATRIX_ENABLE)
|
||||||
|
# include "process_backlight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef BLUETOOTH_ENABLE
|
#ifdef BLUETOOTH_ENABLE
|
||||||
# include "outputselect.h"
|
# include "outputselect.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef GRAVE_ESC_ENABLE
|
||||||
# include "backlight.h"
|
# include "process_grave_esc.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAPTIC_ENABLE
|
||||||
|
# include "process_haptic.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef JOYSTICK_ENABLE
|
||||||
|
# include "process_joystick.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef LEADER_ENABLE
|
||||||
|
# include "process_leader.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef MAGIC_KEYCODE_ENABLE
|
||||||
|
# include "process_magic.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MIDI_ENABLE
|
#ifdef MIDI_ENABLE
|
||||||
# include "process_midi.h"
|
# include "process_midi.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef VELOCIKEY_ENABLE
|
#ifdef PROGRAMMABLE_BUTTON_ENABLE
|
||||||
# include "velocikey.h"
|
# include "process_programmable_button.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAPTIC_ENABLE
|
#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
|
||||||
# include "haptic.h"
|
# include "process_rgb.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef SECURE_ENABLE
|
||||||
|
# include "process_secure.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef TRI_LAYER_ENABLE
|
||||||
|
# include "process_tri_layer.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef UNICODE_COMMON_ENABLE
|
||||||
|
# include "process_unicode_common.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef UNICODE_ENABLE
|
||||||
|
# include "process_unicode.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VELOCIKEY_ENABLE
|
||||||
|
# include "velocikey.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
|
|
|
@ -93,17 +93,8 @@ extern layer_state_t layer_state;
|
||||||
# include "process_music.h"
|
# include "process_music.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(BACKLIGHT_ENABLE) || defined(LED_MATRIX_ENABLE)
|
|
||||||
# include "process_backlight.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef LEADER_ENABLE
|
#ifdef LEADER_ENABLE
|
||||||
# include "leader.h"
|
# include "leader.h"
|
||||||
# include "process_leader.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef UNICODE_ENABLE
|
|
||||||
# include "process_unicode.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef UCIS_ENABLE
|
#ifdef UCIS_ENABLE
|
||||||
|
@ -116,7 +107,6 @@ extern layer_state_t layer_state;
|
||||||
|
|
||||||
#ifdef UNICODE_COMMON_ENABLE
|
#ifdef UNICODE_COMMON_ENABLE
|
||||||
# include "unicode.h"
|
# include "unicode.h"
|
||||||
# include "process_unicode_common.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef KEY_OVERRIDE_ENABLE
|
#ifdef KEY_OVERRIDE_ENABLE
|
||||||
|
@ -147,24 +137,8 @@ extern layer_state_t layer_state;
|
||||||
# include "process_space_cadet.h"
|
# include "process_space_cadet.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MAGIC_KEYCODE_ENABLE
|
|
||||||
# include "process_magic.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef JOYSTICK_ENABLE
|
|
||||||
# include "process_joystick.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PROGRAMMABLE_BUTTON_ENABLE
|
#ifdef PROGRAMMABLE_BUTTON_ENABLE
|
||||||
# include "process_programmable_button.h"
|
# include "programmable_button.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GRAVE_ESC_ENABLE
|
|
||||||
# include "process_grave_esc.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
|
|
||||||
# include "process_rgb.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HD44780_ENABLE
|
#ifdef HD44780_ENABLE
|
||||||
|
@ -177,7 +151,6 @@ extern layer_state_t layer_state;
|
||||||
|
|
||||||
#ifdef HAPTIC_ENABLE
|
#ifdef HAPTIC_ENABLE
|
||||||
# include "haptic.h"
|
# include "haptic.h"
|
||||||
# include "process_haptic.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OLED_ENABLE
|
#ifdef OLED_ENABLE
|
||||||
|
@ -202,7 +175,6 @@ extern layer_state_t layer_state;
|
||||||
|
|
||||||
#ifdef SECURE_ENABLE
|
#ifdef SECURE_ENABLE
|
||||||
# include "secure.h"
|
# include "secure.h"
|
||||||
# include "process_secure.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DYNAMIC_KEYMAP_ENABLE
|
#ifdef DYNAMIC_KEYMAP_ENABLE
|
||||||
|
@ -248,7 +220,6 @@ extern layer_state_t layer_state;
|
||||||
|
|
||||||
#ifdef TRI_LAYER_ENABLE
|
#ifdef TRI_LAYER_ENABLE
|
||||||
# include "tri_layer.h"
|
# include "tri_layer.h"
|
||||||
# include "process_tri_layer.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef REPEAT_KEY_ENABLE
|
#ifdef REPEAT_KEY_ENABLE
|
||||||
|
|
Loading…
Reference in a new issue