libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
SDLButtonToAnyMapping.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace Ship {
7
16 public:
21 SDLButtonToAnyMapping(int32_t sdlControllerButton);
22
25
27 std::string GetPhysicalInputName() override;
28
30 std::string GetPhysicalDeviceName() override;
31
32 protected:
33 SDL_GameControllerButton mControllerButton;
34
35 private:
36 std::string GetGenericButtonName();
37};
38} // 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 button to any controller input.
Definition SDLButtonToAnyMapping.h:15
SDLButtonToAnyMapping(int32_t sdlControllerButton)
Constructs an SDL button mapping.
virtual ~SDLButtonToAnyMapping()
Destructor.
std::string GetPhysicalInputName() override
Returns the human-readable name of the bound button.
SDL_GameControllerButton mControllerButton
Definition SDLButtonToAnyMapping.h:33
std::string GetPhysicalDeviceName() override
Returns the human-readable name of the SDL gamepad device.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14