Esempio n. 1
0
 protected virtual void OnReleased(ActionEventArgs e)
 {
     if (this.Released != null)
     {
         this.Released(this, e);
     }
 }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 6
0
        public virtual void OnAction(ActionEventArgs e)
        {

            EventHandler<ActionEventArgs> handler = this.Action;
        }
Esempio n. 7
0
 private static void Start_Pressed(object sender, ActionEventArgs e) {
     Console.WriteLine("You Pressed Start!\n\n\n");
     exit = true;
     Console.ReadLine();
 }