mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +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();
|
getChild(i)->onPauseVideo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GuiComponent::onUnpauseVideo()
|
||||||
|
{
|
||||||
|
for (unsigned int i = 0; i < getChildCount(); i++)
|
||||||
|
getChild(i)->onUnpauseVideo();
|
||||||
|
}
|
||||||
|
|
||||||
void GuiComponent::onScreenSaverActivate()
|
void GuiComponent::onScreenSaverActivate()
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < getChildCount(); i++)
|
for (unsigned int i = 0; i < getChildCount(); i++)
|
||||||
|
|
|
@ -167,6 +167,7 @@ public:
|
||||||
virtual void onShow();
|
virtual void onShow();
|
||||||
virtual void onHide();
|
virtual void onHide();
|
||||||
virtual void onPauseVideo();
|
virtual void onPauseVideo();
|
||||||
|
virtual void onUnpauseVideo();
|
||||||
virtual void setRenderView(bool status) { mRenderView = status; }
|
virtual void setRenderView(bool status) { mRenderView = status; }
|
||||||
virtual bool getRenderView() { return mRenderView; };
|
virtual bool getRenderView() { return mRenderView; };
|
||||||
|
|
||||||
|
|
|
@ -358,6 +358,13 @@ void VideoComponent::onPauseVideo()
|
||||||
manageState();
|
manageState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void VideoComponent::onUnpauseVideo()
|
||||||
|
{
|
||||||
|
mBlockPlayer = false;
|
||||||
|
mPause = false;
|
||||||
|
manageState();
|
||||||
|
}
|
||||||
|
|
||||||
void VideoComponent::onScreenSaverActivate()
|
void VideoComponent::onScreenSaverActivate()
|
||||||
{
|
{
|
||||||
mBlockPlayer = true;
|
mBlockPlayer = true;
|
||||||
|
|
|
@ -48,6 +48,7 @@ public:
|
||||||
virtual void onShow() override;
|
virtual void onShow() override;
|
||||||
virtual void onHide() override;
|
virtual void onHide() override;
|
||||||
virtual void onPauseVideo() override;
|
virtual void onPauseVideo() override;
|
||||||
|
virtual void onUnpauseVideo() override;
|
||||||
virtual void onScreenSaverActivate() override;
|
virtual void onScreenSaverActivate() override;
|
||||||
virtual void onScreenSaverDeactivate() override;
|
virtual void onScreenSaverDeactivate() override;
|
||||||
virtual void onGameLaunchedActivate() override;
|
virtual void onGameLaunchedActivate() override;
|
||||||
|
|
Loading…
Reference in a new issue