C# Класс Ouya.Console.Api.OuyaController

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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