mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-10 15:42:25 +00:00
21 lines
622 B
C
21 lines
622 B
C
// Copyright 2025 ZSA Technology Labs, Inc <@zsa>
|
|
// Copyright 2025 Florian Didron <fdidron@zsa.io>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
// Precision trackpad driver interface
|
|
typedef struct {
|
|
void (*init)(void);
|
|
bool (*task)(void);
|
|
void (*set_cpi)(uint16_t);
|
|
uint16_t (*get_cpi)(void);
|
|
} precision_trackpad_driver_t;
|
|
|
|
// Driver registration macros (mirror pointing_device pattern)
|
|
#define PRECISION_TRACKPAD_DRIVER_CONCAT(name) name##_precision_trackpad_driver
|
|
#define PRECISION_TRACKPAD_DRIVER(name) PRECISION_TRACKPAD_DRIVER_CONCAT(name)
|