Ejemplo n.º 1
0
		public override void Execute ()
		{
			var kb = Game.Keyboard;

			oldBind	=	kb.Bindings.FirstOrDefault( b => b.Key == Key );

			kb.Unbind( Key );
		}
Ejemplo n.º 2
0
		public override void Execute ()
		{
			var kb = Game.Keyboard;

			oldBind	=	kb.Bindings.FirstOrDefault( b => b.Key == Key );

			if (kb.IsBound(Key)) {
				kb.Unbind(Key);
			}

			kb.Bind( Key, KeyDownCommand, KeyUpCommand );
		}