M keyboards/metamechs/timberwolf/keymaps/a_ansi/keymap.c => keyboards/metamechs/timberwolf/keymaps/a_ansi/keymap.c +1 -9
@@ 33,12 33,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______ ,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______,
MO(1) ,_______,_______,_______ ,_______ ,_______,_______, _______,_______,_______,_______
)
-};
-
-void encoder_update_user(uint8_t index, bool clockwise) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
-}>
\ No newline at end of file
+};<
\ No newline at end of file
M keyboards/metamechs/timberwolf/keymaps/a_iso/keymap.c => keyboards/metamechs/timberwolf/keymaps/a_iso/keymap.c +1 -9
@@ 33,12 33,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______,
MO(1) ,_______,_______,_______ ,_______ ,_______,_______, _______,_______,_______,_______
)
-};
-
-void encoder_update_user(uint8_t index, bool clockwise) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
-}>
\ No newline at end of file
+};<
\ No newline at end of file
M keyboards/metamechs/timberwolf/keymaps/b_ansi/keymap.c => keyboards/metamechs/timberwolf/keymaps/b_ansi/keymap.c +1 -9
@@ 33,12 33,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______ ,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ ,_______,
MO(1) ,_______,_______,_______ ,_______ ,_______,_______,_______ ,_______,_______,_______
)
-};
-
-void encoder_update_user(uint8_t index, bool clockwise) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
-}>
\ No newline at end of file
+};<
\ No newline at end of file
M keyboards/metamechs/timberwolf/keymaps/b_iso/keymap.c => keyboards/metamechs/timberwolf/keymaps/b_iso/keymap.c +1 -9
@@ 33,12 33,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,
MO(1) ,_______,_______,_______ ,_______ ,_______,_______,_______ ,_______,_______,_______
)
-};
-
-void encoder_update_user(uint8_t index, bool clockwise) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
-}>
\ No newline at end of file
+};<
\ No newline at end of file
M keyboards/metamechs/timberwolf/keymaps/default/keymap.c => keyboards/metamechs/timberwolf/keymaps/default/keymap.c +1 -9
@@ 33,12 33,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,
MO(1) ,_______,_______,_______ ,_______ ,_______,_______,_______,_______,_______,_______,_______,_______
)
-};
-
-void encoder_update_user(uint8_t index, bool clockwise) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
-}>
\ No newline at end of file
+};<
\ No newline at end of file
M keyboards/metamechs/timberwolf/keymaps/prime_ansi/keymap.c => keyboards/metamechs/timberwolf/keymaps/prime_ansi/keymap.c +1 -9
@@ 33,12 33,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______ ,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ ,_______,
MO(1) ,_______,_______,_______ ,_______ ,_______,_______,_______ ,_______,_______,_______
)
-};
-
-void encoder_update_user(uint8_t index, bool clockwise) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
-}>
\ No newline at end of file
+};<
\ No newline at end of file
M keyboards/metamechs/timberwolf/keymaps/prime_iso/keymap.c => keyboards/metamechs/timberwolf/keymaps/prime_iso/keymap.c +1 -9
@@ 33,12 33,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,
MO(1) ,_______,_______,_______ ,_______ ,_______,_______,_______ ,_______,_______,_______
)
-};
-
-void encoder_update_user(uint8_t index, bool clockwise) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
-}>
\ No newline at end of file
+};<
\ No newline at end of file
M keyboards/metamechs/timberwolf/keymaps/via/keymap.c => keyboards/metamechs/timberwolf/keymaps/via/keymap.c +1 -9
@@ 49,12 49,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,
_______,_______,_______,_______ ,_______ ,_______,_______,_______,_______,_______,_______,_______,_______
)
-};
-
-void encoder_update_user(uint8_t index, bool clockwise) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
-}>
\ No newline at end of file
+};<
\ No newline at end of file
M keyboards/metamechs/timberwolf/timberwolf.c => keyboards/metamechs/timberwolf/timberwolf.c +9 -0
@@ 27,3 27,12 @@ bool led_update_kb(led_t led_state) {
}
return runDefault;
}
+
+__attribute__((weak))
+void encoder_update_user(uint8_t index, bool clockwise) {
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+}