GPIO mouse

modulename: gpio_mouse.ko

configname: CONFIG_MOUSE_GPIO

Linux Kernel Configuration
└─>Device Drivers
└─>Input device support
└─>Mice
└─>GPIO mouse
In linux kernel since version 2.6.24 (release Date: 2008-01-24)  
This driver simulates a mouse on GPIO lines of various CPUs (and some
other chips).

Say Y here if your device has buttons or a simple joystick connected
directly to GPIO lines. Your board-specific setup logic must also
provide a platform device and platform data saying which GPIOs are
used.

To compile this driver as a module, choose M here: the
module will be called gpio_mouse.

source code: