C# 클래스 Afterglow.Input.ButtonAction

Action for a button and the information when the button is triggered.
상속: IButtonState, IButtonAction
파일 보기 프로젝트 열기: Christof/afterglow 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

ButtonAction() 공개 메소드

Initializes a new instance of the ButtonAction class.
public ButtonAction ( Button button ) : System
button Button The button.
리턴 System

Do() 공개 메소드

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.
리턴 void

ExecuteAction() 공개 메소드

Executes the action.
public ExecuteAction ( ) : void
리턴 void

IsDown() 공개 메소드

The action will be triggered if the button is pressed.
public IsDown ( ) : IButtonAction
리턴 IButtonAction

WasPressed() 공개 메소드

The action will be triggered if the button was pressed.
public WasPressed ( ) : IButtonAction
리턴 IButtonAction

WasReleased() 공개 메소드

The action will be triggered if the button was released.
public WasReleased ( ) : IButtonAction
리턴 IButtonAction