VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
joystickController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 //\file joystickController.h
7 //\brief MyJoystickController; handles new joystick controller function requests
8 
9 #pragma once
10 
13 
14 //\brief MyJoystickController is a controller that handles new
15 //joystick function requests
16 //
17 //Uses Descriptor Type: DtJoystickControllerDescriptor
18 
19 #define DtJoystickControllerComponentExampleType "joystick-controller-component-example"
20 
22 {
23 public:
24  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
25  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
27  DtVrfObject* owner,
29  DtComponentDescriptor* desc = 0,
30  DtReaderWriterRegistry* parentRegistry = 0);
31 
32  //destructor
34 
35  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
36  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
37  //\return New instance of this class.
38  static DtSimComponent * creator(const DtString& name,
39  DtVrfObject* owner,
40  DtSimManager* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual const char* type() const;
46 
50  virtual void joystickConnected();
51 
53  virtual void joystickDisconnected();
54 
56  virtual void calcAndSetPortValues(const DtString& functionGroup, const DtString& function, double value, bool repeat);
57 
58 private:
59  //Default constructor; should not be called. Here because the compiler
60  //will generate an unprotected one otherwise.
62 
63  //copy constructor
65 
66  //assignment operator
69 };
70 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)