WearableButtons.ButtonInfo


public final class WearableButtons.ButtonInfo


Metadata for a specific button.

Summary

Public methods

int

Gets the keycode this ButtonInfo provides information for.

int

The location zone of the button (e.g. LOC_EAST)

float

The x coordinate of the button in screen coordinates.

float

The y coordinate of the button in screen coordinates.

Public methods

getKeycode

Added in 1.0.0
public int getKeycode()

Gets the keycode this ButtonInfo provides information for.

Returns
int

The keycode this ButtonInfo provides information for

getLocationZone

Added in 1.0.0
public int getLocationZone()

The location zone of the button (e.g. LOC_EAST)

getX

Added in 1.0.0
public float getX()

The x coordinate of the button in screen coordinates.

getY

Added in 1.0.0
public float getY()

The y coordinate of the button in screen coordinates.