Add secondary buttons for jump & attack
GitOrigin-RevId: adac7b3aa185e10e8cf86046f8a88817c300ef36
This commit is contained in:
parent
bbdc3c3053
commit
a719e5b370
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user