summaryrefslogtreecommitdiff
path: root/keyboards/eyeohdesigns/sprh/sprh.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/eyeohdesigns/sprh/sprh.c')
-rw-r--r--keyboards/eyeohdesigns/sprh/sprh.c16
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