|
|
@ -14,8 +14,7 @@
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "planck.h"
|
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
#include "action_layer.h"
|
|
|
|
|
|
|
|
#include "muse.h"
|
|
|
|
#include "muse.h"
|
|
|
|
|
|
|
|
|
|
|
|
extern keymap_config_t keymap_config;
|
|
|
|
extern keymap_config_t keymap_config;
|
|
|
@ -276,11 +275,21 @@ void encoder_update(bool clockwise) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (clockwise) {
|
|
|
|
if (clockwise) {
|
|
|
|
|
|
|
|
#ifdef MOUSEKEY_ENABLE
|
|
|
|
|
|
|
|
register_code(KC_MS_WH_DOWN);
|
|
|
|
|
|
|
|
unregister_code(KC_MS_WH_DOWN);
|
|
|
|
|
|
|
|
#else
|
|
|
|
register_code(KC_PGDN);
|
|
|
|
register_code(KC_PGDN);
|
|
|
|
unregister_code(KC_PGDN);
|
|
|
|
unregister_code(KC_PGDN);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
#ifdef MOUSEKEY_ENABLE
|
|
|
|
|
|
|
|
register_code(KC_MS_WH_UP);
|
|
|
|
|
|
|
|
unregister_code(KC_MS_WH_UP);
|
|
|
|
|
|
|
|
#else
|
|
|
|
register_code(KC_PGUP);
|
|
|
|
register_code(KC_PGUP);
|
|
|
|
unregister_code(KC_PGUP);
|
|
|
|
unregister_code(KC_PGUP);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|