protected virtual void OnReleased(ActionEventArgs e) { if (this.Released != null) { this.Released(this, e); } }
protected virtual void OnPressed(ActionEventArgs e) { if (this.Pressed != null) { this.Pressed(this, e); } }
protected virtual void OnGamepadAction(ActionEventArgs e) { EventHandler<ActionEventArgs> handler = GamepadAction; if (handler != null) { handler(this, e); } }
public virtual void OnAction(ActionEventArgs e) { EventHandler<ActionEventArgs> handler = this.Action; if (handler != null) { handler(this, e); } }
private void checkGamePads(Object sender, EventArgs e) { ActionEventArgs args = new ActionEventArgs(this.ActiveDevice); if (this.Gamepad.Changed()) { this.Gamepad.Poll(); this.Gamepad.Update(); } if (this.Joystick.Changed()) { this.Joystick.Poll(); this.Joystick.Update(); } }
public virtual void OnAction(ActionEventArgs e) { EventHandler<ActionEventArgs> handler = this.Action; }
private static void Start_Pressed(object sender, ActionEventArgs e) { Console.WriteLine("You Pressed Start!\n\n\n"); exit = true; Console.ReadLine(); }