1
0
Fork 0

add rotary encoder support for Quark^2 (#17470)

This commit is contained in:
npspears 2022-07-02 09:01:08 -05:00 committed by GitHub
parent 5ac71ef27a
commit 60ab61386e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View file

@ -15,3 +15,15 @@
*/
#include "quark_squared.h"
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_VOLD, 10);
} else {
tap_code_delay(KC_VOLU, 10);
}
}
return true;
}