public void BindInput(InputPlaybleGesture ipk) { System.Diagnostics.Debug.Assert(ipk != null); BindGestureCommand bkc = new BindGestureCommand(ipk, BindAction.ADD); GestureBinds.Add(ipk, bkc); CommandProcessor.getCommandProcessor().SendCommandAssyncronous(bkc); }
public void RemoveInputBinding(InputPlaybleGesture ipk) { System.Diagnostics.Debug.Assert(ipk != null); BindGestureCommand bc = GestureBinds[ipk]; if (bc != null) { bc.BindAction = BindAction.REMOVE; CommandProcessor.getCommandProcessor().SendCommandAssyncronous(bc); } }