Mercurial > mplayer.hg
comparison mplayer.c @ 26016:528bdf17dd8a
OS/2 getch2() support
patch by KO Myung-Hun, komh chollian net
author | diego |
---|---|
date | Thu, 21 Feb 2008 16:20:33 +0000 |
parents | f222f84f2072 |
children | 21ffd4958ab5 |
comparison
equal
deleted
inserted
replaced
26015:f222f84f2072 | 26016:528bdf17dd8a |
---|---|
2847 // Init input system | 2847 // Init input system |
2848 current_module = "init_input"; | 2848 current_module = "init_input"; |
2849 mp_input_init(use_gui); | 2849 mp_input_init(use_gui); |
2850 mp_input_add_key_fd(-1,0,mplayer_get_key,NULL); | 2850 mp_input_add_key_fd(-1,0,mplayer_get_key,NULL); |
2851 if(slave_mode) | 2851 if(slave_mode) |
2852 #ifndef __MINGW32__ | 2852 mp_input_add_cmd_fd(0,USE_SELECT,MP_INPUT_SLAVE_CMD_FUNC,NULL); |
2853 mp_input_add_cmd_fd(0,1,NULL,NULL); | |
2854 #else | |
2855 mp_input_add_cmd_fd(0,0,mp_input_slave_cmd_func,NULL); | |
2856 #endif | |
2857 else if(!noconsolecontrols) | 2853 else if(!noconsolecontrols) |
2858 mp_input_add_event_fd(0, getch2); | 2854 mp_input_add_event_fd(0, getch2); |
2859 | 2855 |
2860 #ifdef HAVE_MENU | 2856 #ifdef HAVE_MENU |
2861 if(use_menu) { | 2857 if(use_menu) { |