diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-03-01 23:44:31 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-03-01 23:44:31 +0000 |
| commit | 32c1c8487ef4a53feb18758fcf598fc42755c898 (patch) | |
| tree | 68ec22d16eaa7d02b752b963c8f4b377f2d82f14 /win32/gui | |
| parent | bc0941498884c491629ca8ce1f11f135d799d4cf (diff) | |
| download | pcsxr-32c1c8487ef4a53feb18758fcf598fc42755c898.tar.gz | |
CPU -> Hide cursor. (Windows);
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@83295 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'win32/gui')
| -rwxr-xr-x | win32/gui/ConfigurePlugins.c | 2 | ||||
| -rwxr-xr-x | win32/gui/WndMain.c | 34 | ||||
| -rwxr-xr-x | win32/gui/plugin.c | 4 |
3 files changed, 29 insertions, 11 deletions
diff --git a/win32/gui/ConfigurePlugins.c b/win32/gui/ConfigurePlugins.c index ac578a2b..7c740e25 100755 --- a/win32/gui/ConfigurePlugins.c +++ b/win32/gui/ConfigurePlugins.c @@ -82,6 +82,7 @@ int LoadConfig() { QueryKeyV("RCntFix", Conf->RCntFix); QueryKeyV("VSyncWA", Conf->VSyncWA); QueryKeyV("Widescreen", Conf->Widescreen); + QueryKeyV("HideCursor", Conf->HideCursor); QueryKeyV("Cpu", Conf->Cpu); QueryKeyV("PsxType", Conf->PsxType); @@ -135,6 +136,7 @@ void SaveConfig() { SetKeyV("RCntFix", Conf->RCntFix); SetKeyV("VSyncWA", Conf->VSyncWA); SetKeyV("Widescreen", Conf->Widescreen); + SetKeyV("HideCursor", Conf->HideCursor); SetKeyV("Cpu", Conf->Cpu); SetKeyV("PsxType", Conf->PsxType); diff --git a/win32/gui/WndMain.c b/win32/gui/WndMain.c index 171b9d9a..04bfbcd5 100755 --- a/win32/gui/WndMain.c +++ b/win32/gui/WndMain.c @@ -260,9 +260,12 @@ void RestoreWindow() { AccBreak = 1; DestroyWindow(gApp.hWnd); CreateMainWindow(SW_SHOWNORMAL); - ShowCursor(TRUE); - SetCursor(LoadCursor(gApp.hInstance, IDC_ARROW)); - ShowCursor(TRUE); + + if(Config.HideCursor) + ShowCursor(TRUE); + + //SetCursor(LoadCursor(gApp.hInstance, IDC_ARROW)); + //ShowCursor(TRUE); if (!UseGui) PostMessage(gApp.hWnd, WM_COMMAND, ID_FILE_EXIT, 0); } @@ -479,7 +482,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { SysMessage(_("Could not load CD-ROM!")); return TRUE; } - ShowCursor(FALSE); + if(Config.HideCursor) + ShowCursor(FALSE); Running = 1; psxCpu->Execute(); return TRUE; @@ -497,7 +501,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { RestoreWindow(); return TRUE; } - ShowCursor(FALSE); + if(Config.HideCursor) + ShowCursor(FALSE); SysReset(); CdromId[0] = '\0'; CdromLabel[0] = '\0'; @@ -531,7 +536,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { SysMessage(_("Could not load CD-ROM!")); return TRUE; } - ShowCursor(FALSE); + if(Config.HideCursor) + ShowCursor(FALSE); Running = 1; psxCpu->Execute(); return TRUE; @@ -602,7 +608,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { RestoreWindow(); return TRUE; } - ShowCursor(FALSE); + if(Config.HideCursor) + ShowCursor(FALSE); Running = 1; psxCpu->Execute(); return TRUE; @@ -610,7 +617,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { case ID_EMULATOR_RUN: SetMenu(hWnd, NULL); OpenPlugins(hWnd); - ShowCursor(FALSE); + if(Config.HideCursor) + ShowCursor(FALSE); Running = 1; CheatSearchBackupMemory(); psxCpu->Execute(); @@ -625,7 +633,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { SysReset(); LoadCdrom(); - ShowCursor(FALSE); + if(Config.HideCursor) + ShowCursor(FALSE); Running = 1; psxCpu->Execute(); return TRUE; @@ -647,7 +656,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { RestoreWindow(); return TRUE; } - ShowCursor(FALSE); + if(Config.HideCursor) + ShowCursor(FALSE); Running = 1; SetCdOpenCaseTime(time(NULL) + 2); CheatSearchBackupMemory(); @@ -1327,6 +1337,7 @@ BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPar Button_SetText(GetDlgItem(hW,IDC_RCNTFIX), _("Parasite Eve 2, Vandal Hearts 1/2 Fix")); Button_SetText(GetDlgItem(hW,IDC_VSYNCWA), _("InuYasha Sengoku Battle Fix")); Button_SetText(GetDlgItem(hW,IDC_WIDESCREEN), _("Widescreen (GTE Hack)")); + Button_SetText(GetDlgItem(hW,IDC_HIDECURSOR), _("Hide cursor")); Static_SetText(GetDlgItem(hW,IDC_MISCOPT), _("Options")); Static_SetText(GetDlgItem(hW,IDC_SELPSX), _("Psx System Type")); @@ -1344,6 +1355,7 @@ BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPar Button_SetCheck(GetDlgItem(hW,IDC_RCNTFIX), Config.RCntFix); Button_SetCheck(GetDlgItem(hW,IDC_VSYNCWA), Config.VSyncWA); Button_SetCheck(GetDlgItem(hW,IDC_WIDESCREEN), Config.Widescreen); + Button_SetCheck(GetDlgItem(hW,IDC_HIDECURSOR), Config.HideCursor); ComboBox_AddString(GetDlgItem(hW,IDC_PSXTYPES), "NTSC"); ComboBox_AddString(GetDlgItem(hW,IDC_PSXTYPES), "PAL"); ComboBox_SetCurSel(GetDlgItem(hW,IDC_PSXTYPES),Config.PsxType); @@ -1388,6 +1400,7 @@ BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPar Config.RCntFix = Button_GetCheck(GetDlgItem(hW,IDC_RCNTFIX)); Config.VSyncWA = Button_GetCheck(GetDlgItem(hW,IDC_VSYNCWA)); Config.Widescreen = Button_GetCheck(GetDlgItem(hW,IDC_WIDESCREEN)); + Config.HideCursor = Button_GetCheck(GetDlgItem(hW,IDC_HIDECURSOR)); tmp = Config.Debug; Config.Debug = Button_GetCheck(GetDlgItem(hW,IDC_DEBUG)); if (tmp != Config.Debug) { @@ -1665,6 +1678,7 @@ void CreateMainMenu() { #ifdef ENABLE_NLS ADDSUBMENUS(0, 1, _("&Language")); + // wtf? if (langs != langs) free(langs); langs = (_langs*)malloc(sizeof(_langs)); strcpy(langs[0].lang, "English"); diff --git a/win32/gui/plugin.c b/win32/gui/plugin.c index 35b14acf..12cad204 100755 --- a/win32/gui/plugin.c +++ b/win32/gui/plugin.c @@ -297,7 +297,9 @@ int _OpenPlugins(HWND hWnd) { #endif SetCurrentDirectory(PcsxrDir); - ShowCursor(FALSE); + + if(Config.HideCursor) + ShowCursor(FALSE); return 0; } |
