libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
MouseWheelToAxisDirectionMapping.h
Go to the documentation of this file.
1#pragma once
2
6#include <memory>
7
8namespace Ship {
9class ConsoleVariable;
10class ControlDeck;
11
19 public:
27 MouseWheelToAxisDirectionMapping(uint8_t portIndex, StickIndex stickIndex, Direction direction,
28 WheelDirection wheelDirection, std::shared_ptr<ControlDeck> controlDeck = nullptr,
29 std::shared_ptr<ConsoleVariable> consoleVariable = nullptr);
30
33
35 std::string GetAxisDirectionMappingId() override;
36
38 int8_t GetMappingType() override;
39
41 void SaveToConfig() override;
42
44 void EraseFromConfig() override;
45
47 std::string GetPhysicalDeviceName() override;
48
50 std::string GetPhysicalInputName() override;
51
52 protected:
53 std::shared_ptr<ConsoleVariable> mConsoleVariable;
54 std::shared_ptr<ControlDeck> mControlDeck;
55};
56} // namespace Ship
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