added stylus proximity control for touchscreen and docopt