Represents a key on the virtual keyboard.
More...
|
| virtual void | SetLabels () |
| | Sets the labels on the key.
|
| |
| virtual void | OnDown () |
| | Handles the button's pointer down event and sends the character to the keyboard.
|
| |
Represents a key on the virtual keyboard.
◆ Init()
| Key FMAR.UI.Widgets.Keyboard.Key.Init |
( |
char | key, |
|
|
char | shiftKey ) |
|
inline |
Initializes the key with the specified characters.
- Parameters
-
| key | The character displayed on the key. |
| shiftKey | The character displayed on the key when shift is pressed. |
- Returns
- The initialized key.
◆ OnDown()
| virtual void FMAR.UI.Widgets.Keyboard.Key.OnDown |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ SetLabels()
| virtual void FMAR.UI.Widgets.Keyboard.Key.SetLabels |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ button
◆ key
| char FMAR.UI.Widgets.Keyboard.Key.key |
|
protected |
The character displayed on the key.
◆ layoutElement
| LayoutElement FMAR.UI.Widgets.Keyboard.Key.layoutElement |
|
protected |
◆ primaryLabel
| TextMeshProUGUI FMAR.UI.Widgets.Keyboard.Key.primaryLabel |
|
protected |
◆ shiftKey
| char FMAR.UI.Widgets.Keyboard.Key.shiftKey |
|
protected |
The character displayed on the key when shift is pressed.
◆ shiftLabel
| TextMeshProUGUI FMAR.UI.Widgets.Keyboard.Key.shiftLabel |
|
protected |
The documentation for this class was generated from the following file:
- /github/workspace/Packages/FMAR/UI/WidgetKeyboard/Runtime/Scripts/Key.cs