android_kernel_samsung_msm8976/drivers/input
Raphael Assenat c2e42b9121 Input: joydev - do not report stale values on first open
commit 45536d373a21d441bd488f618b6e3e9bfae839f3 upstream.

Postpone axis initialization to the first open instead of doing it
in joydev_connect. This is to make sure the generated startup events
are representative of the current joystick state rather than what
it was when joydev_connect() was called, potentially much earlier.
Once the first user is connected to joydev node we'll be updating
joydev->abs[] values and subsequent clients will be getting correct
initial states as well.

This solves issues with joystick driven menus that start scrolling
up each time they are started, until the user moves the joystick to
generate events. In emulator menu setups where the menu program is
restarted every time the game exits, the repeated need to move the
joystick to stop the unintended scrolling gets old rather quickly...

Signed-off-by: Raphael Assenat <raph@raphnet.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:43:45 +02:00
..
gameport Input: initialize device counter variables with -1 2016-05-18 14:36:03 +05:30
joystick Input: iforce - validate number of endpoints before using them 2019-07-27 21:43:44 +02:00
keyboard input: keyboard: hall_ic: Fix inverted SW_LID event 2017-04-18 12:17:27 +02:00
misc Input: uinput - handle compat ioctl for UI_SET_PHYS 2019-07-27 21:41:48 +02:00
mouse This is the 3.10.98 stable release 2017-04-18 17:17:24 +02:00
serio This is the 3.10.98 stable release 2017-04-18 17:17:24 +02:00
tablet Input: kbtab - validate number of endpoints before using them 2019-07-27 21:43:44 +02:00
touchscreen Input: wacom_w8001 - w8001_MAX_LENGTH should be 13 2019-07-27 21:41:48 +02:00
apm-power.c
evbug.c
evdev.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
ff-core.c
ff-memless.c
hall_sensor.c input: sensors: add hall sensor for msm8909 SKUE 2015-01-19 09:59:59 +08:00
input-compat.c
input-compat.h
input-mt.c
input-polldev.c
input.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
joydev.c Input: joydev - do not report stale values on first open 2019-07-27 21:43:45 +02:00
Kconfig input: sensors: add hall sensor Kconfig and Makefile 2014-12-24 23:39:14 -08:00
keycombo.c
keyreset.c input: Made keyreset more robust 2015-03-19 14:52:19 -07:00
Makefile Import latest Samsung release 2017-04-18 03:43:52 +02:00
matrix-keymap.c
mousedev.c
sec_cmd.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
sparse-keymap.c