mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-10 07:33:04 +00:00
* feat(navigator): a smoother scrolling experience at slower speed * doc(navigator): Fix scrolling docs, tweak defaults * chore(navigator): remove unused include * fix(trackball) inverted default horizontal scrolling
31 lines
718 B
C
31 lines
718 B
C
// Copyright 2025 ZSA Technology Labs, Inc <contact@zsa.io>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
#ifndef NAVIGATOR_SCROLL_DIVIDER
|
|
#define NAVIGATOR_SCROLL_DIVIDER 10
|
|
#endif
|
|
|
|
#ifndef NAVIGATOR_SCROLL_THRESHOLD
|
|
#define NAVIGATOR_SCROLL_THRESHOLD 0f
|
|
#endif
|
|
|
|
#ifndef NAVIGATOR_SCROLL_ACCELERATION
|
|
#define NAVIGATOR_SCROLL_ACCELERATION 1.5f
|
|
#endif
|
|
|
|
#ifndef NAVIGATOR_SCROLL_MAX_SPEED
|
|
#define NAVIGATOR_SCROLL_MAX_SPEED 8.0f
|
|
#endif
|
|
|
|
|
|
#ifdef POINTING_DEVICE_DRIVER_navigator_trackball
|
|
#define NAVIGATOR_TURBO_MULTIPLIER 3
|
|
#define NAVIGATOR_AIM_DIVIDER 3
|
|
#endif
|
|
|
|
#ifdef POINTING_DEVICE_DRIVER_navigator_trackpad
|
|
#define NAVIGATOR_TURBO_MULTIPLIER 2
|
|
#define NAVIGATOR_AIM_DIVIDER 2
|
|
#endif
|