By the way (continuing the previous paragraph), just the KOLDriver archive can help you write your own device driver (and not only for a mouse pad, but also a serious driver for a real device). This archive contains a code template, on the basis of which it is quite possible to complete the task. The author of the package is Thaddy de Koning (Netherlands).