physical buttons working
Note that when the physical button goes down, we do not immediately
send a button-down gesture, but wait a little while. This is because
on some hardware, we don't see the finger state until a bit after the
button goes down. If we were to react immediately to the physical
button down, we'd send left-button down (sometimes), but then the next
hardware state, we may see fingers that indicate this should have been
a right click.
BUG=chromium-os:17668
TEST=unittest; tested on device
Change-Id: I531ed7af138965e7c91f2e6b545fc9eac2e6951d
3 files changed