internal void BindGesture(InputPlaybleGesture ip, BindAction ba)
 {
     if (ba == BindAction.ADD)
     {
         addedgesture = true;
         if(_gestureMapper.ContainsKey(ip.GestureType))
         {
             _gestureMapper[ip.GestureType].Add(ip);
         }
         else
         {
             
             TouchPanel.EnabledGestures = TouchPanel.EnabledGestures | ip.GestureType;
             List<InputPlaybleGesture> gest = new List<InputPlaybleGesture>();
             gest.Add(ip);
             _gestureMapper.Add(ip.GestureType, gest);
         }
            
     }
     else if (ba == BindAction.REMOVE)
     {
         List<InputPlaybleGesture> gest = _gestureMapper[ip.GestureType];
         gest.Remove(ip);
     }
 }
 internal void BindGesture(InputPlaybleGesture ip, BindAction ba)
 {
     if (ba == BindAction.ADD)
     {
         addedgesture = true;
         if (_gestureMapper.ContainsKey(ip.GestureType))
         {
             _gestureMapper[ip.GestureType].Add(ip);
         }
         else
         {
             TouchPanel.EnabledGestures = TouchPanel.EnabledGestures | ip.GestureType;
             List <InputPlaybleGesture> gest = new List <InputPlaybleGesture>();
             gest.Add(ip);
             _gestureMapper.Add(ip.GestureType, gest);
         }
     }
     else if (ba == BindAction.REMOVE)
     {
         List <InputPlaybleGesture> gest = _gestureMapper[ip.GestureType];
         gest.Remove(ip);
     }
 }
 public BindGestureCommand(InputPlaybleGesture ip, BindAction ba)
 {
     this.ip = ip;
     this.ba = ba;
 }
 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);
     }
 }
 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);
 }