VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
joystick
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
11
#include "
vrfobjcore/controllerComponent.h
"
12
#include "
vrfmodel/joystickControllerInterface.h
"
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
21
class
MyJoystickControllerComponenet
:
public
DtControllerComponent
,
public
DtJoystickControllerInterface
22
{
23
public
:
24
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
25
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
26
MyJoystickControllerComponenet
(
const
DtString
&
name
,
27
DtVrfObject
* owner,
28
DtSimManager
*
simManager
,
29
DtComponentDescriptor
* desc = 0,
30
DtReaderWriterRegistry
* parentRegistry = 0);
31
32
//destructor
33
virtual
~MyJoystickControllerComponenet
();
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.
61
MyJoystickControllerComponenet
();
62
63
//copy constructor
64
MyJoystickControllerComponenet
(
const
MyJoystickControllerComponenet
& orig);
65
66
//assignment operator
67
const
MyJoystickControllerComponenet
&
operator=
(
const
68
MyJoystickControllerComponenet
& orig);
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
)