aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/zet6223.c
diff options
context:
space:
mode:
authorRaphael Assenat <raph@raphnet.net>2016-12-29 10:23:09 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-09 13:29:04 -0800
commit45536d373a21d441bd488f618b6e3e9bfae839f3 (patch)
treebc6f207b05a6626d616227a1951df01d7c7d766f /drivers/input/touchscreen/zet6223.c
parentInput: synaptics-rmi4 - forward upper mechanical buttons to PS/2 guest (diff)
downloadlinux-dev-45536d373a21d441bd488f618b6e3e9bfae839f3.tar.xz
linux-dev-45536d373a21d441bd488f618b6e3e9bfae839f3.zip
Input: joydev - do not report stale values on first open
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>
Diffstat (limited to 'drivers/input/touchscreen/zet6223.c')
0 files changed, 0 insertions, 0 deletions