From a719e5b370cc64bc0f9ec655011aececa5e85881 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 16 Jan 2020 17:16:45 -0500 Subject: [PATCH] Add secondary buttons for jump & attack GitOrigin-RevId: adac7b3aa185e10e8cf86046f8a88817c300ef36 --- Shared/Input.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Shared/Input.cs b/Shared/Input.cs index 83ecfca..852368e 100644 --- a/Shared/Input.cs +++ b/Shared/Input.cs @@ -13,8 +13,10 @@ namespace SemiColinGames { public Input(GamePadState gamePad, KeyboardState keyboard) { // First we process normal buttons. - Jump = gamePad.IsButtonDown(Buttons.A) || keyboard.IsKeyDown(Keys.J); - Attack = gamePad.IsButtonDown(Buttons.X) || keyboard.IsKeyDown(Keys.K); + Jump = gamePad.IsButtonDown(Buttons.A) || gamePad.IsButtonDown(Buttons.B) || + keyboard.IsKeyDown(Keys.J); + Attack = gamePad.IsButtonDown(Buttons.X) || gamePad.IsButtonDown(Buttons.Y) || + keyboard.IsKeyDown(Keys.K); // Then special debugging sorts of buttons. Exit = gamePad.IsButtonDown(Buttons.Start) || keyboard.IsKeyDown(Keys.Escape);