1
0

add encoder_update_kb

This commit is contained in:
Felix Jen
2023-02-08 23:01:42 -06:00
parent 902eea4b03
commit 8129f8d9f0

View File

@@ -12,3 +12,15 @@ 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 "vanguard65.h"
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }
if (clockwise) {
tap_code_delay(KC_VOLU, 10);
} else {
tap_code_delay(KC_VOLD, 10);
}
return true;
}
#endif