Move pointing device driver code (#24445)
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
parent
5c85271e48
commit
f5b495e06e
23 changed files with 544 additions and 546 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "pointing_device_internal.h"
|
||||
#include "pointing_device.h"
|
||||
|
||||
#ifndef CIRQUE_PINNACLE_TIMEOUT
|
||||
# define CIRQUE_PINNACLE_TIMEOUT 20 // I2C timeout in milliseconds
|
||||
|
@ -109,6 +110,10 @@ typedef struct {
|
|||
#endif
|
||||
} pinnacle_data_t;
|
||||
|
||||
#define cirque_pinnacle_i2c_pointing_device_driver cirque_pinnacle_pointing_device_driver
|
||||
#define cirque_pinnacle_spi_pointing_device_driver cirque_pinnacle_pointing_device_driver
|
||||
const pointing_device_driver_t cirque_pinnacle_pointing_device_driver;
|
||||
|
||||
void cirque_pinnacle_init(void);
|
||||
void cirque_pinnacle_calibrate(void);
|
||||
void cirque_pinnacle_cursor_smoothing(bool enable);
|
||||
|
@ -116,3 +121,6 @@ pinnacle_data_t cirque_pinnacle_read_data(void);
|
|||
void cirque_pinnacle_scale_data(pinnacle_data_t* coordinates, uint16_t xResolution, uint16_t yResolution);
|
||||
uint16_t cirque_pinnacle_get_scale(void);
|
||||
void cirque_pinnacle_set_scale(uint16_t scale);
|
||||
uint16_t cirque_pinnacle_get_cpi(void);
|
||||
void cirque_pinnacle_set_cpi(uint16_t cpi);
|
||||
report_mouse_t cirque_pinnacle_get_report(report_mouse_t mouse_report);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue