1
0
Fork 0

export mouse coords of "main" mouse

This commit is contained in:
mfranz 2007-02-05 20:29:26 +00:00
parent 862196a3ab
commit d4f8622ff4

View file

@ -371,8 +371,12 @@ FGInput::doMouseMotion (int x, int y)
if (need_warp)
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