C# Class Ouya.Console.Api.OuyaController

Datei anzeigen Open project: KonajuGames/ouya-csharp Class Usage Examples

Public Methods

Method 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 method

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.
return bool

ButtonPressedThisFrame() public method

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.
return bool

ButtonReleasedThisFrame() public method

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.
return bool

GetAxisValue() public method

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

GetButton() public method

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

GetButtonData() public static method

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.
return ButtonData