示例#1
0
    public static void AddAnalog2DAction(string name, AnalogAction2D.ActionToExecute boundAction,
                                         IAnalog2D binding)
    {
        AnalogAction2D action = new AnalogAction2D(name, boundAction, binding);

        registeredActions.Add(name, action);
    }
示例#2
0
 public int Rebind(IInputDevice binding)
 {
     if (binding is IAnalog2D)
     {
         this.binding = (IAnalog2D)binding;
         return(1);
     }
     return(0);
 }
示例#3
0
 public AnalogAction2D(string name, ActionToExecute boundAction, IAnalog2D binding)
 {
     this.name        = name;
     this.boundAction = boundAction;
     this.binding     = binding;
 }