public void RemoveControlListener(AxisType axisType, GamepadControlChangeEvent listener) { if (ControlMap.ContainsKey(axisType)) { ControlMap[axisType].GamepadControlChange -= listener; } }
public void RemoveControlListener(AxisType axisType, GamepadControlChangeEvent listener) { IGamepadControl control; if (ControlMap.TryGetValue(axisType, out control)) { control.GamepadControlChange -= listener; } }