summaryrefslogtreecommitdiffstats
path: root/libvo/vo_sdl.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-28 15:55:58 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-28 15:55:58 +0000
commit0b03ca9d27df2576fc2026389d3d60abacd3808f (patch)
tree5838eb2e4bb773832baf6f830199b51e013b847c /libvo/vo_sdl.c
parent0f45d2efeb3ae8b7fd015ec4bb178d061f6b4880 (diff)
downloadmpv-0b03ca9d27df2576fc2026389d3d60abacd3808f.tar.bz2
mpv-0b03ca9d27df2576fc2026389d3d60abacd3808f.tar.xz
removed old input code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7112 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_sdl.c')
-rw-r--r--libvo/vo_sdl.c41
1 files changed, 3 insertions, 38 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c
index 80948b107d..656e7c20f8 100644
--- a/libvo/vo_sdl.c
+++ b/libvo/vo_sdl.c
@@ -121,10 +121,8 @@
#include "x11_common.h"
#endif
-#ifdef HAVE_NEW_INPUT
#include "../input/input.h"
#include "../input/mouse.h"
-#endif
LIBVO_EXTERN(sdl)
@@ -490,6 +488,9 @@ static int sdl_open (void *plugin, void *name)
//}
#endif
+ if (vo_doublebuffering)
+ priv->sdlflags |= SDL_DOUBLEBUF;
+
/* Setup Keyrepeats (500/30 are defaults) */
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, 100 /*SDL_DEFAULT_REPEAT_INTERVAL*/);
@@ -1208,50 +1209,14 @@ static void check_events (void)
break;
case SDL_MOUSEBUTTONDOWN:
-#ifdef HAVE_NEW_INPUT
if(event.button.button == 4 || event.button.button == 5)
mplayer_put_key(MOUSE_BASE+event.button.button-1);
else
mplayer_put_key((MOUSE_BASE+event.button.button-1) | MP_KEY_DOWN);
-#else
- switch(event.button.button) {
- case 1: modifiers |= 1; break;
- case 2: modifiers |= 2; break;
- case 3: modifiers |= 4; break;
- case 4: /* wheel up */
- if ((modifiers & 1))
- mplayer_put_key(KEY_LEFT);
- else if ((modifiers & 2))
- mplayer_put_key('/');
- else if ((modifiers & 4))
- mplayer_put_key(KEY_PAGE_DOWN);
- else
- mplayer_put_key(KEY_DOWN);
- break;
- case 5: /* wheel down */
- if ((modifiers & 1))
- mplayer_put_key(KEY_RIGHT);
- else if ((modifiers & 2))
- mplayer_put_key('*');
- else if ((modifiers & 4))
- mplayer_put_key(KEY_PAGE_UP);
- else
- mplayer_put_key(KEY_UP);
- break;
- }
-#endif
break;
case SDL_MOUSEBUTTONUP:
-#ifdef HAVE_NEW_INPUT
mplayer_put_key(MOUSE_BASE+event.button.button-1);
-#else
- switch(event.button.button) {
- case 1: modifiers &= ~1; break;
- case 2: modifiers &= ~2; break;
- case 3: modifiers &= ~4; break;
- }
-#endif
break;
/* graphics mode selection shortcuts */