Skip to content

Commit 0596720

Browse files
authored
[Keyboard] remove non-existent method from ploopy documentation (#19957)
1 parent 0514011 commit 0596720

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

keyboards/ploopyco/trackball/readme.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,17 @@ The PCB should indicate which revision this is.
2929

3030
While the defaults are designed so that it can be plugged in and used right away, there are a number of things that you may want to change. Such as adding DPI control, or to use the ball to scroll while holding a button. To allow for this sort of control, there is a callback for both the scroll wheel and the mouse sensor.
3131

32-
The default behavior for this is:
3332

3433
```c
35-
void process_wheel_user(report_mouse_t* mouse_report, int16_t h, int16_t v) {
36-
mouse_report->h = h;
37-
mouse_report->v = v;
38-
}
39-
40-
void process_mouse_user(report_mouse_t* mouse_report, int16_t x, int16_t y) {
41-
mouse_report->x = x;
42-
mouse_report->y = y;
34+
report_mouse_t pointing_device_task_user(report_mouse_t mouse_report){
35+
// executed each time the sensor is updated
36+
// mouse_report.<attribute> - can be used to access indivdual mouse attributes
37+
return mouse_report;
4338
}
4439
```
4540
41+
More information on `report_mouse_t` may be found [here](https://docs.qmk.fm/#/feature_pointing_device?id=manipulating-mouse-reports).
42+
4643
This should allow you to more heavily customize the behavior.
4744
4845
Alternatively, the `process_wheel` and `process_mouse` functions can both be replaced too, to allow for even more functionality.

0 commit comments

Comments
 (0)