mirror of https://github.com/mpv-player/mpv
1136a8b6ac
This is for key bindings that use multiple mouse buttons at once. (Yes, this is weird, but MPlayer always had this feature, and apparently there are people using it!) Before this commit, clicking another mouse button while still holding the previous mouse button forced the command bound to the previous mouse button to be emitted. This is usually needed to make sure the input consumer (the player and the OSC) stays in sync with the actual mouse button state. If there's no command sent, the OSC in particular would think the button is still held down. However, sending the command is undesired behavior if you want to use these multiple-key binds. Solve this by emitting commands in this situation only if a key down command was sent earlier. Since mouse button key bindings are normally executed on key-up only, this happens with special commands like script_dispatch only (used by the OSD to track mouse buttons, but also used for other OSC bindings). See github issue #390. |
||
---|---|---|
.. | ||
input | ||
player | ||
asxparser.c | ||
asxparser.h | ||
av_common.c | ||
av_common.h | ||
av_log.c | ||
av_log.h | ||
av_opts.c | ||
av_opts.h | ||
bstr.c | ||
bstr.h | ||
charset_conv.c | ||
charset_conv.h | ||
codecs.c | ||
codecs.h | ||
cpudetect.c | ||
cpudetect.h | ||
encode.h | ||
encode_lavc.c | ||
encode_lavc.h | ||
m_config.c | ||
m_config.h | ||
m_option.c | ||
m_option.h | ||
m_property.c | ||
m_property.h | ||
mp_common.c | ||
mp_common.h | ||
mp_memory_barrier.h | ||
mp_msg.c | ||
mp_msg.h | ||
mp_ring.c | ||
mp_ring.h | ||
mp_talloc.h | ||
mpv_global.h | ||
options.c | ||
options.h | ||
parser-cfg.c | ||
parser-cfg.h | ||
parser-mpcmd.c | ||
parser-mpcmd.h | ||
path.c | ||
path.h | ||
playlist.c | ||
playlist.h | ||
playlist_parser.c | ||
playlist_parser.h | ||
resolve.h | ||
resolve_quvi.c | ||
resolve_quvi9.c | ||
version.c |