libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
GyroMappingFactory.h
Go to the documentation of this file.
1#pragma once
2
4#include <memory>
5#include <string>
6
7namespace Ship {
8class ConsoleVariable;
9class ControlDeck;
10
32 public:
41 static std::shared_ptr<ControllerGyroMapping>
42 CreateGyroMappingFromConfig(uint8_t portIndex, std::string id, std::shared_ptr<ConsoleVariable> consoleVariable,
43 std::shared_ptr<ControlDeck> controlDeck);
44
52 static std::shared_ptr<ControllerGyroMapping>
53 CreateGyroMappingFromSDLInput(uint8_t portIndex, std::shared_ptr<ConsoleVariable> consoleVariable,
54 std::shared_ptr<ControlDeck> controlDeck);
55};
56} // namespace Ship
Factory for creating ControllerGyroMapping instances.
Definition GyroMappingFactory.h:31
static std::shared_ptr< ControllerGyroMapping > CreateGyroMappingFromSDLInput(uint8_t portIndex, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck)
Creates a gyro mapping from live SDL input for interactive binding.
static std::shared_ptr< ControllerGyroMapping > CreateGyroMappingFromConfig(uint8_t portIndex, std::string id, std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< ControlDeck > controlDeck)
Deserializes a gyro mapping from the configuration string.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14