My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::KeyEvent Struct Reference

simple key events struct More...

#include <EventClasses.h>

Inheritance diagram for ParaEngine::KeyEvent:
ParaEngine::IEvent

Public Member Functions

 KeyEvent (DWORD KeyState, int nKey, int nEventType=EVENT_KEY)
 
virtual int GetEventType () const
 get event type
 
string ToScriptCode () const
 build script code and return. More...
 
- Public Member Functions inherited from ParaEngine::IEvent
virtual bool IsAsyncMode () const
 return true, if firing event does not immediately invoke the handler. More...
 
virtual int GetEventID () const
 get event id
 

Public Attributes

DWORD m_KeyState
 
int m_nKey
 
int m_nEventType
 

Detailed Description

simple key events struct

Member Function Documentation

§ ToScriptCode()

std::string KeyEvent::ToScriptCode ( ) const
virtual

build script code and return.

it does not cache the script code. Use GetScriptCode() instead for performance reason.

Reimplemented from ParaEngine::IEvent.


The documentation for this struct was generated from the following files: