mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Android: Only keep the screen bright ingame.
This commit is contained in:
1 parent
97546d30ff
commit
a8083b9684
2 files changed
+20
-3
No files matched your search
@@ -30,6 +30,7 @@
|
||||
#include <condition_variable>
|
||||
|
||||
#include "base/timeutil.h"
|
||||
#include "base/NativeApp.h"
|
||||
#include "math/math_util.h"
|
||||
#include "thread/threadutil.h"
|
||||
#include "util/text/utf8.h"
|
||||
@@ -106,6 +107,16 @@ void UpdateUIState(GlobalUIState newState) {
|
||||
if (globalUIState != newState && globalUIState != UISTATE_EXIT) {
|
||||
globalUIState = newState;
|
||||
host->UpdateDisassembly();
|
||||
const char *state = nullptr;
|
||||
switch (globalUIState) {
|
||||
case UISTATE_EXIT: state = "exit"; break;
|
||||
case UISTATE_INGAME: state = "ingame"; break;
|
||||
case UISTATE_MENU: state = "menu"; break;
|
||||
case UISTATE_PAUSEMENU: state = "pausemenu"; break;
|
||||
}
|
||||
if (state) {
|
||||
System_SendMessage("uistate", state);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user