WearableButtons.ButtonInfo

class WearableButtons.ButtonInfo


Metadata for a specific button.

Summary

Public functions

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 functions

getKeycode

Added in 1.0.0
fun getKeycode(): Int

Gets the keycode this ButtonInfo provides information for.

Returns
Int

The keycode this ButtonInfo provides information for

getLocationZone

Added in 1.0.0
fun getLocationZone(): Int

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

getX

Added in 1.0.0
fun getX(): Float

The x coordinate of the button in screen coordinates.

getY

Added in 1.0.0
fun getY(): Float

The y coordinate of the button in screen coordinates.