File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ class USBHIDMouseBase: public USBHIDDevice {
65
65
template <typename T> bool sendReport (T report) { return hid.SendReport ( HID_REPORT_ID_MOUSE, &report, _type->report_size ); };
66
66
// internal use
67
67
uint16_t _onGetDescriptor (uint8_t * buffer);
68
- virtual void buttons (uint8_t b);
68
+ virtual void click (uint8_t b) = 0;
69
+ virtual void buttons (uint8_t b) = 0;
69
70
protected:
70
71
USBHID hid;
71
72
uint8_t _buttons;
@@ -77,7 +78,7 @@ class USBHIDRelativeMouse: public USBHIDMouseBase {
77
78
public:
78
79
USBHIDRelativeMouse (void ): USBHIDMouseBase(&HIDMouseRel) { }
79
80
void move (int8_t x, int8_t y, int8_t wheel = 0 , int8_t pan = 0 );
80
- void click (uint8_t b = MOUSE_LEFT);
81
+ void click (uint8_t b = MOUSE_LEFT) override ;
81
82
void buttons (uint8_t b) override ;
82
83
};
83
84
@@ -86,7 +87,7 @@ class USBHIDAbsoluteMouse: public USBHIDMouseBase {
86
87
public:
87
88
USBHIDAbsoluteMouse (void ): USBHIDMouseBase(&HIDMouseAbs) { }
88
89
void move (int16_t x, int16_t y, int8_t wheel = 0 , int8_t pan = 0 );
89
- void click (uint8_t b = MOUSE_LEFT);
90
+ void click (uint8_t b = MOUSE_LEFT) override ;
90
91
void buttons (uint8_t b) override ;
91
92
private:
92
93
int16_t _lastx = 0 ;
You can’t perform that action at this time.
0 commit comments