X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/ea77b9c3fc7fb9bf9d7f9604fc187c8049212a2a..b60166b327a9108b07e3069fa6568a451529ffd9:/lunaix-os/includes/lunaix/input.h diff --git a/lunaix-os/includes/lunaix/input.h b/lunaix-os/includes/lunaix/input.h index 872ea04..28c8962 100644 --- a/lunaix-os/includes/lunaix/input.h +++ b/lunaix-os/includes/lunaix/input.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -19,12 +20,15 @@ // 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 { - uint32_t pkt_type; // packet type - uint32_t scan_code; // hardware raw code - uint32_t sys_code; // driver translated code - time_t timestamp; // event timestamp + u32_t pkt_type; // packet type + u32_t scan_code; // hardware raw code + u32_t sys_code; // driver translated code + time_t timestamp; // event timestamp }; struct input_device @@ -52,6 +56,6 @@ void input_add_listener(input_evt_cb listener); struct input_device* -input_add_device(char* name_fmt, ...); +input_add_device(struct devclass* class, char* name_fmt, ...); #endif /* __LUNAIX_INPUT_H */