C# Class UHSampleGame.InputManagement.InputManager

Afficher le fichier Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Méthodes publiques

Méthode Description
AddInput ( InputAction action, Buttons button ) : void

Allows the action to be triggered by the key

AddInput ( InputAction action, Keys key ) : void

Allows the action to be triggered by the key

CheckAction ( InputAction action ) : bool

Checks if the action has is triggered

CheckAction ( InputAction action, PlayerIndex playerIndex ) : bool

Checks if the action has is triggered

CheckNewAction ( InputAction action ) : bool

Checks if the action has just been triggered

CheckNewAction ( InputAction action, PlayerIndex playerIndex ) : bool

Checks if the action has just been triggered

CheckNewReleaseAction ( InputAction action ) : bool
CheckNewReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool
CheckReleaseAction ( InputAction action ) : bool

Checks if the action has just been released

CheckReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool

Checks if the action has just been released

InputManager ( ) : System
Update ( ) : void

Updates previous and current input devices

Private Methods

Méthode Description
IsButtonPressed ( Buttons button, PlayerIndex playerIndex ) : bool
IsButtonReleased ( Buttons button, PlayerIndex playerIndex ) : bool
IsKeyPressed ( Keys key ) : bool
IsKeyReleased ( Keys key ) : bool
IsNewButtonPressed ( Buttons button, PlayerIndex playerIndex ) : bool
IsNewButtonReleased ( Buttons button, PlayerIndex playerIndex ) : bool
IsNewKeyPressed ( Keys key ) : bool
IsNewKeyReleased ( Keys key ) : bool

Method Details

AddInput() public méthode

Allows the action to be triggered by the key
public AddInput ( InputAction action, Buttons button ) : void
action InputAction The input action to be triggered
button Buttons The button to trigger the action
Résultat void

AddInput() public méthode

Allows the action to be triggered by the key
public AddInput ( InputAction action, Keys key ) : void
action InputAction The input action to be triggered
key Keys The key to trigger the action
Résultat void

CheckAction() public méthode

Checks if the action has is triggered
public CheckAction ( InputAction action ) : bool
action InputAction The action to check
Résultat bool

CheckAction() public méthode

Checks if the action has is triggered
public CheckAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction The action to check
playerIndex PlayerIndex The player index to check
Résultat bool

CheckNewAction() public méthode

Checks if the action has just been triggered
public CheckNewAction ( InputAction action ) : bool
action InputAction The action to check
Résultat bool

CheckNewAction() public méthode

Checks if the action has just been triggered
public CheckNewAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction The action to check
playerIndex PlayerIndex The player index to check
Résultat bool

CheckNewReleaseAction() public méthode

public CheckNewReleaseAction ( InputAction action ) : bool
action InputAction
Résultat bool

CheckNewReleaseAction() public méthode

public CheckNewReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction
playerIndex PlayerIndex
Résultat bool

CheckReleaseAction() public méthode

Checks if the action has just been released
public CheckReleaseAction ( InputAction action ) : bool
action InputAction The action to check
Résultat bool

CheckReleaseAction() public méthode

Checks if the action has just been released
public CheckReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction The action to check
playerIndex PlayerIndex The player index to check
Résultat bool

InputManager() public méthode

public InputManager ( ) : System
Résultat System

Update() public méthode

Updates previous and current input devices
public Update ( ) : void
Résultat void