mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Added function to unpause video.
This commit is contained in:
parent
304526e4c6
commit
08a2602fe2
|
@ -522,6 +522,12 @@ void GuiComponent::onPauseVideo()
|
|||
getChild(i)->onPauseVideo();
|
||||
}
|
||||
|
||||
void GuiComponent::onUnpauseVideo()
|
||||
{
|
||||
for (unsigned int i = 0; i < getChildCount(); i++)
|
||||
getChild(i)->onUnpauseVideo();
|
||||
}
|
||||
|
||||
void GuiComponent::onScreenSaverActivate()
|
||||
{
|
||||
for (unsigned int i = 0; i < getChildCount(); i++)
|
||||
|
|
|
@ -167,6 +167,7 @@ public:
|
|||
virtual void onShow();
|
||||
virtual void onHide();
|
||||
virtual void onPauseVideo();
|
||||
virtual void onUnpauseVideo();
|
||||
virtual void setRenderView(bool status) { mRenderView = status; }
|
||||
virtual bool getRenderView() { return mRenderView; };
|
||||
|
||||
|
|
|
@ -358,6 +358,13 @@ void VideoComponent::onPauseVideo()
|
|||
manageState();
|
||||
}
|
||||
|
||||
void VideoComponent::onUnpauseVideo()
|
||||
{
|
||||
mBlockPlayer = false;
|
||||
mPause = false;
|
||||
manageState();
|
||||
}
|
||||
|
||||
void VideoComponent::onScreenSaverActivate()
|
||||
{
|
||||
mBlockPlayer = true;
|
||||
|
|
|
@ -48,6 +48,7 @@ public:
|
|||
virtual void onShow() override;
|
||||
virtual void onHide() override;
|
||||
virtual void onPauseVideo() override;
|
||||
virtual void onUnpauseVideo() override;
|
||||
virtual void onScreenSaverActivate() override;
|
||||
virtual void onScreenSaverDeactivate() override;
|
||||
virtual void onGameLaunchedActivate() override;
|
||||
|
|
Loading…
Reference in a new issue