Constructor
new VRPad(parentnon-null, controlsnon-null)
Parameters:
| Name | Type | Description |
|---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls |
- Extends:
- Source:
Extends
Members
buttons_ :Array<{button: !HTMLButtonElement, locId: string}>
The buttons, with the id of their string.
Type:
- Array<{button: !HTMLButtonElement, locId: string}>
- Source:
isInMenuGroup :boolean
True when the element is a child of a shaka.ui.MenuGroup.
Type:
- boolean
- Overrides:
- Implements:
- Source:
isSubMenu :boolean
Type:
- boolean
- Overrides:
- Implements:
- Source:
isSubMenuOpened :boolean
Type:
- boolean
- Overrides:
- Implements:
- Source:
parent :HTMLElement
Type:
- HTMLElement
- Overrides:
- Implements:
- Source:
Methods
addArrow_(name, yaw, pitch, locId)
Adds an arrow that turns the view while it is held, with the pointer or
with the Enter or Space keys.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | |
yaw |
number | 1 to look to the right, -1 to the left. |
pitch |
number | 1 to look up, -1 down. |
locId |
string |
- Source:
addButton_(name, locId) → {HTMLButtonElement}
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | |
locId |
string |
- Source:
Returns:
- Type
- HTMLButtonElement