Detect active application

If twitter app is running it sends AUX mouse events, and
if C4D is running is sends TABLET_POINT subType for click events.