~azzar1/unity/lock-autologin

Viewing all changes in revision 4182.

  • Committer: Bileto Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2016-09-01 23:56:24 UTC
  • mfrom: (3788.6.19 xi2-input-monitor)
  • Revision ID: ci-train-bot@canonical.com-20160901235624-akuz88fblhwclsyt
InputMonitor: add an unity class that monitors XInput2 events and converts them to XEvent

Clients of this class can register event handlers, and when an interested event will hit
our event filter function (that is set only if we have handlers), then we notify them
with a standard XEvent struct, converted from the XIDeviceEvent cookie.

The nice thing of this monitor is that it always reports events, despite the X grabs.

Approved by: Andrea Azzarone

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: