[2/3] dinput: Prevent apps from hiding mouse cursor in the ConfigureDevices dialog.
Lucas Fialho Zawacki
lfzawacki at gmail.com
Tue Sep 13 00:54:59 CDT 2011
From: Lucas Fialho Zawacki <lfzawacki at gmail.com>
I'm not sure if that's the best solution for this, but without it the mouse pointer dissapears inside the dialog area when playing Rally Trophy.
---
dlls/dinput/config.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/dinput/config.c b/dlls/dinput/config.c
index 98a542c..1f7c2a8 100644
--- a/dlls/dinput/config.c
+++ b/dlls/dinput/config.c
@@ -377,6 +377,12 @@ static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, WPARAM w
break;
}
+ case WM_ACTIVATE:
+ /* Prevent mouse cursor from disappearing inside the dialog */
+ ShowCursor(1);
+
+ break;
+
case WM_NOTIFY:
switch (((LPNMHDR)lParam)->code)
@@ -419,12 +425,14 @@ static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, WPARAM w
case IDOK:
EndDialog(dialog, 0);
destroy_data(dialog);
+ ShowCursor(0);
break;
case IDCANCEL:
reset_actions(dialog);
EndDialog(dialog, 0);
destroy_data(dialog);
+ ShowCursor(0);
break;
case IDC_RESET:
--
1.7.0.4
More information about the wine-patches
mailing list