VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtKeyEvent.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtInputDriver.h,v $ $Revision: 1.80 $ $State: Exp $
00007 ******************************************************************************/
00011 
00012 #pragma once
00013 #include <vrvCore/vrvCore.h>
00014 #include <vrvCore/DtKeyState.h>
00015 
00016 namespace makVrv
00017 {
00020    class DT_DLL_VRVCORE DtKeyEvent
00021    {
00022    public:
00024       enum KeyEventType { 
00025          NO_EVENT = 0,
00026          KEY_DOWN,
00027          KEY_UP
00028       };
00029  
00030    public:
00031    
00033       DtKeyEvent();
00034       
00036       DtKeyEvent( KeyEventType eventType, const DtKeyState& KeyState );
00037    
00039       virtual ~DtKeyEvent();
00040 
00042       DtKeyEvent(const DtKeyEvent& );
00043    
00045       DtKeyEvent &operator=( const DtKeyEvent& );
00046         
00048       inline const DtKeyState& keyState() const
00049       {
00050          return myKeyState;
00051       }
00052    
00054       inline DtKeyState& keyState()
00055       {
00056          return myKeyState;
00057       }
00058    
00060       virtual void setKeyState( const DtKeyState& keyState );      
00061    
00063       inline DtKeyEvent::KeyEventType eventType() const
00064       {
00065          return myEventType;
00066       }
00067    
00069       virtual void setEventType( DtKeyEvent::KeyEventType eventType );
00070       
00071    protected:
00072 
00073       DtKeyEvent::KeyEventType myEventType;
00074       DtKeyState myKeyState;
00075    
00076    };
00077 } //end namespace

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)