remarkable-linux/drivers/input
Cameron Gutman ae3b4469db Input: xpad - fix Xbox One rumble stopping after 2.5 secs
Unlike previous Xbox pads, the Xbox One pad doesn't have "sticky" rumble
packets. The duration is encoded into the command and expiration is handled
by the pad firmware.

ff-memless needs pseudo-sticky behavior for rumble effects to behave
properly for long duration effects. We already specify the maximum rumble
on duration in the command packets, but it's still only good for about 2.5
seconds of rumble. This is easily reproducible running fftest's sine
vibration test.

It turns out there's a repeat count encoded in the rumble command. We can
abuse that to get the pseudo-sticky behavior needed for rumble to behave as
expected for effects with long duration.

By my math, this change should allow a single ff_effect to rumble for 10
minutes straight, which should be more than enough for most needs.

Signed-off-by: Cameron Gutman <aicommander@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2016-11-27 20:45:13 -08:00
..
gameport
joystick Input: xpad - fix Xbox One rumble stopping after 2.5 secs 2016-11-27 20:45:13 -08:00
keyboard Input: gpio_keys - set input direction explicitly 2016-11-17 09:16:33 -08:00
misc Input: soc_button_array - bail out earlier if gpiod_count is zero 2016-11-25 11:39:50 -08:00
mouse Input: elan_i2c - always output the device information 2016-10-26 16:48:15 -07:00
rmi4 Linux 4.8 2016-10-13 17:25:40 -07:00
serio Input: i8042 - fix typo from i8042_aux_close to i8042_port_close 2016-11-22 18:04:37 -08:00
tablet Input: pegasus_notetaker - directly include workqueue header 2016-08-25 10:11:32 -07:00
touchscreen Input: raydium_i2c_ts - fix spelling mistake in dev_err message 2016-11-16 17:25:02 -08:00
apm-power.c
evbug.c
evdev.c
ff-core.c
ff-memless.c
input-compat.c drivers/input: eliminate INPUT_COMPAT_TEST macro 2016-03-25 16:37:42 -07:00
input-compat.h drivers/input: eliminate INPUT_COMPAT_TEST macro 2016-03-25 16:37:42 -07:00
input-leds.c
input-mt.c Input: update input_mt_report_pointer_emulation to support hovering 2016-06-01 14:21:10 -07:00
input-polldev.c
input.c Merge branch 'for-linus' into next 2016-07-19 11:02:56 -07:00
joydev.c Input: joydev - recognize devices with Z axis as joysticks 2016-09-26 20:03:06 -07:00
Kconfig Input: synaptics-rmi4 - add support for Synaptics RMI4 devices 2016-03-10 16:02:39 -08:00
Makefile Input: synaptics-rmi4 - add support for Synaptics RMI4 devices 2016-03-10 16:02:39 -08:00
matrix-keymap.c
mousedev.c
sparse-keymap.c