Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
navigation_input.h
Go to the documentation of this file.
1
5#pragma once
6
7namespace input {
8
29
33 enum class GamepadButton {
34 dpad_up,
35 dpad_down,
36 dpad_left,
38 a,
39 b,
40 x,
41 y,
44 start,
45 back,
46 };
47
57
61 enum class KeyboardKey {
62 up,
63 down,
64 left,
65 right,
66 enter,
67 escape,
68 backspace,
70 space,
71 tab,
72 page_up,
73 page_down,
74 i,
75 m,
76 f3,
77 };
78
85 UiCommand map_gamepad_button_to_ui_command(GamepadButton button);
86
93 UiCommand map_gamepad_axis_direction_to_ui_command(GamepadAxisDirection direction);
94
102 UiCommand map_keyboard_key_to_ui_command(KeyboardKey key, bool shiftPressed = false);
103
104} // namespace input
@ input
Input and controller options.
GamepadAxisDirection
Controller axis directions mapped onto UI navigation commands.
Definition navigation_input.h:51
@ left_stick_down
Left stick moved downward past the navigation threshold.
@ left_stick_left
Left stick moved left past the navigation threshold.
@ left_stick_up
Left stick moved upward past the navigation threshold.
@ left_stick_right
Left stick moved right past the navigation threshold.
KeyboardKey
Keyboard keys mapped onto the same abstract UI commands.
Definition navigation_input.h:61
@ f3
F3 function key.
@ up
Up arrow key.
@ backspace
Backspace key.
@ delete_key
Delete key.
@ m
Letter M key.
@ down
Down arrow key.
@ i
Letter I key.
@ page_down
Page Down key.
@ escape
Escape key.
@ enter
Enter or return key.
@ page_up
Page Up key.
@ space
Space bar.
GamepadButton
Controller buttons used by the Moonlight client UI.
Definition navigation_input.h:33
@ dpad_down
D-pad down button.
@ a
South face button.
@ dpad_up
D-pad up button.
@ left_shoulder
Left shoulder button.
@ y
North face button.
@ dpad_left
D-pad left button.
@ b
East face button.
@ x
West face button.
@ dpad_right
D-pad right button.
@ right_shoulder
Right shoulder button.
@ start
Start button.
UiCommand
Abstract UI command emitted by controller or keyboard input.
Definition navigation_input.h:12
@ move_up
Move selection upward.
@ back
Navigate back or cancel.
@ fast_next_page
Jump forward by a larger page increment.
@ delete_character
Delete one character from text input.
@ move_left
Move selection left.
@ move_down
Move selection downward.
@ fast_previous_page
Jump backward by a larger page increment.
@ open_context_menu
Open the focused item's context menu.
@ move_right
Move selection right.
@ previous_page
Move to the previous page.
@ confirm
Confirm the current action.
@ activate
Activate the focused item.
@ next_page
Move to the next page.
@ toggle_overlay
Toggle the diagnostics overlay.