示例#1
0
 internal static void Update(IInputHandler handler, InputDeviceButton input, bool value)
 {
     if (input.IsPressed != value)
     {
         input.IsPressed = value;
         handler.OnInput(input);
     }
 }
示例#2
0
文件: Game.cs 项目: vetuomia/rocket
 /// <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) { }