Remove deprecated callbacks for encoders and dip switches (#13404)

This commit is contained in:
Drashna Jaelre
2021-07-24 00:37:19 -07:00
committed by GitHub
parent 73d4d7dc2b
commit b8a1e14f53
59 changed files with 338 additions and 458 deletions

View File

@@ -2,8 +2,6 @@
#include "quantum.h"
#define encoder_update(clockwise) encoder_update_user(uint8_t index, clockwise)
// The first section contains all of the arguments
// The second converts the arguments into a two-dimensional array
#define LAYOUT( \

View File

@@ -82,8 +82,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
};
bool encoder_update(bool clockwise) {
if (clockwise) {
bool encoder_update_user(uint8_t index, bool clockwise) {
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);