summaryrefslogtreecommitdiff
path: root/hid/lib
diff options
context:
space:
mode:
authortomaszduda23 <[email protected]>2022-07-11 01:48:47 +0900
committerGitHub <[email protected]>2022-07-10 19:48:47 +0300
commit1f33d92f61fddbc760ba8ef506bdf9fd5138a050 (patch)
tree8dbdd2fd3cfa5f77dd70eee7c580a0b414a8b4f9 /hid/lib
parent50b9bb5950fad440261160aaed747d7f83c8e520 (diff)
add mouse interface (#96)
Diffstat (limited to 'hid/lib')
-rw-r--r--hid/lib/drivers/mouse.h14
1 files changed, 13 insertions, 1 deletions
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; }
};
}