EBus interface used to send haptic feedback requests to connected input devices.
More...
#include <InputHapticFeedbackRequestBus.h>
Inherits AZ::EBusTraits.
|
virtual void | SetVibration (float, float)=0 |
|
virtual | ~InputHapticFeedbackRequests ()=default |
| Default destructor.
|
|
|
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
|
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
| EBus Trait: requests should be handled by only one input device connected to each id.
|
|
EBus interface used to send haptic feedback requests to connected input devices.
◆ SetVibration()
virtual void AzFramework::InputHapticFeedbackRequests::SetVibration |
( |
float |
, |
|
|
float |
|
|
) |
| |
|
pure virtual |
Set the current vibration (force-feedback) of the input device. All calls to this method should be addressed to a specific input device, otherwise all devices that support force feedback will respond! To stop all vibration, call this passing 0.0f for both parameters.
Called using either:
- EBus<>::Broadcast (any input device can respond to the request)
- EBus<>::Event(id) (the given device can respond to the request)
- Parameters
-
[in] | leftMotorSpeedNormalized | Speed of the left (large/low frequency) motor |
[in] | rightMotorSpeedNormalized | Speed of the right (small/high frequency) motor |
◆ AddressPolicy
const AZ::EBusAddressPolicy AzFramework::InputHapticFeedbackRequests::AddressPolicy = AZ::EBusAddressPolicy::ById |
|
static |
EBus Trait: requests can be addressed to a specific InputDeviceId using EBus<>::Event, which should be handled by only one device that has connected to the bus using that id. Input requests can also be sent using EBus<>::Broadcast, in which case they'll be sent to all input devices that have connected to the input event bus regardless of their id.
The documentation for this class was generated from the following file:
- Code/Framework/AzFramework/AzFramework/Input/Buses/Requests/InputHapticFeedbackRequestBus.h