28 WheelDirection wheelDirection, std::shared_ptr<ControlDeck> controlDeck =
nullptr,
29 std::shared_ptr<ConsoleVariable> consoleVariable =
nullptr);
Maps a physical input to a virtual analog stick direction.
Definition ControllerAxisDirectionMapping.h:27
Base class for mappings that bind a mouse scroll-wheel direction to any controller input.
Definition MouseWheelToAnyMapping.h:15
Maps a mouse scroll-wheel direction to a virtual analog stick direction.
Definition MouseWheelToAxisDirectionMapping.h:18
void EraseFromConfig() override
Removes this mapping from the application configuration.
MouseWheelToAxisDirectionMapping(uint8_t portIndex, StickIndex stickIndex, Direction direction, WheelDirection wheelDirection, std::shared_ptr< ControlDeck > controlDeck=nullptr, std::shared_ptr< ConsoleVariable > consoleVariable=nullptr)
Constructs a mouse-wheel-to-axis-direction mapping.
std::shared_ptr< ControlDeck > mControlDeck
Definition MouseWheelToAxisDirectionMapping.h:54
std::string GetAxisDirectionMappingId() override
Returns the unique string identifier for this mapping.
std::shared_ptr< ConsoleVariable > mConsoleVariable
Definition MouseWheelToAxisDirectionMapping.h:53
std::string GetPhysicalInputName() override
Returns the human-readable name of the bound wheel direction.
float GetNormalizedAxisDirectionValue() override
Returns the normalised axis value derived from the wheel input.
int8_t GetMappingType() override
Returns the mapping type identifier.
void SaveToConfig() override
Persists this mapping to the application configuration.
std::string GetPhysicalDeviceName() override
Returns the human-readable name of the mouse device.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
Direction
Identifies the direction component of an axis mapping.
Definition ControllerAxisDirectionMapping.h:18
WheelDirection
Identifies a scroll-wheel direction delivered to the input mapping system.
Definition KeyboardScancodes.h:149
StickIndex
Identifies which analog stick an axis mapping applies to.
Definition ControllerAxisDirectionMapping.h:15