Liyang HU c4bd6af837 tmk_core/common/action.c: refactor for code size; merge multiple cases 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
..
2021-02-14 19:59:26 -05:00
2019-08-30 15:01:52 -07:00
2021-02-16 11:30:33 +11:00
2019-08-30 15:01:52 -07:00
2021-01-17 10:19:56 -08:00