Refine mouse keys setup for kemonine's qvex lynepad
This commit is contained in:
parent
7c627e88a6
commit
4b5efaee41
|
@ -19,3 +19,13 @@
|
||||||
// place overrides here
|
// place overrides here
|
||||||
#undef RGBLIGHT_ANIMATIONS
|
#undef RGBLIGHT_ANIMATIONS
|
||||||
#define RGBLIGHT_LAYERS
|
#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
|
||||||
|
|
|
@ -110,14 +110,18 @@ void matrix_scan_user(void) {
|
||||||
}
|
}
|
||||||
if (enc2Up != enc2UpPrev) {
|
if (enc2Up != enc2UpPrev) {
|
||||||
if (enc2Up < ENC_TILT_THRESHOLD) {
|
if (enc2Up < ENC_TILT_THRESHOLD) {
|
||||||
|
register_code16(KC_MS_WH_UP);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
unregister_code16(KC_MS_WH_UP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (enc2Down != enc2DownPrev) {
|
if (enc2Down != enc2DownPrev) {
|
||||||
if (enc2Down < ENC_TILT_THRESHOLD) {
|
if (enc2Down < ENC_TILT_THRESHOLD) {
|
||||||
|
register_code16(KC_MS_WH_DOWN);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
unregister_code16(KC_MS_WH_DOWN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (enc2Left != enc2LeftPrev) {
|
if (enc2Left != enc2LeftPrev) {
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -19,3 +19,13 @@
|
||||||
// place overrides here
|
// place overrides here
|
||||||
#undef RGBLIGHT_ANIMATIONS
|
#undef RGBLIGHT_ANIMATIONS
|
||||||
#define RGBLIGHT_LAYERS
|
#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
|
||||||
|
|
|
@ -110,14 +110,18 @@ void matrix_scan_user(void) {
|
||||||
}
|
}
|
||||||
if (enc2Up != enc2UpPrev) {
|
if (enc2Up != enc2UpPrev) {
|
||||||
if (enc2Up < ENC_TILT_THRESHOLD) {
|
if (enc2Up < ENC_TILT_THRESHOLD) {
|
||||||
|
register_code16(KC_MS_WH_UP);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
unregister_code16(KC_MS_WH_UP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (enc2Down != enc2DownPrev) {
|
if (enc2Down != enc2DownPrev) {
|
||||||
if (enc2Down < ENC_TILT_THRESHOLD) {
|
if (enc2Down < ENC_TILT_THRESHOLD) {
|
||||||
|
register_code16(KC_MS_WH_DOWN);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
unregister_code16(KC_MS_WH_DOWN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (enc2Left != enc2LeftPrev) {
|
if (enc2Left != enc2LeftPrev) {
|
||||||
|
|
Loading…
Reference in a new issue