From 0c24c3ad8a748c785d795449e043eb6d60fcd1db Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Mon, 17 Nov 2025 19:40:14 -0600 Subject: init --- starbit.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 starbit.c (limited to 'starbit.c') diff --git a/starbit.c b/starbit.c new file mode 100644 index 0000000..91052de --- /dev/null +++ b/starbit.c @@ -0,0 +1,36 @@ +#include "linux/printk.h" +#include +#include +#include +#include +#include +#include + +struct wiimote_dev { +}; + + +static const struct hid_device_id wiimote_ids[] = { + {HID_BLUETOOTH_DEVICE(0x057e, 0x0306)}, + {} +}; + +MODULE_DEVICE_TABLE(hid, wiimote_ids); +static int wiimote_probe(struct hid_device *hdev, const struct hid_device_id *id) +{ + printk(KERN_DEBUG "Hello I'm a wiimote mouse!"); + + return 0; +} + +static struct hid_driver wiimote_driver = { + .name = "wiimote-mouse", + .id_table = wiimote_ids, + .probe = wiimote_probe, +}; + +module_hid_driver(wiimote_driver); + +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Aaditya Dhruv"); +MODULE_DESCRIPTION("Test"); -- cgit