|
void | GetDeviceList (ezHybridArray< ezXRDeviceID, 64 > &out_devices) const override |
| Fills out a list of valid (connected) device IDs.
|
|
ezXRDeviceID | GetDeviceIDByType (ezXRDeviceType::Enum type) const override |
| Returns the deviceID for a specific type of device. If the device is not connected, -1 is returned instead.
|
|
const ezXRDeviceState & | GetDeviceState (ezXRDeviceID deviceID) const override |
| Returns the current device state for a valid device ID.
|
|
ezString | GetDeviceName (ezXRDeviceID deviceID) const override |
| Returns the device name for a valid device ID. More...
|
|
ezBitflags< ezXRDeviceFeatures > | GetDeviceFeatures (ezXRDeviceID deviceID) const override |
| Returns the device features for a valid device ID.
|
|
const ezXRDeviceEvent & | GetInputEvent () |
| Returns the input event. Allows tracking device addition and removal.
|
|
| ezInputDevice () |
| Default Constructor.
|
|
float | GetInputSlotState (ezStringView sSlot) const |
| Allows to query current input values for the given slot.
|
|
bool | HasDeviceBeenUsedLastFrame () const |
| Returns true, if the device was 'used' during the last frame, ie. when it generated input due to some user interaction. More...
|
|
virtual const ezRTTI * | GetDynamicRTTI () const |
|
bool | IsInstanceOf (const ezRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
template<typename T > |
EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
|
void | InitializeDevice () override |
| Override this if you need to do device specific initialization before the first use.
|
|
void | UpdateInputSlotValues () override |
| Override this, if you need to query the state of the hardware to update the input slots. More...
|
|
void | RegisterInputSlots () override |
| Override this to register all the input slots that this device exposes. More...
|
|
virtual void | ResetInputSlotValues () |
| Override this, if you need to reset certain input slot values to zero, after the ezInputManager is finished with the current frame update.
|
|
virtual void | UpdateHardwareState (ezTime tTimeDifference) |
| This function is called once after ezInputManager::Update with the same time delta value. It allows to update hardware state, such as the vibration of gamepad motors.
|
|
◆ GetDeviceName()
ezString ezDummyXRInput::GetDeviceName |
( |
ezXRDeviceID |
deviceID | ) |
const |
|
overridevirtual |
Returns the device name for a valid device ID.
This returns a human readable name to identify the device. For ezXRDeviceType::HMD the name is always 'HMD'. This can be used for e.g. controllers to create custom game input logic or mappings if a certain type of controller is used. Values could be for example: 'Simple Controller', 'Mixed Reality Motion Controller', 'Hand Interaction' etc.
Implements ezXRInputDevice.
◆ RegisterInputSlots()
void ezDummyXRInput::RegisterInputSlots |
( |
| ) |
|
|
overrideprotectedvirtual |
Override this to register all the input slots that this device exposes.
This is called once during initialization. It needs to call RegisterInputSlot() once for every input slot that this device exposes to the system.
Implements ezInputDevice.
◆ UpdateInputSlotValues()
void ezDummyXRInput::UpdateInputSlotValues |
( |
| ) |
|
|
overrideprotectedvirtual |
Override this, if you need to query the state of the hardware to update the input slots.
- Note
- This function might be called multiple times before ResetInputSlotValues() is called. This will be the case when ezInputManager::PollHardware is used to make more frequent hardware updates than input is actually processed. Just make sure to always accumulate delta values (such as mouse move values) and don't expect ResetInputSlotValues() to be called in tandem with this function and it will be fine.
Implements ezInputDevice.
The documentation for this class was generated from the following files:
- /home/runner/work/ezEngine/ezEngine/Code/Engine/GameEngine/XR/DummyXR.h
- /home/runner/work/ezEngine/ezEngine/Code/Engine/GameEngine/XR/Implementation/DummyXR.cpp