internal static void Update(IInputHandler handler, InputDeviceAxis input, float value) { if (input.Value != value) { input.Value = value; handler.OnInput(input); } }
internal static void Update(IInputHandler handler, InputDeviceButton input, bool value) { if (input.IsPressed != value) { input.IsPressed = value; handler.OnInput(input); } }