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
|
@ -20,10 +20,8 @@
|
|||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
#include "drivers/sensors/adns5050.h"
|
||||
#include "analog.h"
|
||||
#include "opt_encoder.h"
|
||||
#include "pointing_device.h"
|
||||
|
||||
// Sensor defs
|
||||
#define OPT_ENC1 F0
|
||||
|
@ -31,10 +29,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(BL, BM, BR, BF, BB) \
|
||||
{ {BL, BM, BR, BF, BB}, }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue