mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
made Mouse.buttons() private. removed MOUSE_ALL macro
This commit is contained in:
parent
6f65578b99
commit
e3fa1ed039
@ -46,16 +46,16 @@ extern Serial_ Serial;
|
||||
#define MOUSE_LEFT 1
|
||||
#define MOUSE_MIDDLE 2
|
||||
#define MOUSE_RIGHT 4
|
||||
#define MOUSE_ALL (MOUSE_LEFT | MOUSE_MIDDLE | MOUSE_RIGHT)
|
||||
|
||||
class Mouse_
|
||||
{
|
||||
private:
|
||||
uint8_t _buttons;
|
||||
void buttons(uint8_t b);
|
||||
public:
|
||||
Mouse_();
|
||||
void click(uint8_t b = MOUSE_LEFT);
|
||||
void move(signed char x, signed char y, signed char wheel = 0);
|
||||
void buttons(uint8_t b);
|
||||
void move(signed char x, signed char y, signed char wheel = 0);
|
||||
void press(uint8_t b = MOUSE_LEFT); // press LEFT by default
|
||||
void release(uint8_t b = MOUSE_LEFT); // release LEFT by default
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user