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:
parent
4d7fc88d37
commit
e874a7e305
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user