コード例 #1
0
 protected virtual void OnReleased(ActionEventArgs e)
 {
     if (this.Released != null)
     {
         this.Released(this, e);
     }
 }
コード例 #2
0
 protected virtual void OnPressed(ActionEventArgs e)
 {
     if (this.Pressed != null)
     {
         this.Pressed(this, e);
     }
 }
コード例 #3
0
 protected virtual void OnGamepadAction(ActionEventArgs e)
 {
     EventHandler<ActionEventArgs> handler = GamepadAction;
     if (handler != null)
     {
         handler(this, e);
     }
 }
コード例 #4
0
 public virtual void OnAction(ActionEventArgs e)
 {
     EventHandler<ActionEventArgs> handler = this.Action;
     if (handler != null)
     {
         handler(this, e);
     }
 }
コード例 #5
0
 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();
     }
 }
コード例 #6
0
 private void controller_Button19Released(object sender, ActionEventArgs e)
 {
     txtLastButton.Text = "Button Released";
     cbButton19.IsChecked = false;
 }
コード例 #7
0
 private void A_Pressed(object sender, ActionEventArgs e)
 {
     cbButtonA.IsChecked = true;
     txtGamePadLastAction.Text = "A button released";
 }
コード例 #8
0
 void B_Pressed(object sender, ActionEventArgs e)
 {
     cbButtonB.IsChecked = true;
     txtGamePadLastAction.Text = "B button pressed";
 }
コード例 #9
0
 void B_Released(object sender, ActionEventArgs e)
 {
     cbButtonB.IsChecked = false;
     txtGamePadLastAction.Text = "B button released";
 }
コード例 #10
0
 void Start_Pressed(object sender, ActionEventArgs e)
 {
     cbButtonStart.IsChecked = true;
     txtGamePadLastAction.Text = "start button pressed";
 }
コード例 #11
0
 private void LeftAxis_Moved(object sender, ActionEventArgs e)
 {
     txtGamePadLastAction.Text = "Left Joystick Moved X: " + controller.Gamepad.LeftAxis.X.ToString() + " Y: "+ controller.Gamepad.LeftAxis.Y.ToString();
 }
コード例 #12
0
 private void controller_JoystickAction(object sender, ActionEventArgs e)
 {
     txtJoystickStateDebug.Text = e.JoystickState.ToString();
 }
コード例 #13
0
 void RightStick_Released(object sender, ActionEventArgs e)
 {
     cbButtonRightStick.IsChecked = false;
     txtGamePadLastAction.Text = "Right Stick button released";
 }
コード例 #14
0
 void LeftStick_Pressed(object sender, ActionEventArgs e)
 {
     cbButtonLeftStick.IsChecked = true;
     txtGamePadLastAction.Text = "Left Stick button pressed";
 }
コード例 #15
0
 void LeftTrigger_Pressed(object sender, ActionEventArgs e)
 {
     cbButtonLeftTrigger.IsChecked = true;
     txtGamePadLastAction.Text = "Left TRigger button pressed";
 }
コード例 #16
0
 private void RightTrigger_Pressed(object sender, ActionEventArgs e)
 {
     cbButtonRightTrigger.IsChecked = true;
     txtGamePadLastAction.Text = "Right Trigger button pressed";
 }
コード例 #17
0
 private void RightTrigger_Released(object sender, ActionEventArgs e)
 {
     cbButtonRightTrigger.IsChecked = false;
     txtGamePadLastAction.Text = "Right Trigger button released";
 }
コード例 #18
0
 private void controller_Button19Pressed(object sender, ActionEventArgs e)
 {
     txtLastButton.Text = "Button Pressed";
     cbButton19.IsChecked = true;
 }
コード例 #19
0
 void LeftShoulder_Pressed(object sender, ActionEventArgs e)
 {
     cbButtonLeftShoulder.IsChecked = true;
     txtGamePadLastAction.Text = "Big Button pressed";
 }
コード例 #20
0
 private void controller_GamePadAction(object sender, ActionEventArgs e)
 {
     txtGamePadStateDebug.Text = e.GamepadState.ToString();
 }
コード例 #21
0
 void Start_Released(object sender, ActionEventArgs e)
 {
     cbButtonStart.IsChecked = false;
     txtGamePadLastAction.Text = "Start button released";
 }
コード例 #22
0
 void LeftShoulder_Released(object sender, ActionEventArgs e)
 {
     cbButtonLeftShoulder.IsChecked = false;
     txtGamePadLastAction.Text = "Left Shoulder button released";
 }
コード例 #23
0
        public virtual void OnAction(ActionEventArgs e)
        {

            EventHandler<ActionEventArgs> handler = this.Action;
        }