Simple mouse device driver that increases brightness on right click and decreases the same on left click
Steps for running Mouse Driver(needs root access):
-
mknod /dev/ourDev c 90 1
-
chmod a+r+w /dev/ourDev
-
Go to the directory that contains the source code.
-
make
-
insmod mouse.ko
-
gcc test.c -o test
-
./test