libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
RumbleMappingFactory.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;
11
34 public:
43 static std::shared_ptr<ControllerRumbleMapping>
44 CreateRumbleMappingFromConfig(uint8_t portIndex, std::string id, std::shared_ptr<ConsoleVariable> consoleVariable,
45 std::shared_ptr<ControlDeck> controlDeck);
46
55 static std::vector<std::shared_ptr<ControllerRumbleMapping>>
56 CreateDefaultSDLRumbleMappings(PhysicalDeviceType physicalDeviceType, uint8_t portIndex,
57 std::shared_ptr<ConsoleVariable> consoleVariable,
58 std::shared_ptr<ControlDeck> controlDeck);
59
67 static std::shared_ptr<ControllerRumbleMapping>
68 CreateRumbleMappingFromSDLInput(uint8_t portIndex, std::shared_ptr<ConsoleVariable> consoleVariable,
69 std::shared_ptr<ControlDeck> controlDeck);
70};
71} // namespace Ship
Factory for creating ControllerRumbleMapping instances.
Definition RumbleMappingFactory.h:33
static std::shared_ptr< ControllerRumbleMapping > CreateRumbleMappingFromSDLInput(uint8_t portIndex, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck)
Creates a rumble mapping from live SDL input for interactive binding.
static std::shared_ptr< ControllerRumbleMapping > CreateRumbleMappingFromConfig(uint8_t portIndex, std::string id, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck)
Deserializes a rumble mapping from the configuration string.
static std::vector< std::shared_ptr< ControllerRumbleMapping > > CreateDefaultSDLRumbleMappings(PhysicalDeviceType physicalDeviceType, uint8_t portIndex, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck)
Creates default SDL rumble mappings for a specific physical device type.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
PhysicalDeviceType
Identifies the category of a physical input device.
Definition PhysicalDeviceType.h:11