GameCommon.GameControlsManager.DoKeyUp C# (CSharp) Method

DoKeyUp() public method

Sends the notice on releasing a system key.
public DoKeyUp ( KeyEvent e ) : bool
e KeyEvent Key event arguments.
return bool
        public bool DoKeyUp( KeyEvent e )
        {
            bool handled = false;
            //!!!!!slowly
            foreach( GameControlItem item in items )
            {
                //!!!!!need use binded values here
                foreach( SystemKeyboardMouseValue value in item.DefaultKeyboardMouseValues )
                {
                    if( value.Type == SystemKeyboardMouseValue.Types.Key && value.Key == e.Key )
                    {
                        if( GameControlsEvent != null )
                            GameControlsEvent( new GameControlsKeyUpEventData( item.ControlKey ) );
                        handled = true;
                    }
                }
            }
            return handled;
        }