VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fixedWingJoyFlightController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
17 class DtString;
19 
24 const char DtFixedWingJoyFlightControllerType[] = "fixed-wing-joy-flight-controller";
25 
27 {
28 public:
29 
33  DtLocalObject* owner,
35  DtComponentDescriptor* desc = 0,
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
39  virtual ~DtFixedWingJoyFlightController() override;
40 
43  virtual const char* type() const override;
44 
48  static DtSimComponent * creator(const DtString& name,
49  DtLocalObject* owner,
50  DtSimulationServices* simManager,
51  DtComponentDescriptor* desc = 0,
52  DtReaderWriterRegistry* parentRegistry = 0);
53 
54 private:
55 
58 
61  const DtFixedWingJoyFlightController& orig);
62 
65  const DtFixedWingJoyFlightController& orig);
66 
67 protected:
68  virtual void calcAndSetPortValues(
69  const DtString& functionGroup, const DtString& function, double value, bool repeat) override;
70  virtual void joystickConnected() override;
71  virtual void joystickDisconnected() override;
72 };
73 
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat) override
Override to set.
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
virtual void joystickConnected() override
Called when joystick is connected for this controller.
DtFixedWingPilotController is a controller that models the capabilities of a fixed-wing pilot...
Definition: fixedWingPilotController.h:47
DtFixedWingJoyFlightController()
default constructor - should not be called.
Definition: fixedWingJoyFlightController.h:26
const char DtFixedWingJoyFlightControllerType[]
DtFixedWingJoyFlightController is a controller used to enable joystick control of a fixed wing aircra...
Definition: fixedWingJoyFlightController.h:24
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
VRF4API_METHOD const DtSimulationServices * simManager() const
This is the deprecated API that can be used as a reference to migrate 4.X code to 5...
Definition: simComponent.h:583
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Will manage basic functionality of a joystick controller. Implement pure virtual functions to respons...
Definition: joystickControllerInterface.h:23
virtual ~DtFixedWingJoyFlightController() override
destructor
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
DtFixedWingJoyFlightController & operator=(const DtFixedWingJoyFlightController &orig)
assignment operator
A locally simulated VRF object.
Definition: localObject.h:98
virtual void joystickDisconnected() override
Called when joystick is disconnected for this controller.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)