14#include <vrfmodel/joystickControllerInterface.h>
17class DtRwPropertiesMap;
18class DtRwPropertiesStructure;
43 DtSimComponent* component, DtLocalObject* owner, DtSimulationServices* simManager, DtComponentDescriptor* desc);
54 static void updateJoystickState(DtSimComponent& component, DtLocalObject& owner,
bool enabled,
int requestCount);
68 bool incomingTransfer,
101 DtSimComponent& component, DtLocalObject& owner,
bool create);
bool myRestoreJoystickState
Remembers incoming conversion because the owner clears it before first-tick initialization.
Definition vreJoystickControllerInterface.h:107
virtual ~DtVreJoystickControllerInterface() override
Destroys the interface; the VRF base removes its message callbacks.
void restoreJoystickState()
Restores an incoming controller's saved state during first-tick initialization.
static bool restoreJoystickState(DtSimComponent &component, DtLocalObject &owner, bool incomingTransfer, bool &enabled, int &requestCount, bool hasDescriptor)
Restores state without accessing another controller's protected interface members.
DtSimComponent & myJoystickComponent
Non-owning reference used to identify this controller's state entry.
Definition vreJoystickControllerInterface.h:104
DtVreJoystickControllerInterface(const DtVreJoystickControllerInterface &)=delete
Deleted copy constructor and assignment operator to prevent copying.
virtual void processJoyDeviceRequest(DtSimMessage *msg) override
Keeps the saved count current for requests that do not invoke connection hooks.
static DtRwPropertiesStructure * joystickStateProperties(DtSimComponent &component, DtLocalObject &owner, bool create)
Finds and validates a controller's state, creating missing storage only when requested.
DtVreJoystickControllerInterface & operator=(const DtVreJoystickControllerInterface &)=delete
DtVreJoystickControllerInterface & operator=(DtVreJoystickControllerInterface &&)=delete
static void updateJoystickState(DtSimComponent &component, DtLocalObject &owner, bool enabled, int requestCount)
Writes joystick state for a controller with an existing VRF interface.
static DtRwPropertiesMap * createJoystickStateMap(DtRwProperties &context, DtLocalObject &owner)
Creates the typed controller-state map in the supplied context.
DtVreJoystickControllerInterface(DtVreJoystickControllerInterface &&)=delete
void updateJoystickState()
Writes the current enabled flag and request count to this controller's internal-state entry.
DtVreJoystickControllerInterface(DtSimComponent *component, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc)
Constructs an interface alongside an existing component base.
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
!
Definition glsVreMessageUtil.h:50