diff options
author | jack <0x6A73@pm.me> | 2023-04-03 10:18:17 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 10:18:17 -0600 |
commit | 36ab0c0aaa613fe0946e10133315b071c0d87012 (patch) | |
tree | ac87fe394264e2b265ad3db376bb88a91d084898 /keyboards/rart | |
parent | 7e48a4e80f4c3975cf0aae68986c7ead2576dcf3 (diff) |
Add core/fallback encoder behaviour (#20320)
Diffstat (limited to 'keyboards/rart')
-rw-r--r-- | keyboards/rart/rart75hs/rart75hs.c | 16 | ||||
-rw-r--r-- | keyboards/rart/rart75m/rart75m.c | 16 | ||||
-rw-r--r-- | keyboards/rart/rartland/rartland.c | 16 |
3 files changed, 0 insertions, 48 deletions
diff --git a/keyboards/rart/rart75hs/rart75hs.c b/keyboards/rart/rart75hs/rart75hs.c index 6c1c408a8b..58f43c87e3 100644 --- a/keyboards/rart/rart75hs/rart75hs.c +++ b/keyboards/rart/rart75hs/rart75hs.c @@ -13,19 +13,3 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "rart75hs.h" - -#ifdef ENCODER_ENABLE -bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) { return false; } - switch (index) { - case 0: - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - break; - } - return true; -} -#endif
\ No newline at end of file diff --git a/keyboards/rart/rart75m/rart75m.c b/keyboards/rart/rart75m/rart75m.c index 87a12a9a1f..7c9014386e 100644 --- a/keyboards/rart/rart75m/rart75m.c +++ b/keyboards/rart/rart75m/rart75m.c @@ -14,22 +14,6 @@ */ #include "rart75m.h" -#ifdef ENCODER_ENABLE -bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) { return false; } - switch (index) { - case 0: - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - break; - } - return true; -} -#endif - #ifdef OLED_ENABLE bool oled_task_kb(void) { if (!oled_task_user()) { diff --git a/keyboards/rart/rartland/rartland.c b/keyboards/rart/rartland/rartland.c index e4a555d128..da4be6ac8c 100644 --- a/keyboards/rart/rartland/rartland.c +++ b/keyboards/rart/rartland/rartland.c @@ -14,22 +14,6 @@ */ #include "rartland.h" -#ifdef ENCODER_ENABLE -bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) { return false; } - switch (index) { - case 0: - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - break; - } - return true; -} -#endif - #ifdef OLED_ENABLE bool oled_task_kb(void) { if (!oled_task_user()) { |