diff options
| author | 2019-08-12 22:07:00 +0000 | |
|---|---|---|
| committer | 2020-07-21 11:08:26 -0700 | |
| commit | cacd69a0846b7d506e47d9d6e1f7e53784e2d829 (patch) | |
| tree | cd311190f2a31c2115cfe1c872c08b423aa106fd /vulkan/libvulkan/api.cpp | |
| parent | dc07032296a6cd8525b5c7c1648ed7aed6f7769c (diff) | |
InputFlinger: Support amplitude control for InputDeviceVibrator
Add support for sending multi-channel rumble amplitudes to input
devices supporting FF_RUMBLE.
Bug: 38511270
Bug: 136215622
Test: Connect a gamepad whose driver supports FF_RUMBLE, find it
with the android input framework, and do something like this:
// waveform where rumble magnitude doubles every 2 seconds
VibrationEffect effect = VibrationEffect.createWaveform(
new long[] { 2000L, 2000L, 2000L, 2000L, 2000L },
new int[] { 16, 32, 64, 128, 255 },
-1);
inputDevice.getVibrator().vibrate(effect);
Change-Id: I2f059e085c106cbca2372c72d09a9f579d35e4c7
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions