VR-Forces 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:96
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.
Definition: localObject.h:98
bool myJoystickEnabled
Definition: joystickControllerInterface.h:66

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)