GameCommon.GameControlsManager.DoMouseDown C# (CSharp) Метод

DoMouseDown() публичный Метод

Sends the notice on pressing a mouse button.
public DoMouseDown ( EMouseButtons button ) : bool
button EMouseButtons A value indicating which button was clicked.
Результат bool
        public bool DoMouseDown( EMouseButtons button )
        {
            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.MouseButton &&
                        value.MouseButton == button )
                    {
                        if( GameControlsEvent != null )
                            GameControlsEvent( new GameControlsKeyDownEventData( item.ControlKey, 1 ) );
                        handled = true;
                    }
                }
            }
            return handled;
        }