Refine mouse keys setup for kemonine's qvex lynepad

This commit is contained in:
kemonine 2020-11-02 00:35:43 -05:00
parent 7c627e88a6
commit 4b5efaee41
5 changed files with 1154 additions and 1106 deletions

View file

@ -19,3 +19,13 @@
// place overrides here
#undef RGBLIGHT_ANIMATIONS
#define RGBLIGHT_LAYERS
// Mouse settings
#define MOUSEKEY_DELAY 175
#define MOUSEKEY_WHEEL_DELAY 175
#define MOUSEKEY_INTERVAL 20
#define MOUSEKEY_TIME_TO_MAX 15
#define MOUSEKEY_MAX_SPEED 5
#define MOUSEKEY_WHEEL_INTERVAL 50
#define MOUSEKEY_WHEEL_TIME_TO_MAX 20
#define MOUSEKEY_WHEEL_MAX_SPEED 10

View file

@ -110,14 +110,18 @@ void matrix_scan_user(void) {
}
if (enc2Up != enc2UpPrev) {
if (enc2Up < ENC_TILT_THRESHOLD) {
register_code16(KC_MS_WH_UP);
}
else {
unregister_code16(KC_MS_WH_UP);
}
}
if (enc2Down != enc2DownPrev) {
if (enc2Down < ENC_TILT_THRESHOLD) {
register_code16(KC_MS_WH_DOWN);
}
else {
unregister_code16(KC_MS_WH_DOWN);
}
}
if (enc2Left != enc2LeftPrev) {

File diff suppressed because it is too large Load diff

View file

@ -19,3 +19,13 @@
// place overrides here
#undef RGBLIGHT_ANIMATIONS
#define RGBLIGHT_LAYERS
// Mouse settings
#define MOUSEKEY_DELAY 175
#define MOUSEKEY_WHEEL_DELAY 175
#define MOUSEKEY_INTERVAL 20
#define MOUSEKEY_TIME_TO_MAX 15
#define MOUSEKEY_MAX_SPEED 5
#define MOUSEKEY_WHEEL_INTERVAL 50
#define MOUSEKEY_WHEEL_TIME_TO_MAX 20
#define MOUSEKEY_WHEEL_MAX_SPEED 10

View file

@ -110,14 +110,18 @@ void matrix_scan_user(void) {
}
if (enc2Up != enc2UpPrev) {
if (enc2Up < ENC_TILT_THRESHOLD) {
register_code16(KC_MS_WH_UP);
}
else {
unregister_code16(KC_MS_WH_UP);
}
}
if (enc2Down != enc2DownPrev) {
if (enc2Down < ENC_TILT_THRESHOLD) {
register_code16(KC_MS_WH_DOWN);
}
else {
unregister_code16(KC_MS_WH_DOWN);
}
}
if (enc2Left != enc2LeftPrev) {