summaryrefslogtreecommitdiff
path: root/starbit.c
blob: 91052de413d40164a26a25e1d7f1ed08959d7449 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "linux/printk.h"
#include <linux/usb.h>
#include <linux/module.h>
#include <linux/kernel.h> 
#include <linux/init.h>
#include <linux/device.h>
#include <linux/hid.h>

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");