A linux kernel module to control mouse pointer using keyboard. This is an experiment to fiddle with drivers. It may not have any real life use case but was fun to create. It still has some bugs and needs a lot of improvements.
make to generate .ko fileinsmod mousek.ko filescd /dev and create sudo mknod /dev/mousek c 247 0 where 247 will be replaced by major number given while installing this module. This major number can be viewed in logs using dmesgsudo chmod 666 mousekrmmod mouseklsmodUse the available commands: All of the commands are being fed into dev mousek char file. This can be done by echo in /dev directory. For example -
$ echo "i dllwW" > mousek $ echo "ll" > mousek $ echo "x 434" > mousek
First character will tell what command to follow i : instruction sequence followed by commands example
echo "i udrrl" > mousek or echo "i ddrqQ" > mousek where -
x : relative value in X Axis
echo "x 250" > mouseky : relative value in Y Axis
echo "y 200" > mousekl : left click , ll : double left click
echo "l" > mousek or echo "ll" > mousekr : right click
echo "r" > mousekThis kernel module comes with a GPL license.