export mouse coords of "main" mouse
This commit is contained in:
parent
862196a3ab
commit
d4f8622ff4
1 changed files with 6 additions and 2 deletions
|
@ -371,8 +371,12 @@ FGInput::doMouseMotion (int x, int y)
|
||||||
if (need_warp)
|
if (need_warp)
|
||||||
fgWarpMouse(x, y);
|
fgWarpMouse(x, y);
|
||||||
}
|
}
|
||||||
m.x = x;
|
|
||||||
m.y = y;
|
if (m.x != x)
|
||||||
|
fgSetInt("/devices/status/mice/mouse/x", m.x = x);
|
||||||
|
|
||||||
|
if (m.y != y)
|
||||||
|
fgSetInt("/devices/status/mice/mouse/y", m.y = y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue