Files
zsa_qmk_firmware/drivers/sensors/navigator.h
Florian Didron e87a3e6949
Some checks failed
Build firmware / build-firmware (default) (push) Has been cancelled
Build firmware / build-firmware (oryx) (push) Has been cancelled
Unit Tests / test (push) Has been cancelled
Feat/smoother scrolling (#420)
* 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
2025-09-12 16:15:34 +07:00

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