|
VR-Engage
2.3
|
This page covers control-message helpers in glsUtil/glsVreMessageUtil.h. Review these calls if your application acquires joystick function groups or VR-Engage roles.
The three-argument makVre::takeControlOf() overload still compiles, but its message behavior changed. Previously it put both function groups and roles into one VrfTakeControlOfMessage. It now queues a VrfTakeControlOfMessage for function groups and a separate VrfSetVreControlledMessage to add roles. The role-control message uses an empty station ID. Do not assume the old call queues only one message.
The old three-argument call remains available if an empty station ID is appropriate. Update custom handlers that interpret role acquisition from VrfTakeControlOfMessage. Handle VrfSetVreControlledMessage for role changes instead. If role control needs a specific station ID, use setVreControlled() explicitly rather than relying on the three-argument overload.
The makVre namespace adds two independently callable helpers in glsUtil/glsVreMessageUtil.h:
Call the two-argument takeControlOf() for joystick control without changing roles. Call setVreControlled() with controlled = true to add roles or false to remove them. Set ignoreErrors when releasing roles that might not currently be tracked.