From 7ea3b4264c15d76e95a7a8f01e0e9cce483bbacc Mon Sep 17 00:00:00 2001 From: myT Date: Wed, 3 May 2017 03:45:24 +0200 Subject: [PATCH] fixed multi-view mouse input sensitivity for CPMA 1.50 --- changelog.txt | 2 ++ code/client/cl_input.cpp | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 2e5d7c0..eaa7acf 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,8 @@ DD Mmm 17 - 1.49 +fix: multi-view mouse input sensitivity is now the same as in the UI for CPMA 1.50 + chg: replaced monitor gamma by a post-process gamma shader and removed r_ignorehwgamma chg: removed stereo rendering diff --git a/code/client/cl_input.cpp b/code/client/cl_input.cpp index df25349..6abacfc 100644 --- a/code/client/cl_input.cpp +++ b/code/client/cl_input.cpp @@ -289,8 +289,10 @@ void CL_MouseEvent( int dx, int dy, int time ) if ( cls.keyCatchers & KEYCATCH_UI ) { VM_Call( uivm, UI_MOUSE_EVENT, dx, dy ); } else if (cls.keyCatchers & KEYCATCH_CGAME) { - VM_Call (cgvm, CG_MOUSE_EVENT, dx, dy); + VM_Call( cgvm, CG_MOUSE_EVENT, dx, dy ); } else { + if ( cgvm ) + VM_Call( cgvm, CG_MOUSE_EVENT, dx, dy ); cl.mouseDx[cl.mouseIndex] += dx; cl.mouseDy[cl.mouseIndex] += dy; }