1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

ignore mouse input while dvd video is playing

This commit is contained in:
FunkyFr3sh 2023-10-16 02:12:29 +02:00
parent 4d7fc88d37
commit e874a7e305

View File

@ -755,6 +755,11 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
case WM_RBUTTONUP:
case WM_MBUTTONUP:
{
if (g_ddraw->video_window_exists)
{
return 0;
}
if (!g_config.devmode && !g_mouse_locked)
{
int x = GET_X_LPARAM(lParam);
@ -796,6 +801,11 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
case WM_MBUTTONDOWN:
case WM_MOUSEMOVE:
{
if (g_ddraw->video_window_exists)
{
return 0;
}
if (!g_config.devmode && !g_mouse_locked)
{
return 0;