VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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 Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)