Only emit gestures that are being listened for

This change calculates what gestures are being listening for in the event path, and saves that list per pointer.