diff options
author | joedinkle <brandon.bonton@gmail.com> | 2022-02-01 20:32:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 20:32:27 -0800 |
commit | 50f55c61fd1a8ed2e05356945b6751866a15ade1 (patch) | |
tree | 1f9e055c2894087a212917d32114e3395b7ac681 /keyboards/eyeohdesigns/sprh/sprh.c | |
parent | c9f88d7c67e00b3689fd4afd7630bc7fcd5b7ed4 (diff) |
[Keyboard] Added keymaps for SPRH and update encoder (#16098)
Diffstat (limited to 'keyboards/eyeohdesigns/sprh/sprh.c')
-rw-r--r-- | keyboards/eyeohdesigns/sprh/sprh.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/keyboards/eyeohdesigns/sprh/sprh.c b/keyboards/eyeohdesigns/sprh/sprh.c index bc7ad7b9ba..903e0c68e2 100644 --- a/keyboards/eyeohdesigns/sprh/sprh.c +++ b/keyboards/eyeohdesigns/sprh/sprh.c @@ -13,4 +13,18 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "sprh.h"
\ No newline at end of file +#include "sprh.h" + +#ifdef ENCODER_ENABLE +bool encoder_update_kb(uint8_t index, bool clockwise) { + if (!encoder_update_user(index, clockwise)) { return false; } + if (index == 0) { + if (clockwise) { + tap_code_delay(KC_VOLU, 10); + } else { + tap_code_delay(KC_VOLD, 10); + } + } + return true; +} +#endif
\ No newline at end of file |