mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 10:32:15 +00:00
changed keyboard input handling to pass key through to mplayer if not special to sdl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@476 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2ca3259b64
commit
f7eb664335
@ -68,6 +68,9 @@
|
||||
* Felix Buenemann <Atmosfear@users.sourceforge.net> - April 13, 2001
|
||||
* - added keymapping to toggle OSD ('o' key)
|
||||
* - added some defines to modify some sdl-out internas (see comments)
|
||||
*
|
||||
* Felix Buenemann: further changes will be visible through cvs log, don't want
|
||||
* to update this all the time.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@ -649,17 +652,19 @@ static void check_events (void)
|
||||
SDL_ShowCursor(1);
|
||||
mplayer_put_key('q');
|
||||
break;
|
||||
case SDLK_o: mplayer_put_key('o');break;
|
||||
/*case SDLK_o: mplayer_put_key('o');break;
|
||||
case SDLK_p: mplayer_put_key('p');break;
|
||||
case SDLK_SPACE: mplayer_put_key(' ');break;
|
||||
case SDLK_SPACE: mplayer_put_key(' ');break;*/
|
||||
case SDLK_UP: mplayer_put_key(KEY_UP);break;
|
||||
case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break;
|
||||
case SDLK_LEFT: mplayer_put_key(KEY_LEFT);break;
|
||||
case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT);break;
|
||||
case SDLK_PLUS:
|
||||
/*case SDLK_PLUS:
|
||||
case SDLK_KP_PLUS: mplayer_put_key('+');break;
|
||||
case SDLK_MINUS:
|
||||
case SDLK_KP_MINUS: mplayer_put_key('-');break;
|
||||
case SDLK_KP_MINUS: mplayer_put_key('-');break;*/
|
||||
default:
|
||||
mplayer_put_key(keypressed);
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user