C# 클래스 Ouya.Console.Api.OuyaController

파일 보기 프로젝트 열기: KonajuGames/ouya-csharp 1 사용 예제들

공개 메소드들

메소드 설명
ButtonChangedThisFrame ( Buttons button ) : bool

Checks if a button state changed within the current frame loop (as signaled by calling startOfFrame).

ButtonPressedThisFrame ( Buttons button ) : bool

Checks if a button has been pressed within the current frame loop (as signaled by calling startOfFrame).

ButtonReleasedThisFrame ( Buttons button ) : bool

Checks if a button has been released within the current frame loop (as signaled by calling startOfFrame).

GetAxisValue ( AxisType axis ) : float

Gets the current axis value.

GetButton ( Buttons button ) : bool

Gets the current pressed state of the button.

GetButtonData ( Buttons button ) : ButtonData

Queries the OUYA framework to get the appropriate image/name for a specific button. The returned drawable will be 160px high.

메소드 상세

ButtonChangedThisFrame() 공개 메소드

Checks if a button state changed within the current frame loop (as signaled by calling startOfFrame).
public ButtonChangedThisFrame ( Buttons button ) : bool
button Buttons The button to check.
리턴 bool

ButtonPressedThisFrame() 공개 메소드

Checks if a button has been pressed within the current frame loop (as signaled by calling startOfFrame).
public ButtonPressedThisFrame ( Buttons button ) : bool
button Buttons The button to check.
리턴 bool

ButtonReleasedThisFrame() 공개 메소드

Checks if a button has been released within the current frame loop (as signaled by calling startOfFrame).
public ButtonReleasedThisFrame ( Buttons button ) : bool
button Buttons The button to check.
리턴 bool

GetAxisValue() 공개 메소드

Gets the current axis value.
public GetAxisValue ( AxisType axis ) : float
axis AxisType The axis to check.
리턴 float

GetButton() 공개 메소드

Gets the current pressed state of the button.
public GetButton ( Buttons button ) : bool
button Buttons The button to check.
리턴 bool

GetButtonData() 공개 정적인 메소드

Queries the OUYA framework to get the appropriate image/name for a specific button. The returned drawable will be 160px high.
public static GetButtonData ( Buttons button ) : ButtonData
button Buttons The button to get data for.
리턴 ButtonData