fixed multi-view mouse input sensitivity for CPMA 1.50

This commit is contained in:
myT 2017-05-03 03:45:24 +02:00
parent 1f71b7c4c7
commit 7ea3b4264c
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,8 @@
DD Mmm 17 - 1.49 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: replaced monitor gamma by a post-process gamma shader and removed r_ignorehwgamma
chg: removed stereo rendering chg: removed stereo rendering

View file

@ -289,8 +289,10 @@ void CL_MouseEvent( int dx, int dy, int time )
if ( cls.keyCatchers & KEYCATCH_UI ) { if ( cls.keyCatchers & KEYCATCH_UI ) {
VM_Call( uivm, UI_MOUSE_EVENT, dx, dy ); VM_Call( uivm, UI_MOUSE_EVENT, dx, dy );
} else if (cls.keyCatchers & KEYCATCH_CGAME) { } else if (cls.keyCatchers & KEYCATCH_CGAME) {
VM_Call (cgvm, CG_MOUSE_EVENT, dx, dy); VM_Call( cgvm, CG_MOUSE_EVENT, dx, dy );
} else { } else {
if ( cgvm )
VM_Call( cgvm, CG_MOUSE_EVENT, dx, dy );
cl.mouseDx[cl.mouseIndex] += dx; cl.mouseDx[cl.mouseIndex] += dx;
cl.mouseDy[cl.mouseIndex] += dy; cl.mouseDy[cl.mouseIndex] += dy;
} }