mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
GL UI in Win32: Some basics work.
This commit is contained in:
1 parent
e7989e88d8
commit
84fd5781de
24 files changed
+168
-141
No files matched your search
@@ -86,7 +86,6 @@ EmuScreen::~EmuScreen()
|
||||
{
|
||||
if (!invalid_) {
|
||||
// If we were invalid, it would already be shutdown.
|
||||
host->PrepareShutdown();
|
||||
PSP_Shutdown();
|
||||
}
|
||||
}
|
||||
@@ -97,6 +96,16 @@ void EmuScreen::dialogFinished(const Screen *dialog, DialogResult result) {
|
||||
}
|
||||
}
|
||||
|
||||
void EmuScreen::sendMessage(const char *message, const char *value)
|
||||
{
|
||||
// External commands, like from the Windows UI.
|
||||
if (!strcmp(message, "pause")) {
|
||||
screenManager()->push(new PauseScreen());
|
||||
} else if (!strcmp(message, "stop")) {
|
||||
screenManager()->switchScreen(new MenuScreen());
|
||||
}
|
||||
}
|
||||
|
||||
inline float curve1(float x) {
|
||||
const float deadzone = 0.15f;
|
||||
const float factor = 1.0f / (1.0f - deadzone);
|
||||
@@ -171,7 +180,7 @@ void EmuScreen::update(InputState &input)
|
||||
if (input.pad_buttons_down & (PAD_BUTTON_MENU | PAD_BUTTON_BACK)) {
|
||||
if (g_Config.bBufferedRendering)
|
||||
fbo_unbind();
|
||||
screenManager()->push(new InGameMenuScreen());
|
||||
screenManager()->push(new PauseScreen());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user