VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtKeyEvent.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtInputDriver.h,v $ $Revision: 1.80 $ $State: Exp $
7
******************************************************************************/
11
12
#pragma once
13
#include <
vrvCore/vrvCore.h
>
14
#include <
vrvCore/DtKeyState.h
>
15
16
namespace
makVrv
17
{
20
class
DT_DLL_VRVCORE
DtKeyEvent
21
{
22
public
:
24
enum
KeyEventType
{
25
NO_EVENT = 0,
26
KEY_DOWN
,
27
KEY_UP
28
};
29
30
public
:
31
33
DtKeyEvent
();
34
36
DtKeyEvent
( KeyEventType eventType,
const
DtKeyState
& KeyState );
37
39
virtual
~
DtKeyEvent
();
40
42
DtKeyEvent
(
const
DtKeyEvent
& );
43
45
DtKeyEvent
&operator=(
const
DtKeyEvent
& );
46
48
inline
const
DtKeyState
& keyState()
const
49
{
50
return
myKeyState;
51
}
52
54
inline
DtKeyState
& keyState()
55
{
56
return
myKeyState;
57
}
58
60
virtual
void
setKeyState(
const
DtKeyState
& keyState );
61
63
inline
DtKeyEvent::KeyEventType
eventType()
const
64
{
65
return
myEventType;
66
}
67
69
virtual
void
setEventType(
DtKeyEvent::KeyEventType
eventType );
70
71
protected
:
72
73
DtKeyEvent::KeyEventType
myEventType
;
74
DtKeyState
myKeyState
;
75
76
};
77
}
//end namespace
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)