File tree 2 files changed +24
-4
lines changed
hardware/arduino/cores/arduino 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,15 @@ bool WEAK HID_Setup(Setup& setup)
201
201
// ================================================================================
202
202
// Mouse
203
203
204
- Mouse_::Mouse_ () : _buttons(0 )
204
+ Mouse_::Mouse_ (void ) : _buttons(0 )
205
+ {
206
+ }
207
+
208
+ void Mouse_::begin (void )
209
+ {
210
+ }
211
+
212
+ void Mouse_::end (void )
205
213
{
206
214
}
207
215
@@ -253,7 +261,15 @@ bool Mouse_::isPressed(uint8_t b)
253
261
// ================================================================================
254
262
// Keyboard
255
263
256
- Keyboard_::Keyboard_ ()
264
+ Keyboard_::Keyboard_ (void )
265
+ {
266
+ }
267
+
268
+ void Keyboard_::begin (void )
269
+ {
270
+ }
271
+
272
+ void Keyboard_::end (void )
257
273
{
258
274
}
259
275
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ class Mouse_
57
57
uint8_t _buttons;
58
58
void buttons (uint8_t b);
59
59
public:
60
- Mouse_ ();
60
+ Mouse_ (void );
61
+ void begin (void );
62
+ void end (void );
61
63
void click (uint8_t b = MOUSE_LEFT);
62
64
void move (signed char x, signed char y, signed char wheel = 0 );
63
65
void press (uint8_t b = MOUSE_LEFT); // press LEFT by default
@@ -121,7 +123,9 @@ class Keyboard_ : public Print
121
123
KeyReport _keyReport;
122
124
void sendReport (KeyReport* keys);
123
125
public:
124
- Keyboard_ ();
126
+ Keyboard_ (void );
127
+ void begin (void );
128
+ void end (void );
125
129
virtual size_t write (uint8_t k) {return type (k);};
126
130
virtual size_t type (uint8_t k);
127
131
virtual size_t press (uint8_t k);
You can’t perform that action at this time.
0 commit comments