aboutsummaryrefslogtreecommitdiff
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 bc7ad7b9b..903e0c68e 100644
--- a/keyboards/eyeohdesigns/sprh/sprh.c
+++ b/keyboards/eyeohdesigns/sprh/sprh.c
@@ -13,4 +13,18 @@
13 * You should have received a copy of the GNU General Public License 13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#include "sprh.h" \ No newline at end of file 16#include "sprh.h"
17
18#ifdef ENCODER_ENABLE
19bool encoder_update_kb(uint8_t index, bool clockwise) {
20 if (!encoder_update_user(index, clockwise)) { return false; }
21 if (index == 0) {
22 if (clockwise) {
23 tap_code_delay(KC_VOLU, 10);
24 } else {
25 tap_code_delay(KC_VOLD, 10);
26 }
27 }
28 return true;
29}
30#endif \ No newline at end of file