mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-13 07:47:45 +00:00
Always release the mouse when not the active application.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3281 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0c5ee4d373
commit
85f9b6bc0e
1 changed files with 5 additions and 3 deletions
|
@ -605,9 +605,11 @@ void IN_UpdateGrabs(int fullscreen, int activeapp)
|
||||||
{
|
{
|
||||||
int grabmouse;
|
int grabmouse;
|
||||||
|
|
||||||
if (fullscreen)
|
if (!activeapp)
|
||||||
|
grabmouse = false;
|
||||||
|
else if (fullscreen)
|
||||||
grabmouse = true;
|
grabmouse = true;
|
||||||
else if (activeapp && _windowed_mouse.value)
|
else if (_windowed_mouse.value)
|
||||||
{
|
{
|
||||||
if (!Key_MouseShouldBeFree())
|
if (!Key_MouseShouldBeFree())
|
||||||
grabmouse = true;
|
grabmouse = true;
|
||||||
|
@ -1739,7 +1741,7 @@ void IN_MouseMove (float *movements, int pnum)
|
||||||
#ifdef USINGRAWINPUT
|
#ifdef USINGRAWINPUT
|
||||||
if (rawmicecount)
|
if (rawmicecount)
|
||||||
{
|
{
|
||||||
if (in_rawinput_combine.value && pnum == 0)
|
if ((in_rawinput_combine.value && pnum == 0) || cl.splitclients <= 1)
|
||||||
{
|
{
|
||||||
// not the right way to do this but it'll work for now
|
// not the right way to do this but it'll work for now
|
||||||
int x;
|
int x;
|
||||||
|
|
Loading…
Reference in a new issue