aboutsummaryrefslogtreecommitdiffstats
path: root/docs/feature_pointing_device.md
diff options
context:
space:
mode:
authorGravatar Takeshi ISHII <2170248+mtei@users.noreply.github.com>2020-05-24 07:57:59 +0900
committerGravatar GitHub <noreply@github.com>2020-05-23 23:57:59 +0100
commitf66680d233d1abf61a38d3704a99941c62bfebbc (patch)
tree300b115fef312dc5aa71144fc088871feeaea31c /docs/feature_pointing_device.md
parent503cf18aedc8166bb5a84e15fb0c6c6da6d47f53 (diff)
downloadqmk_firmware-f66680d233d1abf61a38d3704a99941c62bfebbc.tar.gz
Fixed the indentation of the sample code in feature_pointing_device docs (#9177)
* Fixed the indentation of the sample code in docs/feature_pointing_device.md sample. * Update docs/feature_pointing_device.md Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'docs/feature_pointing_device.md')
-rw-r--r--docs/feature_pointing_device.md15
1 files changed, 6 insertions, 9 deletions
diff --git a/docs/feature_pointing_device.md b/docs/feature_pointing_device.md
index b90c341d5..f0b3d75bd 100644
--- a/docs/feature_pointing_device.md
+++ b/docs/feature_pointing_device.md
@@ -27,20 +27,17 @@ In the following example, a custom key is used to click the mouse and scroll 127
```c
case MS_SPECIAL:
- report_mouse_t currentReport = pointing_device_get_report();
- if (record->event.pressed)
- {
+ report_mouse_t currentReport = pointing_device_get_report();
+ if (record->event.pressed) {
currentReport.v = 127;
- currentReport.h = 127;
- currentReport.buttons |= MOUSE_BTN1; //this is defined in report.h
- }
- else
- {
+ currentReport.h = 127;
+ currentReport.buttons |= MOUSE_BTN1; // this is defined in report.h
+ } else {
currentReport.v = -127;
currentReport.h = -127;
currentReport.buttons &= ~MOUSE_BTN1;
}
- pointing_device_set_report(currentReport);
+ pointing_device_set_report(currentReport);
break;
```