Base class for platform specific implementations of motion input devices.
More...
#include <InputDeviceMotion.h>
Base class for platform specific implementations of motion input devices.
◆ Implementation()
AzFramework::InputDeviceMotion::Implementation::Implementation |
( |
InputDeviceMotion & |
inputDevice | ) |
|
Constructor
- Parameters
-
[in] | inputDevice | Reference to the input device being implemented |
◆ Create()
Default factory create function
- Parameters
-
[in] | inputDevice | Reference to the input device being implemented |
◆ IsConnected()
virtual bool AzFramework::InputDeviceMotion::Implementation::IsConnected |
( |
| ) |
const |
|
pure virtual |
Query the connected state of the input device
- Returns
- True if the input device is currently connected, false otherwise
◆ ProcessAccelerationData()
void AzFramework::InputDeviceMotion::Implementation::ProcessAccelerationData |
( |
const InputChannelId & |
channelId, |
|
|
const AZ::Vector3 & |
data |
|
) |
| |
|
protected |
Process raw motion sensor data that has been obtained during since the last frame This function is not thread safe, and so should only be called from the main thread.
- Parameters
-
[in] | channelId | The input channel id |
[in] | data | The raw motion sensor data |
◆ ProcessMagneticFieldData()
void AzFramework::InputDeviceMotion::Implementation::ProcessMagneticFieldData |
( |
const InputChannelId & |
channelId, |
|
|
const AZ::Vector3 & |
data |
|
) |
| |
|
protected |
Process raw motion sensor data that has been obtained during since the last frame This function is not thread safe, and so should only be called from the main thread.
- Parameters
-
[in] | channelId | The input channel id |
[in] | data | The raw motion sensor data |
◆ ProcessOrientationData()
void AzFramework::InputDeviceMotion::Implementation::ProcessOrientationData |
( |
const InputChannelId & |
channelId, |
|
|
const AZ::Quaternion & |
data |
|
) |
| |
|
protected |
Process raw motion sensor data that has been obtained during since the last frame This function is not thread safe, and so should only be called from the main thread.
- Parameters
-
[in] | channelId | The input channel id |
[in] | data | The raw motion sensor data |
◆ ProcessRotationRateData()
void AzFramework::InputDeviceMotion::Implementation::ProcessRotationRateData |
( |
const InputChannelId & |
channelId, |
|
|
const AZ::Vector3 & |
data |
|
) |
| |
|
protected |
Process raw motion sensor data that has been obtained during since the last frame This function is not thread safe, and so should only be called from the main thread.
- Parameters
-
[in] | channelId | The input channel id |
[in] | data | The raw motion sensor data |
◆ RefreshMotionSensors()
virtual void AzFramework::InputDeviceMotion::Implementation::RefreshMotionSensors |
( |
const InputChannelIdSet & |
enabledChannelIds | ) |
|
|
pure virtual |
Refresh the currently enabled motion sensors based on the channels that are enabled
- Parameters
-
[in] | enabledChannelIds | Set of motion input channel ids that should be enabled |
The documentation for this class was generated from the following file:
- Code/Framework/AzFramework/AzFramework/Input/Devices/Motion/InputDeviceMotion.h