Rework and expand Pointing Device support (#14343)
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>
This commit is contained in:
parent
462c3a6151
commit
56e3f06a26
60 changed files with 2107 additions and 1705 deletions
|
@ -19,11 +19,8 @@
|
|||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
#include "spi_master.h"
|
||||
#include "drivers/sensors/pmw3360.h"
|
||||
#include "analog.h"
|
||||
#include "opt_encoder.h"
|
||||
#include "pointing_device.h"
|
||||
|
||||
// Sensor defs
|
||||
#define OPT_ENC1 F0
|
||||
|
@ -31,10 +28,7 @@
|
|||
#define OPT_ENC1_MUX 0
|
||||
#define OPT_ENC2_MUX 4
|
||||
|
||||
void process_mouse(report_mouse_t* mouse_report);
|
||||
void process_mouse_user(report_mouse_t* mouse_report, int16_t x, int16_t y);
|
||||
void process_wheel(report_mouse_t* mouse_report);
|
||||
void process_wheel_user(report_mouse_t* mouse_report, int16_t h, int16_t v);
|
||||
|
||||
#define LAYOUT(BLL, BL, BM, BR, BRR, BF, BB, BDPI) \
|
||||
{ {BL, BM, BR, BF, BB, BRR, BLL, BDPI}, }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue