98 virtual void tick(
double dt)
override;
108 virtual const char*
type()
const override;
115 virtual void yaw(
double val);
164 virtual void zoom(
double value);
float myYawInput
Current yaw input value.
Definition commanderHatchControlLogic.h:206
void onBinocularsChanged(bool usingBinoculars)
Callback for changes to the "usingBinoculars" state attribute.
float myPitchInput
Current pitch input value.
Definition commanderHatchControlLogic.h:211
virtual void toggleBinoculars(double val)
Toggles binocular use on or off.
virtual void zoomIn(double value)
Increases binocular zoom level.
virtual bool postInitialize() override
Performs post-initialization setup.
virtual void tick(double dt) override
Updates the component state.
virtual const char * type() const override
Returns the component type identifier.
virtual void zoom(double value)
Combined input handler for binocular zoom.
std::string myMainControlGroup
Main control group name from configuration.
Definition commanderHatchControlLogic.h:201
virtual void pitch(double val)
Input handler for vertical head tilt (pitch)
virtual void zoomOut(double value)
Reduces binocular zoom level.
virtual void toggleNVG(double val)
Toggles night vision goggles (NVG) on or off.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the component with configuration from Lua.
virtual void yaw(double val)
Input handler for horizontal head rotation (yaw)
virtual void setBinocularsControls(bool enabled)
Enables or disables binocular-specific input controls.
virtual void shutdown() override
Shuts down the component.
DtCommanderHatchControlLogic()
Constructor for DtCommanderHatchControlLogic.
DtInputLogic myInputLogic
Input handler logic for processing input device events.
Definition commanderHatchControlLogic.h:196
virtual ~DtCommanderHatchControlLogic() override
Virtual destructor for DtCommanderHatchControlLogic.
virtual DtVreMessageResult handleMenuMessage(makVre::DtVreMessage *msg)
Handles menu action messages.
Component that provides entity control functionality.
Definition entityControlLogic.h:60
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines the logic for controlling entities in VR-Engage.
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition commanderHatchControlLogic.h:23
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtCommanderHatchControlLogicType
Type identifier for DtCommanderHatchControlLogic component.
Definition commanderHatchControlLogic.h:36
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33