I was too agressive in the fg_os port. Glut doesn't support grabbing
the keyboard modifiers outside of a key event handler, so adding the fgGetKeyModifiers() call to doMouseMotion was broken. The user could see "phantom" modifier keys.
This commit is contained in:
parent
ae2dbe4f25
commit
95e8b63988
1 changed files with 4 additions and 1 deletions
|
@ -304,7 +304,10 @@ FGInput::doMouseClick (int b, int updown, int x, int y)
|
|||
void
|
||||
FGInput::doMouseMotion (int x, int y)
|
||||
{
|
||||
int modifiers = fgGetKeyModifiers();
|
||||
// Don't call fgGetKeyModifiers() here, until we are using a
|
||||
// toolkit that supports getting the mods from outside a key
|
||||
// callback. Glut doesn't.
|
||||
int modifiers = KEYMOD_NONE;
|
||||
|
||||
int xsize = fgGetInt("/sim/startup/xsize", 800);
|
||||
int ysize = fgGetInt("/sim/startup/ysize", 600);
|
||||
|
|
Loading…
Add table
Reference in a new issue