Synthesize events for pressure and button changes.

Even when there isn't movement on the touchscreen we should produce
events for pressure and button state changes generated by external
stylii.

Change-Id: I9fd7ba85902d5d6bfb28d5e5ff5d8f340a94c2bf
diff --git a/services/inputflinger/InputReader.h b/services/inputflinger/InputReader.h
index 451a20f..aadc37f 100644
--- a/services/inputflinger/InputReader.h
+++ b/services/inputflinger/InputReader.h
@@ -1456,7 +1456,7 @@
     // State provided by an external stylus
     StylusState mExternalStylusState;
     int64_t mExternalStylusId;
-    nsecs_t mExternalStylusDataTimeout;
+    nsecs_t mExternalStylusFusionTimeout;
     bool mExternalStylusDataPending;
 
     // True if we sent a HOVER_ENTER event.
@@ -1781,6 +1781,7 @@
     VelocityControl mWheelYVelocityControl;
 
     void resetExternalStylus();
+    void clearStylusDataPendingFlags();
 
     void sync(nsecs_t when);