From 1f33d92f61fddbc760ba8ef506bdf9fd5138a050 Mon Sep 17 00:00:00 2001 From: tomaszduda23 Date: Mon, 11 Jul 2022 01:48:47 +0900 Subject: add mouse interface (#96) --- hid/lib/drivers/mouse.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'hid/lib/drivers/mouse.h') diff --git a/hid/lib/drivers/mouse.h b/hid/lib/drivers/mouse.h index e9092bc5..446fabfe 100644 --- a/hid/lib/drivers/mouse.h +++ b/hid/lib/drivers/mouse.h @@ -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; } }; } -- cgit v1.2.3