forked from svalboard/vial-qmk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
azoteq: Fix the odd azoteq behavior.
Not sure why old units did not show this random pressing of mouse 2 bug. This port of: qmk/qmk_firmware#24611 Fixes it. Added axis code to make scroll more sane.
- Loading branch information
Showing
5 changed files
with
72 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "quantum.h" | ||
#include "pointing_device.h" | ||
#include "pointing_device_internal.h" | ||
#include "axis_scale.h" | ||
|
||
extern const pointing_device_driver_t real_device_driver; | ||
|
||
static axis_scale_t h = { 1, 7, 0 }; | ||
static axis_scale_t v = { 1, 7, 0 }; | ||
|
||
report_mouse_t pointing_device_driver_get_report(report_mouse_t mouse_report) { | ||
|
||
mouse_report = real_device_driver.get_report(mouse_report); | ||
|
||
mouse_report.h = add_to_axis(&h, mouse_report.h); | ||
mouse_report.v = add_to_axis(&v, mouse_report.v); | ||
|
||
return mouse_report; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters