![]() |
Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
|
Declares controller navigation input handling. More...
Go to the source code of this file.
Enumerations | |
| enum class | input::GamepadAxisDirection { left_stick_up , left_stick_down , left_stick_left , left_stick_right } |
| Controller axis directions mapped onto UI navigation commands. More... | |
| enum class | input::GamepadButton { dpad_up , dpad_down , dpad_left , dpad_right , a , b , x , y , left_shoulder , right_shoulder , start , back } |
| Controller buttons used by the Moonlight client UI. More... | |
| enum class | input::KeyboardKey { up , down , left , right , enter , escape , backspace , delete_key , space , tab , page_up , page_down , i , m , f3 } |
| Keyboard keys mapped onto the same abstract UI commands. More... | |
| enum class | input::UiCommand { none , move_up , move_down , move_left , move_right , activate , confirm , back , open_context_menu , delete_character , previous_page , next_page , fast_previous_page , fast_next_page , toggle_overlay } |
| Abstract UI command emitted by controller or keyboard input. More... | |
Functions | |
| UiCommand | input::map_gamepad_axis_direction_to_ui_command (GamepadAxisDirection direction) |
| Map a controller axis direction to a UI command. | |
| UiCommand | input::map_gamepad_button_to_ui_command (GamepadButton button) |
| Map a controller button to a UI command. | |
| UiCommand | input::map_keyboard_key_to_ui_command (KeyboardKey key, bool shiftPressed=false) |
| Map a keyboard key to a UI command. | |
Declares controller navigation input handling.
|
strong |
Controller axis directions mapped onto UI navigation commands.
|
strong |
Controller buttons used by the Moonlight client UI.
|
strong |
Keyboard keys mapped onto the same abstract UI commands.
|
strong |
Abstract UI command emitted by controller or keyboard input.
| UiCommand input::map_gamepad_axis_direction_to_ui_command | ( | GamepadAxisDirection | direction | ) |
Map a controller axis direction to a UI command.
| direction | Controller axis direction that crossed the navigation threshold. |
| UiCommand input::map_gamepad_button_to_ui_command | ( | GamepadButton | button | ) |
Map a controller button to a UI command.
| button | Controller button that was pressed. |
| UiCommand input::map_keyboard_key_to_ui_command | ( | KeyboardKey | key, |
| bool | shiftPressed = false ) |
Map a keyboard key to a UI command.
| key | Keyboard key that was pressed. |
| shiftPressed | Whether Shift was held for keys such as Tab. |