mpv/core
wm4 5b38a522f1 input: handle mouse movement differently
Before this commit, mouse movement events emitted a special command
("set_mouse_pos"), which was specially handled in command.c. This was
once special-cased to the dvdnav and menu code, and did nothing after
libmenu and dvdnav were removed.

Change it so that mouse movement triggers a pseudo-key ("MOUSE_MOVE"),
which then can be bound to an arbitrary command. The mouse position is
now managed in input.c. A command which actually needs the mouse
position can use either mp_input_get_mouse_pos() or mp_get_osd_mouse_pos()
to query it. The former returns raw window-space coordinates, while the
latter returns coordinates transformed to OSD- space. (Both are the same
for most VOs, except vo_xv and vo_x11, which can't render OSD in
window-space. These require extra code for mapping mouse position.)

As of this commit, there is still nothing that uses mouse movement, so
MOUSE_MOVE is mapped to "ignore" to silence warnings when moving the
mouse (much like MOUSE_BTN0).

Extend the concept of input sections. Allow multiple sections to be
active at once, and organize them as stack. Bindings from the top of
the stack are preferred to lower ones.

Each section has a mouse input section associated, inside which mouse
events are associated with the bindings. If the mouse pointer is
outside of a section's mouse area, mouse events will be dispatched to
an input section lower on the stack of active sections. This is intended
for scripting, which is to be added later. Two scripts could occupy
different areas of the screen without conflicting with each other. (If
it turns out that this mechanism is useless, we'll just remove it
again.)
2013-06-29 22:58:13 +02:00
..
input input: handle mouse movement differently 2013-06-29 22:58:13 +02:00
timeline cache: make the stream cache a proper stream that wraps other streams 2013-06-16 22:05:09 +02:00
asxparser.c
asxparser.h
av_common.c core: add common function to initialize AVPacket 2013-06-03 22:40:07 +02:00
av_common.h core: add common function to initialize AVPacket 2013-06-03 22:40:07 +02:00
av_log.c av_log: change how ffmpeg log messages are formatted 2013-06-22 20:34:47 +02:00
av_log.h
av_opts.c vf_lavfi: allow setting avopts 2013-05-26 16:44:18 +02:00
av_opts.h
bstr.c bstr: add bstrspn() 2013-04-21 03:47:05 +02:00
bstr.h bstr: add bstrto0() 2013-04-21 03:47:05 +02:00
charset_conv.c sub: libguess support for -subcp 2013-06-25 00:11:57 +02:00
charset_conv.h sub: add subtitle charset conversion 2013-06-25 00:11:56 +02:00
codecs.c core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
codecs.h core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
command.c input: handle mouse movement differently 2013-06-29 22:58:13 +02:00
command.h input: handle mouse movement differently 2013-06-29 22:58:13 +02:00
cpudetect.c
cpudetect.h
encode.h encode_lavc: simplify encoding status output; remove percentage 2013-06-20 11:17:13 +02:00
encode_lavc.c Merge branch 'sub_mess2' 2013-06-25 00:43:04 +02:00
encode_lavc.h encode_lavc: simplify encoding status output; remove percentage 2013-06-20 11:17:13 +02:00
m_config.c options: use case-sensitive comparsion for options 2013-05-15 15:30:06 +02:00
m_config.h core: add --reset-on-next-file option 2013-04-10 21:32:46 +02:00
m_option.c m_option: allow setting empty lists 2013-06-07 17:05:07 +02:00
m_option.h m_option, vf: add label support 2013-05-23 01:02:24 +02:00
m_property.c input: make input command deprecation warnings visible 2013-03-26 01:29:38 +01:00
m_property.h
m_struct.c
m_struct.h
mp_common.c cleanup: remove duplicated function, move escape parsing function 2013-02-16 23:24:46 +01:00
mp_common.h cleanup: remove duplicated function, move escape parsing function 2013-02-16 23:24:46 +01:00
mp_core.h command: add properties for playlist position 2013-06-29 22:58:12 +02:00
mp_fifo.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
mp_fifo.h
mp_memory_barrier.h core: add a spsc ringbuffer implementation 2013-06-16 18:20:39 +02:00
mp_msg.c encoding: when output is pipe: or pipe:1, avoid mp_msg to stdout 2013-04-15 13:30:21 +02:00
mp_msg.h encoding: when output is pipe: or pipe:1, avoid mp_msg to stdout 2013-04-15 13:30:21 +02:00
mp_osd.h osd: always update already visible OSD bar on seeks 2013-02-16 20:50:05 +01:00
mp_ring.c core: add a spsc ringbuffer implementation 2013-06-16 18:20:39 +02:00
mp_ring.h core: add a spsc ringbuffer implementation 2013-06-16 18:20:39 +02:00
mp_talloc.h
mplayer.c input: handle mouse movement differently 2013-06-29 22:58:13 +02:00
options.c options: rename --mkv-subtitle-preroll, --dtshd 2013-06-28 15:26:30 +02:00
options.h options: remove -lavdopts debug suboption 2013-06-28 14:42:06 +02:00
parser-cfg.c parser-cfg: fix profile-desc 2013-02-18 17:01:25 +01:00
parser-cfg.h
parser-mpcmd.c options: fix exit code when using help options 2013-05-15 16:02:52 +02:00
parser-mpcmd.h options: fix exit code when using help options 2013-05-15 16:02:52 +02:00
path.c core: support mpv directory itself as a valid location for config files on Windows 2013-05-23 01:01:41 +02:00
path.h core: add playback resume feature (manual/opt-in) 2013-05-05 20:08:11 +02:00
playlist.c command: add properties for playlist position 2013-06-29 22:58:12 +02:00
playlist.h command: add properties for playlist position 2013-06-29 22:58:12 +02:00
playlist_parser.c
playlist_parser.h
resolve.h core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
resolve_quvi.c core: rename mplayer.h and quvi.c 2013-06-28 15:40:28 +02:00
resolve_quvi9.c core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
screenshot.c screenshot: show a message on each screenshot taken 2013-02-26 01:55:52 +01:00
screenshot.h screenshot: show a message on each screenshot taken 2013-02-26 01:55:52 +01:00
subopt-helper.c
subopt-helper.h
version.c