mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 05:42:19 +00:00
ed71606e65
Until now, there were two functions to add input sources (stuff like stdin input, slave mode, lirc, joystick). Unify them to a single function (mp_input_add_fd()), and make sure the associated callbacks always have a context parameter. Change the lirc and joystick code such that they take store their state in a context struct (probably worthless), and use the new mp_msg replacements (the point of this refactoring). Additionally, get rid of the ugly USE_FD0_CMD_SELECT etc. ifdeffery in the terminal handling code. |
||
---|---|---|
.. | ||
ar | ||
glob-win.c | ||
glob.h | ||
io.c | ||
io.h | ||
macosx_application_objc.h | ||
macosx_application.h | ||
macosx_application.m | ||
macosx_compat.h | ||
macosx_events.h | ||
macosx_events.m | ||
mpv.exe.manifest | ||
mpv.rc | ||
numcores.c | ||
numcores.h | ||
path-macosx.m | ||
path-win.c | ||
path.h | ||
priority.c | ||
priority.h | ||
terminal-unix.c | ||
terminal-win.c | ||
terminal.h | ||
threads.c | ||
threads.h | ||
timer-darwin.c | ||
timer-linux.c | ||
timer-win2.c | ||
timer.c | ||
timer.h |