VR-Forces 4.6 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
include
vrfmodel
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
11
#include "
vrfmodel/vrfmodelDefines.h
"
12
13
class
DtVrfObject
;
14
class
DtSimManager
;
15
class
DtJoyDeviceControllerDescriptorInterface
;
16
class
DtComponentDescriptor
;
17
class
DtSimMessage
;
18
class
DtString
;
19
22
#include "
vrfmodel/vrfmodelDefines.h
"
23
class
DT_DLL_vrfmodel
DtJoystickControllerInterface
24
{
25
public
:
27
DtJoystickControllerInterface
(
DtVrfObject
* owner,
28
DtSimManager
* simManager,
DtComponentDescriptor
* desc);
29
31
virtual
~
DtJoystickControllerInterface
();
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
54
DtJoystickControllerInterface
();
55
57
DtJoystickControllerInterface
(
58
const
DtJoystickControllerInterface
& orig);
59
61
DtJoystickControllerInterface
& operator=(
62
const
DtJoystickControllerInterface
& orig);
63
64
protected
:
65
const
DtJoyDeviceControllerDescriptorInterface
*
myJoyDeviceControllerDescriptor
;
66
bool
myJoystickEnabled
;
67
int
myRequestCount
;
68
DtSimManager
*
myJoystickSimManager
;
69
DtVrfObject
*
myJoystickOwner
;
70
};
71
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)