diff options
author | Raphael Assenat <raph@raphnet.net> | 2016-12-29 10:23:09 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-09 13:29:04 -0800 |
commit | 45536d373a21d441bd488f618b6e3e9bfae839f3 (patch) | |
tree | bc6f207b05a6626d616227a1951df01d7c7d766f /Documentation/devicetree/bindings/input/twl4030-keypad.txt | |
parent | 81dec809aa728798c3ebff18c3d2d678237273aa (diff) | |
download | talos-obmc-linux-45536d373a21d441bd488f618b6e3e9bfae839f3.tar.gz talos-obmc-linux-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 'Documentation/devicetree/bindings/input/twl4030-keypad.txt')
0 files changed, 0 insertions, 0 deletions