Support event firing from pen.
Merge remote-tracking branch 'anshu/events'