changed example to check if stylus was connected instead of using preferrredStylus

Similar to the current approach to fix #14, this checks if any stylus is connected, instead of checking the preferredStylus property