feat: better rtc framework which aims to remove single rtc restrictions.
[lunaix-os.git] / lunaix-os / includes / lunaix / input.h
index 76eee9ed33a804690e8338c9f282c88194e6a1dc..9f7008f450247a5050e866bf2ff459248f1e2219 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <lunaix/clock.h>
 #include <lunaix/device.h>
+#include <lunaix/ds/ldga.h>
 #include <lunaix/ds/llist.h>
 #include <lunaix/ds/waitq.h>
 #include <lunaix/types.h>
@@ -19,6 +20,9 @@
 // vector (e.g. mice wheel scroll, mice maneuver)
 #define PKT_VECTOR 0x3
 
+#define EXPORT_INPUT_DEV(id, init_fn)                                          \
+    export_ldga_el(inputdev, id, ptr_t, init_fn)
+
 struct input_evt_pkt
 {
     u32_t pkt_type;   // packet type