summaryrefslogtreecommitdiff
path: root/keyboards/mechmini
diff options
context:
space:
mode:
authorLiyang HU <github.com@liyang.hu>2021-02-20 19:53:53 +0000
committerGitHub <noreply@github.com>2021-02-20 14:53:53 -0500
commitc4bd6af837ada55cd3cbc21f0e50d6a2d620bcf8 (patch)
treeb4510734d4d0a90ae95ade91e8230221cf0f79f6 /keyboards/mechmini
parent2e4f0876151d7016172fa51d1588def1c96102fc (diff)
downloadqmk_firmware-c4bd6af837ada55cd3cbc21f0e50d6a2d620bcf8.tar.gz
qmk_firmware-c4bd6af837ada55cd3cbc21f0e50d6a2d620bcf8.zip
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.
Diffstat (limited to 'keyboards/mechmini')
0 files changed, 0 insertions, 0 deletions