qmk_firmware/tmk_core/common
Liyang HU c4bd6af837
tmk_core/common/action.c: refactor for code size; merge multiple `case`s into one (#11943)
* tmk_core/common/report.h: define `enum mouse_buttons` in terms of `#define MOUSE_BTN_MASK()`

* tmk_core/common/action.c: collapse multiple `case KC_MS_BTN[1-8]:` into single `MOUSE_BTN_MASK(action.key.code - KC_MS_BTN1)`

We all love tapping on our keyboards but this is taking the piss.

This saves ~134 bytes on my ATmega32.
2021-02-20 14:53:53 -05:00
..
arm_atsam Refactor platform logic within print.h (#11863) 2021-02-14 01:44:22 +00:00
avr Merge branch 'master' into develop 2021-02-14 19:59:26 -05:00
chibios Merge branch 'master' into develop 2021-02-14 19:59:26 -05:00
test Ensure single newline at EOF for core files (#11310) 2020-12-28 04:36:32 +11:00
action.c tmk_core/common/action.c: refactor for code size; merge multiple `case`s into one (#11943) 2021-02-20 14:53:53 -05:00
action.h Add `tap_code_delay(code, delay)` (#11913) 2021-02-17 07:26:52 +11:00
action_code.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
action_layer.c Optimization for scanning less layers. (#8311) 2020-05-11 01:04:38 +01:00
action_layer.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
action_macro.c clang-format changes 2019-08-30 15:01:52 -07:00
action_macro.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
action_tapping.c 2020 May 30 Breaking Changes Update (#9215) 2020-05-30 13:14:59 -07:00
action_tapping.h manually run formatting job (#11503) 2021-01-10 22:15:29 +00:00
action_util.c 2020 November 28 Breaking Changes Update (#11053) 2020-11-28 12:02:18 -08:00
action_util.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
atomic_util.h Split gpio and atomic to platform (#11792) 2021-02-14 11:51:06 +11:00
bootloader.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
bootmagic.c Initialize Layer State on startup (#8318) 2020-08-29 14:30:02 -07:00
bootmagic.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
bootmagic_lite.c Add references for is_keyboard_left() (#10850) 2020-11-18 16:50:32 -08:00
debug.c Refactor platform logic within print.h (#11863) 2021-02-14 01:44:22 +00:00
debug.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
eeconfig.c Normalise include statements in core code (#11153) 2020-12-11 13:45:24 +11:00
eeconfig.h Format code according to conventions (#11928) 2021-02-16 11:33:03 +11:00
eeprom.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
gpio.h Split gpio and atomic to platform (#11792) 2021-02-14 11:51:06 +11:00
host.c Run clang-format manually to fix recently changed files 2019-11-17 08:25:58 -08:00
host.h New and improved lock LED callbacks (#7215) 2019-11-06 00:42:16 +00:00
host_driver.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
keyboard.c Split transport mirror (#11046) 2021-02-16 11:30:33 +11:00
keyboard.h Merge remote-tracking branch 'upstream/master' into develop 2021-01-28 10:52:59 +11:00
keycode.h Add support for 8 buttons to mouse report (#10807) 2021-01-28 04:38:34 +11:00
lib_printf.mk Refactor platform logic within print.h (#11863) 2021-02-14 01:44:22 +00:00
magic.c Initialize Layer State on startup (#8318) 2020-08-29 14:30:02 -07:00
magic.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
nodebug.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
pin_defs.h Split gpio and atomic to platform (#11792) 2021-02-14 11:51:06 +11:00
print.h Refactor platform logic within print.h (#11863) 2021-02-14 01:44:22 +00:00
printf.c Refactor platform logic within print.h (#11863) 2021-02-14 01:44:22 +00:00
progmem.h Refactor platform logic within print.h (#11863) 2021-02-14 01:44:22 +00:00
raw_hid.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
report.c format code according to conventions [skip ci] 2020-03-13 18:44:56 +00:00
report.h tmk_core/common/action.c: refactor for code size; merge multiple `case`s into one (#11943) 2021-02-20 14:53:53 -05:00
sendchar.h Refactor platform logic within print.h (#11863) 2021-02-14 01:44:22 +00:00
sendchar_null.c Initial vusb console support (#8559) 2020-05-03 01:25:39 +01:00
sendchar_uart.c clang-format changes 2019-08-30 15:01:52 -07:00
sleep_led.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
suspend.h Address wake from sleep instability (#11450) 2021-02-02 11:12:41 +11:00
sync_timer.c [Split] Sync Timer feature (#10997) 2020-12-01 10:04:42 -08:00
sync_timer.h [Split] Sync Timer feature (#10997) 2020-12-01 10:04:42 -08:00
timer.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
virtser.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
wait.h `qmk cformat` 2021-01-17 10:19:56 -08:00