public interface Navigatable
UiElement
s that can be navigated by keyboard or
controllerModifier and Type | Method and Description |
---|---|
UiNavigation |
getNavigation()
Returns the
UiNavigation currently being navigated |
ActionableRenderNode |
hotkey(ControllerButton button)
Returns the corresponding mapped to a
ControllerButton hotkey |
ActionableRenderNode |
hotkey(int keycode)
Returns the corresponding mapped to a keyboard hotkey
|
ActionableRenderNode |
navigate(int keycode)
Triggers a navigation and returns the newly highlighted
ActionableRenderNode |
void |
setHotkey(ControllerButton button,
Actionable actionable)
Maps a
ControllerButton to a Actionable |
void |
setHotkey(int keycode,
Actionable actionable)
Maps a keyboard button to a
Actionable |
void |
unsetHotkey(ControllerButton button)
Unmaps a
ControllerButton hotkey |
void |
unsetHotkey(int keycode)
Unmaps a keyboard hotkey
|
ActionableRenderNode navigate(int keycode)
ActionableRenderNode
keycode
- The navigation Input.Keys
valueUiNavigation
is availableActionableRenderNode hotkey(int keycode)
keycode
- The Input.Keys
keycode that is the hotkeyActionableRenderNode hotkey(ControllerButton button)
ControllerButton
hotkeybutton
- The ControllerButton
that is the hotkeyvoid setHotkey(ControllerButton button, Actionable actionable)
ControllerButton
to a Actionable
button
- The ControllerButton
that is the hotkeyactionable
- The Actionable
to trigger when the hotkey is pressedvoid setHotkey(int keycode, Actionable actionable)
Actionable
keycode
- The Input.Keys
keycode that is the hotkeyactionable
- The Actionable
to trigger when the key is pressedvoid unsetHotkey(ControllerButton button)
ControllerButton
hotkeybutton
- The ControllerButton
that is the hotkeyvoid unsetHotkey(int keycode)
keycode
- The Input.Keys
keycode that is the hotkeyUiNavigation getNavigation()
UiNavigation
currently being navigated