mirror of
https://github.com/mpv-player/mpv
synced 2024-12-13 18:36:09 +00:00
Minor cosmetics.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31088 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f189c8286a
commit
07a9a495c8
@ -127,18 +127,18 @@ int sdl_default_handle_event(SDL_Event *event)
|
||||
vo_dwidth = event->resize.w;
|
||||
vo_dheight = event->resize.h;
|
||||
return VO_EVENT_RESIZE;
|
||||
|
||||
case SDL_VIDEOEXPOSE:
|
||||
return VO_EVENT_EXPOSE;
|
||||
|
||||
case SDL_MOUSEBUTTONDOWN:
|
||||
if(vo_nomouse_input)
|
||||
break;
|
||||
mplayer_put_key((MOUSE_BTN0 + event->button.button - 1) | MP_KEY_DOWN);
|
||||
if (!vo_nomouse_input)
|
||||
mplayer_put_key((MOUSE_BTN0 + event->button.button - 1) | MP_KEY_DOWN);
|
||||
break;
|
||||
|
||||
case SDL_MOUSEBUTTONUP:
|
||||
if(vo_nomouse_input)
|
||||
break;
|
||||
mplayer_put_key(MOUSE_BTN0 + event->button.button - 1);
|
||||
if(!vo_nomouse_input)
|
||||
mplayer_put_key(MOUSE_BTN0 + event->button.button - 1);
|
||||
break;
|
||||
|
||||
case SDL_KEYDOWN:
|
||||
@ -151,7 +151,9 @@ int sdl_default_handle_event(SDL_Event *event)
|
||||
mplayer_put_key(mpkey);
|
||||
break;
|
||||
|
||||
case SDL_QUIT: mplayer_put_key(KEY_CLOSE_WIN);break;
|
||||
case SDL_QUIT:
|
||||
mplayer_put_key(KEY_CLOSE_WIN);
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user