9#define DEFAULT_HIGH_FREQUENCY_RUMBLE_PERCENTAGE 50
10#define DEFAULT_LOW_FREQUENCY_RUMBLE_PERCENTAGE 50
28 uint8_t lowFrequencyIntensityPercentage, uint8_t highFrequencyIntensityPercentage);
Base class for all controller mappings.
Definition ControllerMapping.h:20
Maps rumble (haptic feedback) output to a physical controller.
Definition ControllerRumbleMapping.h:18
ControllerRumbleMapping(PhysicalDeviceType physicalDeviceType, uint8_t portIndex, uint8_t lowFrequencyIntensityPercentage, uint8_t highFrequencyIntensityPercentage)
Constructs a ControllerRumbleMapping.
uint8_t mLowFrequencyIntensityPercentage
Definition ControllerRumbleMapping.h:100
uint8_t mHighFrequencyIntensityPercentage
Definition ControllerRumbleMapping.h:101
virtual void StopRumble()=0
Deactivates rumble on the physical device.
uint8_t GetLowFrequencyIntensityPercentage()
Returns the current low-frequency rumble intensity percentage.
void ResetHighFrequencyIntensityToDefault()
Resets high-frequency rumble intensity to DEFAULT_HIGH_FREQUENCY_RUMBLE_PERCENTAGE.
virtual void SaveToConfig()=0
Persists this mapping to the application configuration.
bool HighFrequencyIntensityIsDefault()
Checks whether the high-frequency intensity is at its default value.
~ControllerRumbleMapping()
virtual std::string GetRumbleMappingId()=0
Returns a unique string identifier for this rumble mapping.
virtual void EraseFromConfig()=0
Removes this mapping from the application configuration.
virtual void StartRumble()=0
Activates rumble on the physical device.
bool LowFrequencyIntensityIsDefault()
Checks whether the low-frequency intensity is at its default value.
virtual void SetLowFrequencyIntensity(uint8_t intensityPercentage)
Sets the low-frequency rumble intensity.
uint8_t GetHighFrequencyIntensityPercentage()
Returns the current high-frequency rumble intensity percentage.
void ResetLowFrequencyIntensityToDefault()
Resets low-frequency rumble intensity to DEFAULT_LOW_FREQUENCY_RUMBLE_PERCENTAGE.
virtual void SetHighFrequencyIntensity(uint8_t intensityPercentage)
Sets the high-frequency rumble intensity.
void SetPortIndex(uint8_t portIndex)
Sets the controller port index for this mapping.
uint8_t mPortIndex
Definition ControllerRumbleMapping.h:98
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