VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
joystickControllerInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
13 class DtLocalObject;
17 class DtSimMessage;
18 class DtString;
19 
24 {
25 public:
28  DtSimulationServices* simManager, DtComponentDescriptor* desc);
29 
32 
33  virtual bool joystickEnabled() const;
34 
35 protected:
36  virtual void processJoyDeviceRequest(DtSimMessage* msg);
37  static void joyDeviceRequestCallback(DtSimMessage* msg, void* usr);
38 
39  virtual void processJoystickControlMessage(DtSimMessage* msg);
40  static void joystickControlMessageCallback(DtSimMessage* msg, void* usr);
41 
43  virtual void calcAndSetPortValues(const DtString& functionGroup, const DtString& function, double value, bool repeat) = 0;
44 
46  virtual void joystickConnected() = 0;
47 
49  virtual void joystickDisconnected() = 0;
50 
51 private:
52 
55 
58  const DtJoystickControllerInterface& orig);
59 
62  const DtJoystickControllerInterface& orig);
63 
64 protected:
70 };
71 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
int myRequestCount
Definition: joystickControllerInterface.h:67
File: simMsg.h.
Definition: simMessage.h:35
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
DtGroundJoyDeviceControllerDescriptor.
Definition: joyDeviceControllerDescriptor.h:24
const DtJoyDeviceControllerDescriptorInterface * myJoyDeviceControllerDescriptor
Definition: joystickControllerInterface.h:65
DtLocalObject * myJoystickOwner
Definition: joystickControllerInterface.h:69
DtSimulationServices * myJoystickSimManager
Definition: joystickControllerInterface.h:68
Will manage basic functionality of a joystick controller. Implement pure virtual functions to respons...
Definition: joystickControllerInterface.h:23
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
bool myJoystickEnabled
Definition: joystickControllerInterface.h:66

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)