24 uint8_t highFrequencyIntensityPercentage, std::shared_ptr<ControlDeck> controlDeck =
nullptr,
25 std::shared_ptr<ConsoleVariable> consoleVariable =
nullptr);
62 uint16_t mLowFrequencyIntensity;
63 uint16_t mHighFrequencyIntensity;
Maps rumble (haptic feedback) output to a physical controller.
Definition ControllerRumbleMapping.h:18
Maps an SDL gamepad's haptic motors to a controller rumble output.
Definition SDLRumbleMapping.h:15
std::shared_ptr< ConsoleVariable > mConsoleVariable
Definition SDLRumbleMapping.h:58
void EraseFromConfig() override
Removes this mapping from the application configuration.
void SetHighFrequencyIntensity(uint8_t intensityPercentage) override
Sets the high-frequency motor intensity.
void SetLowFrequencyIntensity(uint8_t intensityPercentage) override
Sets the low-frequency motor intensity.
std::string GetRumbleMappingId() override
Returns the unique string identifier for this mapping.
void SaveToConfig() override
Persists this mapping to the application configuration.
void StopRumble() override
Stops any active rumble effect.
std::string GetPhysicalDeviceName() override
Returns the human-readable name of the SDL gamepad device.
SDLRumbleMapping(uint8_t portIndex, uint8_t lowFrequencyIntensityPercentage, uint8_t highFrequencyIntensityPercentage, std::shared_ptr< ControlDeck > controlDeck=nullptr, std::shared_ptr< ConsoleVariable > consoleVariable=nullptr)
Constructs an SDL rumble mapping.
std::shared_ptr< ControlDeck > mControlDeck
Definition SDLRumbleMapping.h:59
void StartRumble() override
Starts the rumble effect with the configured intensities.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14