libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
ButtonMappingFactory.h
Go to the documentation of this file.
1#pragma once
2
4#include <memory>
5#include <string>
6#include <vector>
7
8namespace Ship {
9class ConsoleVariable;
10class ControlDeck;
11class Window;
12
32 public:
42 static std::shared_ptr<ControllerButtonMapping>
43 CreateButtonMappingFromConfig(uint8_t portIndex, std::string id, std::shared_ptr<ConsoleVariable> consoleVariable,
44 std::shared_ptr<ControlDeck> controlDeck, std::shared_ptr<Window> window);
45
55 static std::vector<std::shared_ptr<ControllerButtonMapping>>
57 std::shared_ptr<ConsoleVariable> consoleVariable,
58 std::shared_ptr<ControlDeck> controlDeck, std::shared_ptr<Window> window);
59
68 static std::vector<std::shared_ptr<ControllerButtonMapping>>
70 std::shared_ptr<ConsoleVariable> consoleVariable,
71 std::shared_ptr<ControlDeck> controlDeck);
72
81 static std::shared_ptr<ControllerButtonMapping>
83 std::shared_ptr<ConsoleVariable> consoleVariable,
84 std::shared_ptr<ControlDeck> controlDeck);
85
94 static std::shared_ptr<ControllerButtonMapping>
96 std::shared_ptr<ConsoleVariable> consoleVariable,
97 std::shared_ptr<ControlDeck> controlDeck);
98};
99} // namespace Ship
#define CONTROLLERBUTTONS_T
Definition ControllerButtonMapping.h:13
Factory for creating ControllerButtonMapping instances.
Definition ButtonMappingFactory.h:31
static std::vector< std::shared_ptr< ControllerButtonMapping > > CreateDefaultSDLButtonMappings(uint8_t portIndex, CONTROLLERBUTTONS_T bitmask, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck)
Creates default SDL mappings for the given button bitmask.
static std::shared_ptr< ControllerButtonMapping > CreateButtonMappingFromSDLInput(uint8_t portIndex, CONTROLLERBUTTONS_T bitmask, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck)
Creates a button mapping from live SDL input for interactive binding.
static std::shared_ptr< ControllerButtonMapping > CreateButtonMappingFromMouseWheelInput(uint8_t portIndex, CONTROLLERBUTTONS_T bitmask, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck)
Creates a button mapping from mouse wheel input for interactive binding.
static std::vector< std::shared_ptr< ControllerButtonMapping > > CreateDefaultKeyboardButtonMappings(uint8_t portIndex, CONTROLLERBUTTONS_T bitmask, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck, std::shared_ptr< Window > window)
Creates default keyboard mappings for the given button bitmask.
static std::shared_ptr< ControllerButtonMapping > CreateButtonMappingFromConfig(uint8_t portIndex, std::string id, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck, std::shared_ptr< Window > window)
Deserializes a button mapping from the configuration string.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14