summaryrefslogtreecommitdiffstats
path: root/src/core/Frontend.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-08 23:05:26 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-08 23:05:26 +0200
commitd781db6c0f669eaccecee246260290aa20f70020 (patch)
treefc963b1e8f3c127a49095a127850bfc1cd09111e /src/core/Frontend.cpp
parentMission audio cleanup + sound pause (diff)
parentUse CPad functions to check key states in script loader (diff)
downloadre3-d781db6c0f669eaccecee246260290aa20f70020.tar
re3-d781db6c0f669eaccecee246260290aa20f70020.tar.gz
re3-d781db6c0f669eaccecee246260290aa20f70020.tar.bz2
re3-d781db6c0f669eaccecee246260290aa20f70020.tar.lz
re3-d781db6c0f669eaccecee246260290aa20f70020.tar.xz
re3-d781db6c0f669eaccecee246260290aa20f70020.tar.zst
re3-d781db6c0f669eaccecee246260290aa20f70020.zip
Diffstat (limited to 'src/core/Frontend.cpp')
-rw-r--r--src/core/Frontend.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index bbc79d4e..975cc7da 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -4575,19 +4575,11 @@ CMenuManager::ProcessUserInput(uint8 goDown, uint8 goUp, uint8 optionSelected, u
#ifdef USE_DEBUG_SCRIPT_LOADER
if (m_nCurrScreen == MENUPAGE_START_MENU || m_nCurrScreen == MENUPAGE_NEW_GAME || m_nCurrScreen == MENUPAGE_NEW_GAME_RELOAD) {
-#ifdef RW_GL3
- if (glfwGetKey(PSGLOBAL(window), GLFW_KEY_R) == GLFW_PRESS) {
+ if (CPad::GetPad(0)->GetChar('R')) {
scriptToLoad = 1;
DoSettingsBeforeStartingAGame();
return;
}
-#elif defined _WIN32
- if (GetAsyncKeyState('R') & 0x8000) {
- scriptToLoad = 1;
- DoSettingsBeforeStartingAGame();
- return;
- }
-#endif
}
#endif