Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
navigation_input.cpp File Reference

Implements controller navigation input handling. More...

Include dependency graph for navigation_input.cpp:

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.
 

Detailed Description

Implements controller navigation input handling.

Function Documentation

◆ map_gamepad_axis_direction_to_ui_command()

UiCommand input::map_gamepad_axis_direction_to_ui_command ( GamepadAxisDirection direction)

Map a controller axis direction to a UI command.

Parameters
directionController axis direction that crossed the navigation threshold.
Returns
The abstract UI command to process.

◆ map_gamepad_button_to_ui_command()

UiCommand input::map_gamepad_button_to_ui_command ( GamepadButton button)

Map a controller button to a UI command.

Parameters
buttonController button that was pressed.
Returns
The abstract UI command to process.

◆ map_keyboard_key_to_ui_command()

UiCommand input::map_keyboard_key_to_ui_command ( KeyboardKey key,
bool shiftPressed = false )

Map a keyboard key to a UI command.

Parameters
keyKeyboard key that was pressed.
shiftPressedWhether Shift was held for keys such as Tab.
Returns
The abstract UI command to process.