C# Class Afterglow.Input.ButtonAction

Action for a button and the information when the button is triggered.
Inheritance: IButtonState, IButtonAction
Afficher le fichier Open project: Christof/afterglow Class Usage Examples

Méthodes publiques

Méthode Description
ButtonAction ( Button button ) : System

Initializes a new instance of the ButtonAction class.

Do ( System.Action action ) : void

Sets the given action to be executed if the button is down or was pressed.

ExecuteAction ( ) : void

Executes the action.

IsDown ( ) : IButtonAction

The action will be triggered if the button is pressed.

WasPressed ( ) : IButtonAction

The action will be triggered if the button was pressed.

WasReleased ( ) : IButtonAction

The action will be triggered if the button was released.

Method Details

ButtonAction() public méthode

Initializes a new instance of the ButtonAction class.
public ButtonAction ( Button button ) : System
button Button The button.
Résultat System

Do() public méthode

Sets the given action to be executed if the button is down or was pressed.
public Do ( System.Action action ) : void
action System.Action The action.
Résultat void

ExecuteAction() public méthode

Executes the action.
public ExecuteAction ( ) : void
Résultat void

IsDown() public méthode

The action will be triggered if the button is pressed.
public IsDown ( ) : IButtonAction
Résultat IButtonAction

WasPressed() public méthode

The action will be triggered if the button was pressed.
public WasPressed ( ) : IButtonAction
Résultat IButtonAction

WasReleased() public méthode

The action will be triggered if the button was released.
public WasReleased ( ) : IButtonAction
Résultat IButtonAction