internal static void Update(IInputHandler handler, InputDeviceButton input, bool value) { if (input.IsPressed != value) { input.IsPressed = value; handler.OnInput(input); } }
/// <summary> /// Called when an input device button is pressed or released. /// </summary> /// <param name="button">The input device button.</param> public virtual void OnInputDeviceButton(InputDeviceButton button) { }