Add stylus support.

For issue #6.