Exemple #1
0
        public bool Accepts(IScriptedInput input)
        {
            var click = input as ScriptedClick;

            if (click == null)
            {
                return(false);
            }

            return(click.X >= _left && click.X <= _right && click.Y >= _top && click.Y <= _bottom);
        }
Exemple #2
0
        public bool Accepts(IScriptedInput input)
        {
            var key = input as ScriptedKeys;

            if (key == null)
            {
                return(false);
            }

            return(key.Keys == _keys);
        }