1
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 00:06:25 +01:00
mpv/osdep
uau c51c1fc668 Make terminal input work more like VO key input
The Unix version of getch2() could either return an internally buffered
key or do a second-level select() in addition to the input.c one and
then read more data. Change getch2() to always add all read keys with
mplayer_put_key() (like video output window keyboard input does) and
remove the internal select() from the Unix version. Make input.c call
mplayer_get_key() directly.

The primary motivation for this change is to make combining multiple
event sources under one select() easier. Now getch2() only needs to be
called when the corresponding fd is readable, and it will be possible to
handle events from X-based VOs with the same code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24149 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 04:28:08 +00:00
..
getch2-win.c Make terminal input work more like VO key input 2007-08-25 04:28:08 +00:00
getch2.c Make terminal input work more like VO key input 2007-08-25 04:28:08 +00:00
getch2.h Make terminal input work more like VO key input 2007-08-25 04:28:08 +00:00
gettimeofday.c Move #ifdef directives around complete files into the build system. 2007-01-10 19:07:42 +00:00
glob-win.c 100l misplaced #endif 2007-01-12 02:55:04 +00:00
glob.h Remove superfluous #ifdefs. 2007-01-11 16:55:59 +00:00
keycodes.h libvo input cleanup: remove the dependency on libinput, 2005-11-02 21:50:55 +00:00
macosx_finder_args.c introduce new 'stream' directory for all stream layer related components and split them from libmpdemux 2006-07-31 17:39:17 +00:00
Makefile Remove unused scandir() check and fallback implementation. 2007-07-17 09:45:10 +00:00
mmap_anon.c Move #ifdef directives around complete files into the build system. 2007-01-10 19:07:42 +00:00
mmap_anon.h Remove useless fd parameter for mmap_anon 2006-11-26 13:09:46 +00:00
mplayer.rc Update copyright year. 2007-03-24 13:03:18 +00:00
setenv.c Move #ifdef directives around complete files into the build system. 2007-01-10 19:07:42 +00:00
shmem.c Move #ifdef directives around complete files into the build system. 2007-01-10 19:07:42 +00:00
shmem.h mem mapped area need to be unmapped. 2003-04-12 13:52:21 +00:00
strsep.c Move #ifdef directives around complete files into the build system. 2007-01-10 19:07:42 +00:00
swab.c Move #ifdef directives around complete files into the build system. 2007-01-10 19:07:42 +00:00
timer-darwin.c Unify include paths, -I.. is in CFLAGS. 2005-11-14 00:30:37 +00:00
timer-lx.c remove useless cruft (caused error tz undefined) 2006-05-13 05:56:40 +00:00
timer-win2.c Native darwin timer update. 2004-08-04 15:48:43 +00:00
timer.h Identifiers starting with underscores are reserved. 2007-07-31 07:04:07 +00:00
vsscanf.c Move #ifdef directives around complete files into the build system. 2007-01-10 19:07:42 +00:00