|
| static std::shared_ptr< ControllerAxisDirectionMapping > | CreateAxisDirectionMappingFromConfig (uint8_t portIndex, StickIndex stickIndex, std::string id, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck, std::shared_ptr< Window > window) |
| | Deserializes an axis-direction mapping from the configuration string.
|
| |
| static std::vector< std::shared_ptr< ControllerAxisDirectionMapping > > | CreateDefaultKeyboardAxisDirectionMappings (uint8_t portIndex, StickIndex stickIndex, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck, std::shared_ptr< Window > window) |
| | Creates default keyboard mappings for the given stick and direction.
|
| |
| static std::vector< std::shared_ptr< ControllerAxisDirectionMapping > > | CreateDefaultSDLAxisDirectionMappings (uint8_t portIndex, StickIndex stickIndex, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck) |
| | Creates default SDL mappings for the given stick.
|
| |
| static std::shared_ptr< ControllerAxisDirectionMapping > | CreateAxisDirectionMappingFromSDLInput (uint8_t portIndex, StickIndex stickIndex, Direction direction, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck) |
| | Creates an axis-direction mapping from live SDL input for interactive binding.
|
| |
| static std::shared_ptr< ControllerAxisDirectionMapping > | CreateAxisDirectionMappingFromMouseWheelInput (uint8_t portIndex, StickIndex stickIndex, Direction direction, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck) |
| | Creates an axis-direction mapping from mouse wheel input for interactive binding.
|
| |
Factory for creating ControllerAxisDirectionMapping instances.
AxisDirectionMappingFactory provides static helpers to create ControllerAxisDirectionMapping instances from various input sources. It supports deserializing axis mappings from persisted configuration, generating default keyboard and SDL mappings, and creating mappings from live SDL input events during interactive binding.
All factory methods require a ConsoleVariable and ControlDeck to track state and configuration. Keyboard and mouse methods also require a Window for key-capture state.
Typical usage (within ControlDeck or ConfigUI):
portIndex, stickIndex, mappingId, consoleVariable, controlDeck, window);
static std::shared_ptr< ControllerAxisDirectionMapping > CreateAxisDirectionMappingFromConfig(uint8_t portIndex, StickIndex stickIndex, std::string id, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck, std::shared_ptr< Window > window)
Deserializes an axis-direction mapping from the configuration string.