mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
fixed my previousily added bug: ifdef buggy_sdl: keypressed: default case
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1123 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9334252452
commit
6bef8b7c5c
@ -1041,19 +1041,17 @@ static void check_events (void)
|
|||||||
#ifdef BUGGY_SDL
|
#ifdef BUGGY_SDL
|
||||||
case SDL_KEYDOWN:
|
case SDL_KEYDOWN:
|
||||||
switch(event.key.keysym.sym) {
|
switch(event.key.keysym.sym) {
|
||||||
case SDLK_UP: mplayer_put_key(KEY_UP);break;
|
case SDLK_UP: mplayer_put_key(KEY_UP); break;
|
||||||
case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break;
|
case SDLK_DOWN: mplayer_put_key(KEY_DOWN); break;
|
||||||
case SDLK_LEFT: mplayer_put_key(KEY_LEFT);break;
|
case SDLK_LEFT: mplayer_put_key(KEY_LEFT); break;
|
||||||
case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT);break;
|
case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT); break;
|
||||||
case SDLK_ASTERISK:
|
case SDLK_ASTERISK:
|
||||||
case SDLK_KP_MULTIPLY:
|
case SDLK_KP_MULTIPLY:
|
||||||
case SDLK_w: mplayer_put_key('*');break;
|
case SDLK_w: mplayer_put_key('*'); break;
|
||||||
case SDLK_SLASH:
|
case SDLK_SLASH:
|
||||||
case SDLK_KP_DIVIDE:
|
case SDLK_KP_DIVIDE:
|
||||||
case SDLK_s: mplayer_put_key('/');break;
|
case SDLK_s: mplayer_put_key('/'); break;
|
||||||
default:
|
default: break;
|
||||||
mplayer_put_key(keypressed);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_KEYUP:
|
case SDL_KEYUP:
|
||||||
@ -1238,6 +1236,5 @@ uninit(void)
|
|||||||
XCloseDisplay(XDisplay);
|
XCloseDisplay(XDisplay);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
sdl_close();
|
sdl_close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user