summaryrefslogtreecommitdiffstats
path: root/drivers/mailbox/pl320-ipc.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/mailbox/pl320-ipc.c
parent81dec809aa728798c3ebff18c3d2d678237273aa (diff)
downloadtalos-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 'drivers/mailbox/pl320-ipc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud