C# Class Ouya.Console.Api.OuyaController

Afficher le fichier Open project: KonajuGames/ouya-csharp Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

ButtonChangedThisFrame() public méthode

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.
Résultat bool

ButtonPressedThisFrame() public méthode

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.
Résultat bool

ButtonReleasedThisFrame() public méthode

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.
Résultat bool

GetAxisValue() public méthode

Gets the current axis value.
public GetAxisValue ( AxisType axis ) : float
axis AxisType The axis to check.
Résultat float

GetButton() public méthode

Gets the current pressed state of the button.
public GetButton ( Buttons button ) : bool
button Buttons The button to check.
Résultat bool

GetButtonData() public static méthode

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.
Résultat ButtonData