Exemplo n.º 1
0
        private bool IsPressed(clsKeysActive KeysDown)
        {
            foreach ( var keys in Keys )
            {
                if ( !KeysDown.Keys[(int)keys] )
                {
                    return false;
                }
            }
            foreach ( var keys in UnlessKeys )
            {
                if ( KeysDown.Keys[(int)keys] )
                {
                    return false;
                }
            }

            return true;
        }
Exemplo n.º 2
0
 public void KeysChanged(clsKeysActive KeysDown)
 {
     _Active = IsPressed(KeysDown);
 }