mpv/input
Uoti Urpala 5c4b059f16 input: rewrite -key-fifo-size limiting logic
Instead of strictly limiting the number of total entries in the
internal fifo, make the overall buffer bigger and try to limit entries
based on how many bound commands they're expected to generate. Now
doubleclick and button down events aren't counted for that limit.
Normally the sequence down-doubleclick-up generates at most one
command, so this better matches the quantity we actually want to
limit. Also add a mechanism to clear the button combination state kept
by input.c when the fifo is full; this avoids "stuck button" problems
due to button release events being dropped.

The key combination state clearing is partially based on MPlayer 1
changes by Reimar Döffinger (though overall the effects of this commit
are quite different). It still doesn't make "stuck button" problems
completely impossible; at least if the VO gets closed while a button
was down then nothing will send a button up event or reset state.
2011-05-02 00:44:21 +03:00
..
appleir.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
ar.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
ar.h input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
input.c input: rewrite -key-fifo-size limiting logic 2011-05-02 00:44:21 +03:00
input.h input: rewrite -key-fifo-size limiting logic 2011-05-02 00:44:21 +03:00
joystick.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
joystick.h input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
keycodes.h input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
lirc.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
lirc.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00