Inherits NLMISC::IEventListener.
Public Member Functions | |
| NeLInputDriver () | |
| virtual | ~NeLInputDriver () |
| void | addToServer (NLMISC::CEventServer &server) |
| void | removeFromServer (NLMISC::CEventServer &server) |
| void | setScreenMode (float width, float height, float depth) |
| void | setDriver (NL3D::UDriver *driver) |
| void | deactivate () |
| void | activate () |
| void | activateMouse () |
| void | deactivateMouse () |
| bool | isActive () |
Private Member Functions | |
| virtual void | operator() (const NLMISC::CEvent &event) |
| Accepts events from the NeL event server. | |
| void | initKeyMap () |
Private Attributes | |
| float | m_MouseX |
| float | m_MouseY |
| float | m_Width |
| float | m_Height |
| float | m_Depth |
| bool | m_Active |
| bool | m_MouseActive |
| std::map< NLMISC::TKey, CEGUI::Key::Scan > | m_KeyMap |
| NLMISC::CEventListenerAsync | m_AsyncListener |
| NL3D::UDriver * | m_Driver |
Definition at line 179 of file nelrenderer.h.
| CEGUI::NeLRenderer::NeLInputDriver::NeLInputDriver | ( | ) | [inline] |
Definition at line 182 of file nelrenderer.h.
References initKeyMap(), m_Active, m_MouseActive, m_MouseX, and m_MouseY.
| virtual CEGUI::NeLRenderer::NeLInputDriver::~NeLInputDriver | ( | ) | [inline, virtual] |
Definition at line 191 of file nelrenderer.h.
| void CEGUI::NeLRenderer::NeLInputDriver::activate | ( | void | ) | [inline] |
Definition at line 219 of file nelrenderer.h.
References m_Active, and m_MouseActive.
Referenced by CEGUI::NeLRenderer::activateInput().
| void CEGUI::NeLRenderer::NeLInputDriver::activateMouse | ( | ) | [inline] |
Definition at line 220 of file nelrenderer.h.
References m_MouseActive.
Referenced by CEGUI::NeLRenderer::captureCursor().
| void CEGUI::NeLRenderer::NeLInputDriver::addToServer | ( | NLMISC::CEventServer & | server | ) | [inline] |
Definition at line 193 of file nelrenderer.h.
References NLMISC::CEventServer::addListener(), NLMISC::CEventListenerAsync::addToServer(), NLMISC::EventCharId(), NLMISC::EventKeyDownId(), NLMISC::EventMouseDownId(), NLMISC::EventMouseMoveId(), NLMISC::EventMouseUpId(), NLMISC::EventMouseWheelId(), and m_AsyncListener.
Referenced by CEGUI::NeLRenderer::NeLRenderer().
| void CEGUI::NeLRenderer::NeLInputDriver::deactivate | ( | ) | [inline] |
Definition at line 218 of file nelrenderer.h.
References m_Active, and m_MouseActive.
Referenced by CEGUI::NeLRenderer::deactivateInput().
| void CEGUI::NeLRenderer::NeLInputDriver::deactivateMouse | ( | ) | [inline] |
Definition at line 221 of file nelrenderer.h.
References m_MouseActive.
Referenced by CEGUI::NeLRenderer::captureCursor().
| void CEGUI::NeLRenderer::NeLInputDriver::initKeyMap | ( | ) | [inline, private] |
Definition at line 300 of file nelrenderer.h.
References F, G, H, I, NLMISC::Key0, NLMISC::Key1, NLMISC::Key2, NLMISC::Key3, NLMISC::Key4, NLMISC::Key5, NLMISC::Key6, NLMISC::Key7, NLMISC::Key8, NLMISC::Key9, NLMISC::KeyA, NLMISC::KeyADD, NLMISC::KeyAPOSTROPHE, NLMISC::KeyAPPS, NLMISC::KeyB, NLMISC::KeyBACK, NLMISC::KeyBACKSLASH, NLMISC::KeyC, NLMISC::KeyCAPITAL, NLMISC::KeyCOMMA, NLMISC::KeyCONVERT, NLMISC::KeyD, NLMISC::KeyDECIMAL, NLMISC::KeyDELETE, NLMISC::KeyDIVIDE, NLMISC::KeyDOWN, NLMISC::KeyE, NLMISC::KeyEND, NLMISC::KeyEQUALS, NLMISC::KeyF, NLMISC::KeyF1, NLMISC::KeyF10, NLMISC::KeyF11, NLMISC::KeyF12, NLMISC::KeyF13, NLMISC::KeyF14, NLMISC::KeyF15, NLMISC::KeyF2, NLMISC::KeyF3, NLMISC::KeyF4, NLMISC::KeyF5, NLMISC::KeyF6, NLMISC::KeyF7, NLMISC::KeyF8, NLMISC::KeyF9, NLMISC::KeyG, NLMISC::KeyH, NLMISC::KeyHOME, NLMISC::KeyI, NLMISC::KeyINSERT, NLMISC::KeyJ, NLMISC::KeyK, NLMISC::KeyKANA, NLMISC::KeyKANJI, NLMISC::KeyL, NLMISC::KeyLBRACKET, NLMISC::KeyLCONTROL, NLMISC::KeyLEFT, NLMISC::KeyLMENU, NLMISC::KeyLSHIFT, NLMISC::KeyLWIN, NLMISC::KeyM, NLMISC::KeyMULTIPLY, NLMISC::KeyN, NLMISC::KeyNEXT, NLMISC::KeyNONCONVERT, NLMISC::KeyNUMLOCK, NLMISC::KeyNUMPAD0, NLMISC::KeyNUMPAD1, NLMISC::KeyNUMPAD2, NLMISC::KeyNUMPAD3, NLMISC::KeyNUMPAD4, NLMISC::KeyNUMPAD5, NLMISC::KeyNUMPAD6, NLMISC::KeyNUMPAD7, NLMISC::KeyNUMPAD8, NLMISC::KeyNUMPAD9, NLMISC::KeyO, NLMISC::KeyOEM_CLEAR, NLMISC::KeyP, NLMISC::KeyPAUSE, NLMISC::KeyPERIOD, NLMISC::KeyPRINT, NLMISC::KeyPRIOR, NLMISC::KeyQ, NLMISC::KeyR, NLMISC::KeyRBRACKET, NLMISC::KeyRCONTROL, NLMISC::KeyRETURN, NLMISC::KeyRIGHT, NLMISC::KeyRMENU, NLMISC::KeyRSHIFT, NLMISC::KeyRWIN, NLMISC::KeyS, NLMISC::KeySCROLL, NLMISC::KeySEMICOLON, NLMISC::KeySEPARATOR, NLMISC::KeySLASH, NLMISC::KeySPACE, NLMISC::KeySUBTRACT, NLMISC::KeyT, NLMISC::KeyTAB, NLMISC::KeyU, NLMISC::KeyUP, NLMISC::KeyV, NLMISC::KeyW, NLMISC::KeyX, NLMISC::KeyY, NLMISC::KeyZ, m_KeyMap, and NL3D::T().
Referenced by NeLInputDriver().
| bool CEGUI::NeLRenderer::NeLInputDriver::isActive | ( | ) | [inline] |
Definition at line 222 of file nelrenderer.h.
References m_Active.
Referenced by CEGUI::NeLRenderer::isInputActive().
| virtual void CEGUI::NeLRenderer::NeLInputDriver::operator() | ( | const NLMISC::CEvent & | event | ) | [inline, private, virtual] |
Accepts events from the NeL event server.
| event | An event, probably a CEventMouse or CEventKey/Char. |
Implements NLMISC::IEventListener.
Definition at line 230 of file nelrenderer.h.
References NLMISC::CEventMouse::Button, NLMISC::CEventMouseWheel::Direction, NLMISC::EventCharId(), NLMISC::EventKeyDownId(), NLMISC::EventMouseDblClkId(), NLMISC::EventMouseDownId(), NLMISC::EventMouseMoveId(), NLMISC::EventMouseUpId(), NLMISC::EventMouseWheelId(), NLMISC::CEventKeyDown::Key, NLMISC::leftButton, m_Active, m_Height, m_KeyMap, m_MouseActive, m_MouseX, m_MouseY, m_Width, NLMISC::middleButton, NLMISC::rightButton, NLMISC::CEventMouse::X, and NLMISC::CEventMouse::Y.
| void CEGUI::NeLRenderer::NeLInputDriver::removeFromServer | ( | NLMISC::CEventServer & | server | ) | [inline] |
Definition at line 204 of file nelrenderer.h.
References NLMISC::EventCharId(), NLMISC::EventKeyDownId(), NLMISC::EventMouseDownId(), NLMISC::EventMouseMoveId(), NLMISC::EventMouseUpId(), NLMISC::EventMouseWheelId(), m_AsyncListener, NLMISC::CEventListenerAsync::removeFromServer(), and NLMISC::CEventServer::removeListener().
Referenced by CEGUI::NeLRenderer::~NeLRenderer().
| void CEGUI::NeLRenderer::NeLInputDriver::setDriver | ( | NL3D::UDriver * | driver | ) | [inline] |
Definition at line 217 of file nelrenderer.h.
References m_Driver.
Referenced by CEGUI::NeLRenderer::NeLRenderer().
| void CEGUI::NeLRenderer::NeLInputDriver::setScreenMode | ( | float | width, | |
| float | height, | |||
| float | depth | |||
| ) | [inline] |
Definition at line 215 of file nelrenderer.h.
References m_Depth, m_Height, and m_Width.
Referenced by CEGUI::NeLRenderer::NeLRenderer().
Definition at line 417 of file nelrenderer.h.
Referenced by activate(), deactivate(), isActive(), NeLInputDriver(), and operator()().
Definition at line 421 of file nelrenderer.h.
Referenced by addToServer(), and removeFromServer().
Definition at line 416 of file nelrenderer.h.
Referenced by setScreenMode().
Definition at line 422 of file nelrenderer.h.
Referenced by setDriver().
Definition at line 415 of file nelrenderer.h.
Referenced by operator()(), and setScreenMode().
std::map<NLMISC::TKey, CEGUI::Key::Scan> CEGUI::NeLRenderer::NeLInputDriver::m_KeyMap [private] |
Definition at line 420 of file nelrenderer.h.
Referenced by initKeyMap(), and operator()().
Definition at line 418 of file nelrenderer.h.
Referenced by activate(), activateMouse(), deactivate(), deactivateMouse(), NeLInputDriver(), and operator()().
Definition at line 411 of file nelrenderer.h.
Referenced by NeLInputDriver(), and operator()().
Definition at line 412 of file nelrenderer.h.
Referenced by NeLInputDriver(), and operator()().
Definition at line 414 of file nelrenderer.h.
Referenced by operator()(), and setScreenMode().
1.6.1