mirror of https://github.com/mpv-player/mpv
fix key handling ?
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1820 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5181605e27
commit
3039a4f84a
|
@ -125,12 +125,16 @@ void PutImage( txSample * bf,int x,int y,int max,int ofs )
|
|||
}
|
||||
}
|
||||
|
||||
int mainis = 1;
|
||||
|
||||
void mplMainDraw( wsParamDisplay )
|
||||
{
|
||||
wItem * item;
|
||||
txSample * image = NULL;
|
||||
int i;
|
||||
|
||||
if ( appMPlayer.mainWindow.Focused == 2 ) mainis=1;
|
||||
|
||||
if ( appMPlayer.mainWindow.Visible == wsWindowNotVisible ||
|
||||
!mainVisible ) return;
|
||||
// !appMPlayer.mainWindow.Mapped ) return;
|
||||
|
@ -532,8 +536,14 @@ void mplMainKeyHandle( int State,int Type,int Key )
|
|||
case wsRight: msg=evForward10sec; break;
|
||||
case wsLeft: msg=evBackward10sec; break;
|
||||
|
||||
case wsGrayMul: msg=evIncVolume; break;
|
||||
case wsGrayDiv: msg=evDecVolume; break;
|
||||
case wsGrayMul:
|
||||
msg=evIncVolume;
|
||||
vo_x11_putkey( Key );
|
||||
break;
|
||||
case wsGrayDiv:
|
||||
msg=evDecVolume;
|
||||
vo_x11_putkey( Key );
|
||||
break;
|
||||
|
||||
case wsEnter: msg=evPlay; break;
|
||||
case wsSpace: msg=evPause; break;
|
||||
|
|
Loading…
Reference in New Issue