Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8ff8bd32 authored by Dan Sandler's avatar Dan Sandler
Browse files

Custom haptic composition for assistant launched via button.

The effect is a small ramp, a 50ms gap, and a sharp tick,
evoking the crisp snap of a sail, or a molecule's bonds
approaching and then snapping together.

It might be nice to start this effect slightly early, but
that will require more tweaking to the keypress messaging
and timers. We'll see if it's necessary.

For devices without haptic composer support, fall back to
EFFECT_DOUBLE_CLICK.

Bug: 182381083
Test: manual (literally, you have to hold the device):
      adb shell settings put global power_button_long_press 5
      adb shell input keyevent --longpress POWER
      (or just hold the power button, since you're holding
      the device)
Change-Id: I0633efd46296ca3f34e5df60be37871fb1a9fb5d
parent 0f979050
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment