mirror of https://github.com/PCSX2/pcsx2.git
PAD: Remove Force Hide (for mouse). Remove DirectInput options for mouse and keyboard
This commit is contained in:
parent
6d5fedcf97
commit
a9c2409e0f
|
@ -722,10 +722,7 @@ BOOL CALLBACK EnumCallback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef)
|
|||
{
|
||||
type = KEYBOARD;
|
||||
}
|
||||
else if ((lpddi->dwDevType & 0xFF) == DI8DEVTYPE_MOUSE)
|
||||
{
|
||||
type = MOUSE;
|
||||
}
|
||||
|
||||
IDirectInputDevice8* did;
|
||||
if (DI_OK == di8->CreateDevice(lpddi->guidInstance, &did, 0))
|
||||
{
|
||||
|
|
|
@ -971,16 +971,6 @@ ExtraWndProcResult StatusWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||
}
|
||||
return CONTINUE_BLISSFULLY;
|
||||
}
|
||||
|
||||
// All that's needed to force hiding the cursor in the proper thread.
|
||||
// Could have a special case elsewhere, but this make sure it's called
|
||||
// only once, rather than repeatedly.
|
||||
ExtraWndProcResult HideCursorProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT* output)
|
||||
{
|
||||
ShowCursor(0);
|
||||
return CONTINUE_BLISSFULLY_AND_RELEASE_PROC;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void PADconfigure()
|
||||
|
@ -1045,11 +1035,6 @@ s32 PADopen(void* pDsp)
|
|||
}
|
||||
}
|
||||
|
||||
if (config.forceHide)
|
||||
{
|
||||
hWndGSProc.Eat(HideCursorProc, 0);
|
||||
}
|
||||
|
||||
windowThreadId = GetWindowThreadProcessId(hWndTop, 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -448,33 +448,30 @@ BEGIN
|
|||
GROUPBOX "Keyboard API",IDC_STATIC,16,16,192,51
|
||||
CONTROL "Windows messaging (Recommended)",IDC_KB_WM,"Button",BS_AUTORADIOBUTTON | WS_GROUP,22,28,137,10
|
||||
CONTROL "Raw input",IDC_KB_RAW,"Button",BS_AUTORADIOBUTTON,22,40,112,10
|
||||
CONTROL "DirectInput",IDC_KB_DI,"Button",BS_AUTORADIOBUTTON,22,52,112,10
|
||||
GROUPBOX "Game Device APIs",IDC_STATIC,16,70,191,62
|
||||
CONTROL "DirectInput (Legacy)",IDC_G_DI,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,22,82,100,10
|
||||
CONTROL "XInput (Modern)",IDC_G_XI,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,22,94,100,10
|
||||
CONTROL "DualShock 3 native mode (Requires libusb)",IDC_G_DS3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,22,106,155,10
|
||||
CONTROL "Monitor when in background",IDC_BACKGROUND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,22,118,107,10
|
||||
GROUPBOX "Mouse API",IDC_STATIC,216,16,192,85
|
||||
CONTROL "Windows messaging (Recommended)",IDC_M_WM,"Button",BS_AUTORADIOBUTTON | WS_GROUP,223,27,137,10
|
||||
CONTROL "Raw input",IDC_M_RAW,"Button",BS_AUTORADIOBUTTON,223,39,112,10
|
||||
CONTROL "DirectInput",IDC_M_DI,"Button",BS_AUTORADIOBUTTON,223,51,112,10
|
||||
CONTROL "Disable",IDC_M_DISABLE,"Button",BS_AUTORADIOBUTTON,223,63,39,10
|
||||
CONTROL "Start without mouse focus",IDC_MOUSE_UNFOCUS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,223,75,98,10
|
||||
CONTROL "Always hide cursor",IDC_FORCE_HIDE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,223,87,73,10
|
||||
GROUPBOX "Pads",IDC_STATIC,7,142,410,62
|
||||
CONTROL "Port 1 Multitap",IDC_MULTITAP1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,14,152,63,10
|
||||
CONTROL "Port 2 Multitap",IDC_MULTITAP2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,14,164,63,10
|
||||
CONTROL "Multiple bindings",IDC_MULTIPLE_BINDING,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,14,176,66,10
|
||||
CONTROL "",IDC_PAD_LIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | WS_TABSTOP,81,151,183,48,WS_EX_CLIENTEDGE
|
||||
COMBOBOX IDC_PAD_TYPE,270,151,140,118,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
|
||||
GROUPBOX "Device Diagnostics",IDC_STATIC,7,207,201,72
|
||||
CONTROL "",IDC_DIAG_LIST,"SysListView32",LVS_LIST | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_VSCROLL | WS_TABSTOP,14,217,187,57,WS_EX_CLIENTEDGE
|
||||
GROUPBOX "Hacks and advanced features",IDC_STATIC,216,207,201,46
|
||||
CONTROL "Enable logging",IDC_DEBUG_FILE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,223,217,79,10
|
||||
CONTROL "Guitar Hero 2 Hack",IDC_GH2_HACK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,223,228,79,10
|
||||
PUSHBUTTON "Restore Defaults",ID_RESTORE_DEFAULTS,219,259,62,15
|
||||
PUSHBUTTON "Load Bindings",ID_LOAD,287,259,62,15
|
||||
PUSHBUTTON "Save Bindings",ID_SAVE,355,259,62,15
|
||||
GROUPBOX "Mouse API", IDC_STATIC, 216, 16, 192, 58
|
||||
CONTROL "Windows messaging (Recommended)", IDC_M_WM, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 223, 27, 137, 10
|
||||
CONTROL "Raw input", IDC_M_RAW, "Button", BS_AUTORADIOBUTTON, 223, 39, 112, 10
|
||||
CONTROL "Disable", IDC_M_DISABLE, "Button", BS_AUTORADIOBUTTON, 223, 51, 39, 10
|
||||
CONTROL "Start without mouse focus", IDC_MOUSE_UNFOCUS, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 223, 63, 98, 10
|
||||
GROUPBOX "Pads", IDC_STATIC, 7, 142, 410, 62
|
||||
CONTROL "Port 1 Multitap", IDC_MULTITAP1, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 14, 152, 63, 10
|
||||
CONTROL "Port 2 Multitap", IDC_MULTITAP2, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 14, 164, 63, 10
|
||||
CONTROL "Multiple bindings", IDC_MULTIPLE_BINDING, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 14, 176, 66, 10
|
||||
CONTROL "", IDC_PAD_LIST, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | WS_TABSTOP, 81, 151, 183, 48, WS_EX_CLIENTEDGE
|
||||
COMBOBOX IDC_PAD_TYPE, 270, 151, 140, 118, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
|
||||
GROUPBOX "Device Diagnostics", IDC_STATIC, 78, 206, 264, 74
|
||||
CONTROL "", IDC_DIAG_LIST, "SysListView32", LVS_LIST | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 84, 217, 252, 57, WS_EX_CLIENTEDGE
|
||||
GROUPBOX "Hacks and advanced features", IDC_STATIC, 216, 75, 192, 57
|
||||
CONTROL "Enable logging", IDC_DEBUG_FILE, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 223, 88, 79, 10
|
||||
CONTROL "Guitar Hero 2 Hack", IDC_GH2_HACK, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 223, 100, 79, 10
|
||||
PUSHBUTTON "Restore Defaults", ID_RESTORE_DEFAULTS, 306, 168, 62, 15
|
||||
PUSHBUTTON "Load Bindings", ID_LOAD, 271, 186, 62, 15
|
||||
PUSHBUTTON "Save Bindings", ID_SAVE, 345, 186, 62, 15
|
||||
END
|
||||
|
||||
IDD_DIAG DIALOGEX 0, 0, 190, 178
|
||||
|
|
|
@ -68,7 +68,6 @@ struct GeneralSettingsBool
|
|||
// Ties together config data structure, config files, and general config
|
||||
// dialog.
|
||||
const GeneralSettingsBool BoolOptionsInfo[] = {
|
||||
{L"Force Cursor Hide", IDC_FORCE_HIDE, 0},
|
||||
{L"Mouse Unfocus", IDC_MOUSE_UNFOCUS, 1},
|
||||
{L"Background", IDC_BACKGROUND, 1},
|
||||
{L"Multiple Bindings", IDC_MULTIPLE_BINDING, 0},
|
||||
|
@ -2678,7 +2677,6 @@ INT_PTR CALLBACK GeneralDialogProc(HWND hWnd, unsigned int msg, WPARAM wParam, L
|
|||
|
||||
AddTooltip(IDC_M_WM, hWnd);
|
||||
AddTooltip(IDC_M_RAW, hWnd);
|
||||
AddTooltip(IDC_M_DI, hWnd);
|
||||
AddTooltip(IDC_MOUSE_UNFOCUS, hWnd);
|
||||
AddTooltip(IDC_MULTIPLE_BINDING, hWnd);
|
||||
AddTooltip(IDC_PAD_LIST, hWnd);
|
||||
|
|
|
@ -43,7 +43,6 @@ public:
|
|||
{
|
||||
struct
|
||||
{
|
||||
u8 forceHide;
|
||||
u8 mouseUnfocus;
|
||||
u8 background;
|
||||
u8 multipleBinding;
|
||||
|
|
|
@ -26,7 +26,6 @@ LPWSTR pad_dialog_message(int ID, bool* updateText)
|
|||
// General tab
|
||||
case IDC_M_WM:
|
||||
case IDC_M_RAW:
|
||||
case IDC_M_DI:
|
||||
return L"Enables mouse inputs to be used as pad controls.\n\n"
|
||||
L"The mouse needs to be in focus to be used for playing. By default this is not the case as the \"Start without mouse focus\" checkbox is enabled. "
|
||||
L"Either disable this checkbox or enable/disable the mouse while playing by assigning a key to the \"Mouse\" button on the Pad tabs.\n\n"
|
||||
|
|
|
@ -14,12 +14,10 @@
|
|||
#define IDD_CONFIG_PS1_MOUSE 0x370
|
||||
#define IDD_CONFIG_NEGCON 0x371
|
||||
#define IDC_KB_DISABLE 0x344C
|
||||
#define IDC_KB_DI 0x344D
|
||||
#define IDC_KB_WM 0x344E
|
||||
#define IDC_KB_RAW 0x344F
|
||||
#define IDC_DISABLE_PAD1 0x3450
|
||||
#define IDC_M_DISABLE 0x3451
|
||||
#define IDC_M_DI 0x3452
|
||||
#define IDC_M_WM 0x3453
|
||||
#define IDC_M_RAW 0x3454
|
||||
#define IDC_G_XI 0x3455
|
||||
|
@ -33,7 +31,6 @@
|
|||
#define IDC_MULTITAP2 0x345D
|
||||
#define IDC_BACKGROUND 0x345E
|
||||
#define IDC_MULTIPLE_BINDING 0x345F
|
||||
#define IDC_FORCE_HIDE 0x3460
|
||||
#define IDC_GH2_HACK 0x3461
|
||||
#define IDC_PAD_LIST 0x3462
|
||||
#define IDC_COMBO1 0x3463
|
||||
|
|
Loading…
Reference in New Issue