Esempio n. 1
0
 internal static void Update(IInputHandler handler, InputDeviceButton input, bool value)
 {
     if (input.IsPressed != value)
     {
         input.IsPressed = value;
         handler.OnInput(input);
     }
 }
Esempio n. 2
0
 /// <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) { }