1#include "Library/Screen/ScreenCoverCtrl.h"
2
3namespace al {
4ScreenCoverCtrl::ScreenCoverCtrl() {}
5
6void ScreenCoverCtrl::requestCaptureScreenCover(s32 coverFrames) {
7 if (mCoverFrames < coverFrames) {
8 if (mCoverFrames <= 0)
9 mIsRequestCapture = true;
10 mCoverFrames = coverFrames;
11 }
12}
13
14void ScreenCoverCtrl::update() {
15 if (mCoverFrames >= 1) {
16 mCoverFrames--;
17 if (mCoverFrames == 0)
18 mIsRequestCapture = false;
19 }
20}
21} // namespace al
22