comparison libvo/vo_sdl.c @ 475:904d1cfda2dd

changed keyboard input handling to pass key through to mplayer if not special to sdl
author atmosfear
date Mon, 16 Apr 2001 17:19:28 +0000
parents e27a365b0303
children 7eaec864e3d2
comparison
equal deleted inserted replaced
474:5bf4b70bd66a 475:904d1cfda2dd
66 * - changed fullscreen-mode-cycling from '+' to 'c' (interferred with audiosync 66 * - changed fullscreen-mode-cycling from '+' to 'c' (interferred with audiosync
67 * adjustment) 67 * adjustment)
68 * Felix Buenemann <Atmosfear@users.sourceforge.net> - April 13, 2001 68 * Felix Buenemann <Atmosfear@users.sourceforge.net> - April 13, 2001
69 * - added keymapping to toggle OSD ('o' key) 69 * - added keymapping to toggle OSD ('o' key)
70 * - added some defines to modify some sdl-out internas (see comments) 70 * - added some defines to modify some sdl-out internas (see comments)
71 *
72 * Felix Buenemann: further changes will be visible through cvs log, don't want
73 * to update this all the time.
71 */ 74 */
72 75
73 #include <stdio.h> 76 #include <stdio.h>
74 #include <stdlib.h> 77 #include <stdlib.h>
75 #include <string.h> 78 #include <string.h>
647 case SDLK_ESCAPE: 650 case SDLK_ESCAPE:
648 case SDLK_q: 651 case SDLK_q:
649 SDL_ShowCursor(1); 652 SDL_ShowCursor(1);
650 mplayer_put_key('q'); 653 mplayer_put_key('q');
651 break; 654 break;
652 case SDLK_o: mplayer_put_key('o');break; 655 /*case SDLK_o: mplayer_put_key('o');break;
653 case SDLK_p: mplayer_put_key('p');break; 656 case SDLK_p: mplayer_put_key('p');break;
654 case SDLK_SPACE: mplayer_put_key(' ');break; 657 case SDLK_SPACE: mplayer_put_key(' ');break;*/
655 case SDLK_UP: mplayer_put_key(KEY_UP);break; 658 case SDLK_UP: mplayer_put_key(KEY_UP);break;
656 case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break; 659 case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break;
657 case SDLK_LEFT: mplayer_put_key(KEY_LEFT);break; 660 case SDLK_LEFT: mplayer_put_key(KEY_LEFT);break;
658 case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT);break; 661 case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT);break;
659 case SDLK_PLUS: 662 /*case SDLK_PLUS:
660 case SDLK_KP_PLUS: mplayer_put_key('+');break; 663 case SDLK_KP_PLUS: mplayer_put_key('+');break;
661 case SDLK_MINUS: 664 case SDLK_MINUS:
662 case SDLK_KP_MINUS: mplayer_put_key('-');break; 665 case SDLK_KP_MINUS: mplayer_put_key('-');break;*/
666 default:
667 mplayer_put_key(keypressed);
663 } 668 }
664 669
665 break; 670 break;
666 } 671 }
667 } 672 }