1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-11 04:01:31 +00:00
mpv/input
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
..
ar.c Clarify comment as pointed out by Ulion. 2007-08-15 08:34:45 +00:00
ar.h Apple Remote support 2007-08-14 14:29:22 +00:00
input.c Make terminal input work more like VO key input 2007-08-25 04:28:08 +00:00
input.h Automatic TV channels scanning ability for MPlayer. 2007-08-23 16:09:30 +00:00
joystick.c Add comments to some preprocessor directives. 2007-06-27 23:08:18 +00:00
joystick.h Added key autorepeat support. Options to enable/disable joystick and lirc 2002-02-11 11:42:08 +00:00
lirc.c litle bug, didn't compile :( 2006-10-12 23:48:52 +00:00
lirc.h rewrote the lirc code to remove the fork 2002-10-23 22:23:12 +00:00
Makefile cosmetics: prettyprint 2007-08-14 14:30:27 +00:00
mouse.h Add double-click mouse events. 2005-11-11 13:25:48 +00:00