Browse Source

This fixes flymode...

Adam Johnson 13 years ago
parent
commit
1b8f31cfb3
  1. 19
      Sources/Plasma/PubUtilLib/plInputCore/plInputInterface.cpp

19
Sources/Plasma/PubUtilLib/plInputCore/plInputInterface.cpp

@ -246,15 +246,18 @@ hsBool plInputInterface::ProcessKeyBindings( plInputEventMsg *msg )
hsBool wasActive = IHasKeyControlFlag(binding->GetCode()); hsBool wasActive = IHasKeyControlFlag(binding->GetCode());
// Set or clear our flags, since we do that even if we don't send a message // Set or clear our flags, since we do that even if we don't send a message
if( activate ) if ( !keyMsg->GetKeyChar() )
{ {
ISetKeyControlFlag( binding->GetCode() ); if( activate )
fKeyControlsFrom2ndKeyFlags.SetBit( binding->GetCode(), ( binding->GetKey2() == combo ) ? true : false ); {
} ISetKeyControlFlag( binding->GetCode() );
else fKeyControlsFrom2ndKeyFlags.SetBit( binding->GetCode(), ( binding->GetKey2() == combo ) ? true : false );
{ }
IClearKeyControlFlag( binding->GetCode() ); else
fKeyControlsFrom2ndKeyFlags.SetBit( binding->GetCode(), 0 ); {
IClearKeyControlFlag( binding->GetCode() );
fKeyControlsFrom2ndKeyFlags.SetBit( binding->GetCode(), 0 );
}
} }
// Filter out codes that only want their activate messages sent (like console commands) // Filter out codes that only want their activate messages sent (like console commands)

Loading…
Cancel
Save