changeset 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 5bf4b70bd66a
children 1897ed6661bf
files libvo/vo_sdl.c
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Mon Apr 16 14:31:07 2001 +0000
+++ b/libvo/vo_sdl.c	Mon Apr 16 17:19:28 2001 +0000
@@ -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 @@
 					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;