summaryrefslogtreecommitdiff
path: root/hid/lib/drivers
diff options
context:
space:
mode:
authortomaszduda23 <[email protected]>2022-07-22 14:14:38 +0900
committerGitHub <[email protected]>2022-07-22 08:14:38 +0300
commit3ba15e824e319926c810414b44fb30a7d98419c3 (patch)
tree54ad4e24c2bae61f73fd4becbf4bbccb5466cfed /hid/lib/drivers
parent0e0fe28cf6dd4668e12dcac4148b0790cd41df8e (diff)
Stm32 init (#100)
Diffstat (limited to 'hid/lib/drivers')
-rw-r--r--hid/lib/drivers/mouse.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hid/lib/drivers/mouse.h b/hid/lib/drivers/mouse.h
index 446fabfe..e0f4b151 100644
--- a/hid/lib/drivers/mouse.h
+++ b/hid/lib/drivers/mouse.h
@@ -31,6 +31,10 @@ namespace DRIVERS {
struct Mouse : public Driver {
using Driver::Driver;
virtual void begin() {}
+
+ /**
+ * Release all keys
+ */
virtual void clear() {}
virtual void sendButtons(
bool left_select, bool left_state,
@@ -42,5 +46,6 @@ namespace DRIVERS {
virtual void sendRelative(int x, int y) {}
virtual void sendWheel(int delta_y) {}
virtual bool isOffline() { return false; }
+ virtual void periodic() {}
};
}