public static void AddAnalog2DAction(string name, AnalogAction2D.ActionToExecute boundAction, IAnalog2D binding) { AnalogAction2D action = new AnalogAction2D(name, boundAction, binding); registeredActions.Add(name, action); }
public int Rebind(IInputDevice binding) { if (binding is IAnalog2D) { this.binding = (IAnalog2D)binding; return(1); } return(0); }
public AnalogAction2D(string name, ActionToExecute boundAction, IAnalog2D binding) { this.name = name; this.boundAction = boundAction; this.binding = binding; }