internal void BindMousePosition(InputPlaybleMousePosition ip, BindAction ba)
 {
     if (ba == BindAction.ADD)
     {
         _mouseMapperPosition.Add(ip);
     }
     else if (ba == BindAction.REMOVE)
     {
         _mouseMapperPosition.Remove(ip);
     }
 }
 public BindMouseCommand(InputPlaybleMousePosition ipx, BindAction ba)
 {
     this.ipx = ipx;
     this.ba  = ba;
     type     = POSITION;
 }
 public BindMouseCommand(InputPlaybleMousePosition ipx, BindAction ba)
 {
     this.ipx = ipx;
     this.ba = ba;
     type = POSITION;
 }
 internal void BindMousePosition(InputPlaybleMousePosition ip, BindAction ba)
 {
     if (ba == BindAction.ADD)
     {
       _mouseMapperPosition.Add(ip);             
     }
     else if (ba == BindAction.REMOVE)
     {
         _mouseMapperPosition.Remove(ip);
     }
 }
Пример #5
0
 /// <summary>
 /// Removes the MousePosition bindings.
 /// </summary>
 /// <param name="ipk">The InputPlaybleMousePosition.</param>
 public void RemoveInputBinding(InputPlaybleMousePosition ipk)
 {
     System.Diagnostics.Debug.Assert(ipk != null);
     BindMouseCommand bc = MouseBinds[ipk];
     if (bc != null)
     {
         bc.BindAction = BindAction.REMOVE;
         CommandProcessor.getCommandProcessor().SendCommandAssyncronous(bc);
     }
 }
Пример #6
0
 /// <summary>
 /// Binds the MousePosition input.
 /// </summary>
 /// <param name="ipk">The InputPlaybleMousePosition.</param>
 public void BindInput(InputPlaybleMousePosition ipk)
 {
     System.Diagnostics.Debug.Assert(ipk != null);
     BindMouseCommand bkc = new BindMouseCommand(ipk, BindAction.ADD);
     MouseBinds.Add(ipk, bkc);
     CommandProcessor.getCommandProcessor().SendCommandAssyncronous(bkc);
 }