mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 17:19:28 +01:00
Blackberry and mobile Qt buildfixes
This commit is contained in:
1 parent
820bad2d64
commit
bddebfceeb
3 files changed
+6
-4
No files matched your search
@@ -15,6 +15,7 @@
|
||||
#include "base/NKCodeFromBlackberry.h"
|
||||
|
||||
// Bad: PPSSPP includes from native
|
||||
#include "Core/System.h"
|
||||
#include "Core/Config.h"
|
||||
#include "UI/MiscScreens.h"
|
||||
|
||||
@@ -303,15 +304,14 @@ void BlackberryMain::runMain() {
|
||||
// Work in Progress
|
||||
// Currently: Render to HDMI port (eg. 1080p) when in game. Render to device when in menu.
|
||||
// Idea: Render to all displays. Controls go to internal, game goes to external(s).
|
||||
if (globalUIState == UISTATE_INGAME && !emulating)
|
||||
{
|
||||
if (GetUIState() == UISTATE_INGAME && !emulating) {
|
||||
emulating = true;
|
||||
switchDisplay(screen_emu);
|
||||
if (g_Config.iShowFPSCounter == 4) {
|
||||
int options = SCREEN_DEBUG_STATISTICS;
|
||||
screen_set_window_property_iv(screen_win[0], SCREEN_PROPERTY_DEBUG, &options);
|
||||
}
|
||||
} else if (globalUIState != UISTATE_INGAME && emulating) {
|
||||
} else if (GetUIState() != UISTATE_INGAME && emulating) {
|
||||
emulating = false;
|
||||
switchDisplay(screen_ui);
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ SDLJoystick *joystick = NULL;
|
||||
|
||||
#ifdef PPSSPP
|
||||
// Bad: PPSSPP includes from native
|
||||
#include "Core/System.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/Config.h"
|
||||
|
||||
|
||||
+2
-1
@@ -28,6 +28,7 @@ QTM_USE_NAMESPACE
|
||||
#include "base/NKCodeFromQt.h"
|
||||
|
||||
// Bad: PPSSPP includes from native
|
||||
#include "Core/System.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/Config.h"
|
||||
|
||||
@@ -132,7 +133,7 @@ protected:
|
||||
}
|
||||
break;
|
||||
case QEvent::MouseButtonDblClick:
|
||||
if (!g_Config.bShowTouchControls || globalUIState != UISTATE_INGAME)
|
||||
if (!g_Config.bShowTouchControls || GetUIState() != UISTATE_INGAME)
|
||||
emit doubleClick();
|
||||
break;
|
||||
case QEvent::MouseButtonPress:
|
||||
|
||||
Reference in new issue
Block a user