lilypad: Remove escapeFullscreenHack fully.

This commit is contained in:
lightningterror 2020-09-03 02:41:47 +02:00
parent 78a899b36b
commit 27542901c8
4 changed files with 0 additions and 23 deletions

View File

@ -45,7 +45,6 @@ const wchar_t *padTypes[] = {
// Hacks or configurations which PCSX2 needs with a specific value
void PCSX2_overrideConfig(GeneralConfig &config_in_out)
{
config_in_out.escapeFullscreenHack = 0; // Not required - handled internally by PCSX2
config_in_out.saveStateTitle = 0; // Not required - handled internally by PCSX2
}

View File

@ -59,7 +59,6 @@ public:
u8 multitap[2];
u8 escapeFullscreenHack;
u8 debug;
u8 saveStateTitle;

View File

@ -1572,26 +1572,6 @@ keyEvent *CALLBACK PADkeyEvent()
PrepareActivityState(false);
}
if ((ev.key == VK_ESCAPE || (int)ev.key == -2) && ev.evt == KEYPRESS && config.escapeFullscreenHack) {
static int t;
if ((int)ev.key != -2 && IsWindowMaximized(hWndTop)) {
t = timeGetTime();
QueueKeyEvent(-2, KEYPRESS);
HANDLE hThread = CreateThread(0, 0, MaximizeWindowThreadProc, 0, 0, 0);
if (hThread)
CloseHandle(hThread);
restoreFullScreen = 1;
return 0;
}
if (ev.key != VK_ESCAPE) {
if (timeGetTime() - t < 1000) {
QueueKeyEvent(-2, KEYPRESS);
return 0;
}
}
ev.key = VK_ESCAPE;
}
if (ev.key == VK_F2 && ev.evt == KEYPRESS) {
saveStateIndex += 1 - 2 * shiftDown;
saveStateIndex = (saveStateIndex + 10) % 10;

View File

@ -207,7 +207,6 @@ const GeneralSettingsBool BoolOptionsInfo[] = {
{L"Multitap 1", 0 /*IDC_MULTITAP1*/, 0},
{L"Multitap 2", 0 /*IDC_MULTITAP2*/, 0},
{L"Escape Fullscreen Hack", 0 /*IDC_ESCAPE_FULLSCREEN_HACK*/, 1},
{L"Disable Screen Saver", 0 /*IDC_DISABLE_SCREENSAVER*/, 1},
{L"Logging", 0 /*IDC_DEBUG_FILE*/, 0},