libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
SDLAxisDirectionToAnyMapping.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace Ship {
7
15 public:
21 SDLAxisDirectionToAnyMapping(int32_t sdlControllerAxis, int32_t axisDirection);
22
25
27 std::string GetPhysicalInputName() override;
28
30 std::string GetPhysicalDeviceName() override;
31
37
43
44 protected:
45 SDL_GameControllerAxis mControllerAxis;
47};
48} // namespace Ship
Base class for controller mappings that represent a physical input.
Definition ControllerInputMapping.h:16
Base class for mappings that bind an SDL gamepad axis direction to any controller input.
Definition SDLAxisDirectionToAnyMapping.h:14
SDLAxisDirectionToAnyMapping(int32_t sdlControllerAxis, int32_t axisDirection)
Constructs an SDL axis-direction mapping.
virtual ~SDLAxisDirectionToAnyMapping()
Destructor.
bool AxisIsTrigger()
Tests whether this axis represents a trigger (e.g. LT / RT).
bool AxisIsStick()
Tests whether this axis represents an analog stick axis.
std::string GetPhysicalDeviceName() override
Returns the human-readable name of the SDL gamepad device.
AxisDirection mAxisDirection
Definition SDLAxisDirectionToAnyMapping.h:46
std::string GetPhysicalInputName() override
Returns the human-readable name of the bound axis and direction.
SDL_GameControllerAxis mControllerAxis
Definition SDLAxisDirectionToAnyMapping.h:45
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
AxisDirection
Identifies the sign of an axis value (negative or positive half).
Definition SDLMapping.h:11