add mouse interface (#96)

This commit is contained in:
tomaszduda23
2022-07-11 01:48:47 +09:00
committed by GitHub
parent 50b9bb5950
commit 1f33d92f61
4 changed files with 58 additions and 73 deletions

View File

@@ -28,7 +28,19 @@
namespace DRIVERS {
class Mouse : public Driver {
struct Mouse : public Driver {
using Driver::Driver;
virtual void begin() {}
virtual void clear() {}
virtual void sendButtons(
bool left_select, bool left_state,
bool right_select, bool right_state,
bool middle_select, bool middle_state,
bool up_select, bool up_state,
bool down_select, bool down_state) {}
virtual void sendMove(int x, int y) {}
virtual void sendRelative(int x, int y) {}
virtual void sendWheel(int delta_y) {}
virtual bool isOffline() { return false; }
};
}