From b624f32f944acdc59dcb130674c09090c5c404cb Mon Sep 17 00:00:00 2001 From: skullY Date: Fri, 30 Aug 2019 11:19:03 -0700 Subject: clang-format changes --- quantum/pointing_device.c | 45 +++++++++++++++++++-------------------------- 1 file changed, 19 insertions(+), 26 deletions(-) (limited to 'quantum/pointing_device.c') diff --git a/quantum/pointing_device.c b/quantum/pointing_device.c index e60ae8d93e..24a487b9aa 100644 --- a/quantum/pointing_device.c +++ b/quantum/pointing_device.c @@ -25,38 +25,31 @@ along with this program. If not, see . static report_mouse_t mouseReport = {}; -__attribute__ ((weak)) -void pointing_device_init(void){ - //initialize device, if that needs to be done. +__attribute__((weak)) void pointing_device_init(void) { + // initialize device, if that needs to be done. } -__attribute__ ((weak)) -void pointing_device_send(void){ - //If you need to do other things, like debugging, this is the place to do it. +__attribute__((weak)) void pointing_device_send(void) { + // If you need to do other things, like debugging, this is the place to do it. host_mouse_send(&mouseReport); - //send it and 0 it out except for buttons, so those stay until they are explicity over-ridden using update_pointing_device - mouseReport.x = 0; - mouseReport.y = 0; - mouseReport.v = 0; - mouseReport.h = 0; + // send it and 0 it out except for buttons, so those stay until they are explicity over-ridden using update_pointing_device + mouseReport.x = 0; + mouseReport.y = 0; + mouseReport.v = 0; + mouseReport.h = 0; } -__attribute__ ((weak)) -void pointing_device_task(void){ - //gather info and put it in: - //mouseReport.x = 127 max -127 min - //mouseReport.y = 127 max -127 min - //mouseReport.v = 127 max -127 min (scroll vertical) - //mouseReport.h = 127 max -127 min (scroll horizontal) - //mouseReport.buttons = 0x1F (decimal 31, binary 00011111) max (bitmask for mouse buttons 1-5, 1 is rightmost, 5 is leftmost) 0x00 min - //send the report +__attribute__((weak)) void pointing_device_task(void) { + // gather info and put it in: + // mouseReport.x = 127 max -127 min + // mouseReport.y = 127 max -127 min + // mouseReport.v = 127 max -127 min (scroll vertical) + // mouseReport.h = 127 max -127 min (scroll horizontal) + // mouseReport.buttons = 0x1F (decimal 31, binary 00011111) max (bitmask for mouse buttons 1-5, 1 is rightmost, 5 is leftmost) 0x00 min + // send the report pointing_device_send(); } -report_mouse_t pointing_device_get_report(void){ - return mouseReport; -} +report_mouse_t pointing_device_get_report(void) { return mouseReport; } -void pointing_device_set_report(report_mouse_t newMouseReport){ - mouseReport = newMouseReport; -} \ No newline at end of file +void pointing_device_set_report(report_mouse_t newMouseReport) { mouseReport = newMouseReport; } \ No newline at end of file -- cgit v1.2.3