Added TARGET_DISCO_F469NI in USBHOST\USBHost\TARGET_STM\USBHALHost_STM_TARGET.h
Dependents: DISCO-F469NI_USB_Disk STM32F4xx_USB_Memory
Fork of USBHOST by
Diff: USBHostHID/USBHostMouse.h
- Revision:
- 8:3e7a33f81048
- Parent:
- 5:fc157e6bd5a5
--- a/USBHostHID/USBHostMouse.h Mon Apr 30 05:37:24 2018 +0000 +++ b/USBHostHID/USBHostMouse.h Sat Jan 04 23:30:59 2020 +0000 @@ -26,7 +26,8 @@ /** * A class to communicate a USB mouse */ -class USBHostMouse : public IUSBEnumerator { +class USBHostMouse : public IUSBEnumerator +{ public: /** @@ -53,7 +54,8 @@ * * @param ptr function pointer */ - inline void attachEvent(void (*ptr)(uint8_t buttons, int8_t x, int8_t y, int8_t z)) { + inline void attachEvent(void (*ptr)(uint8_t buttons, int8_t x, int8_t y, int8_t z)) + { if (ptr != NULL) { onUpdate = ptr; } @@ -64,7 +66,8 @@ * * @param ptr function pointer */ - inline void attachButtonEvent(void (*ptr)(uint8_t buttons)) { + inline void attachButtonEvent(void (*ptr)(uint8_t buttons)) + { if (ptr != NULL) { onButtonUpdate = ptr; } @@ -75,7 +78,8 @@ * * @param ptr function pointer */ - inline void attachXEvent(void (*ptr)(int8_t x)) { + inline void attachXEvent(void (*ptr)(int8_t x)) + { if (ptr != NULL) { onXUpdate = ptr; } @@ -86,7 +90,8 @@ * * @param ptr function pointer */ - inline void attachYEvent(void (*ptr)(int8_t y)) { + inline void attachYEvent(void (*ptr)(int8_t y)) + { if (ptr != NULL) { onYUpdate = ptr; } @@ -97,7 +102,8 @@ * * @param ptr function pointer */ - inline void attachZEvent(void (*ptr)(int8_t z)) { + inline void attachZEvent(void (*ptr)(int8_t z)) + { if (ptr != NULL) { onZUpdate = ptr; }