Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CEGUI::EventPusher Class Reference

#include <IrrlichtEventPusher.h>

List of all members.

Public Member Functions

 EventPusher (irr::gui::ICursorControl *ctrl)
virtual ~EventPusher ()
bool OnEvent (SEvent &event)
bool OnKeyDown (EKEY_CODE key, wchar_t wch, bool ctrl, bool shift)
bool OnKeyUp (EKEY_CODE key, wchar_t wch, bool ctrl, bool shift)
bool OnMouse (s32 x, s32 y, f32 w, EMOUSE_INPUT_EVENT e)

Protected Member Functions

void initCodes ()
uchar getKeyCode (irr::EKEY_CODE kc)

Protected Attributes

unsigned char irr2ceCODE [irr::KEY_KEY_CODES_COUNT]


Detailed Description

Definition at line 34 of file IrrlichtEventPusher.h.


Constructor & Destructor Documentation

CEGUI::EventPusher::EventPusher irr::gui::ICursorControl *  ctrl  )  [inline]
 

Definition at line 43 of file IrrlichtEventPusher.h.

References initCodes().

virtual CEGUI::EventPusher::~EventPusher  )  [inline, virtual]
 

Definition at line 53 of file IrrlichtEventPusher.h.


Member Function Documentation

uchar CEGUI::EventPusher::getKeyCode irr::EKEY_CODE  kc  )  [inline, protected]
 

translate the irrlicht keycode to cegui keycode

Parameters:
kc the irrlicht keycode
Returns:
the cegui keycode

Definition at line 307 of file IrrlichtEventPusher.h.

References irr2ceCODE.

Referenced by OnKeyDown(), and OnKeyUp().

void CEGUI::EventPusher::initCodes  )  [inline, protected]
 

Definition at line 150 of file IrrlichtEventPusher.h.

References CEGUI::Key::A, CEGUI::Key::Add, CEGUI::Key::AppMenu, CEGUI::Key::ArrowDown, CEGUI::Key::ArrowLeft, CEGUI::Key::ArrowRight, CEGUI::Key::ArrowUp, CEGUI::Key::B, CEGUI::Key::Backspace, CEGUI::Key::C, CEGUI::Key::Capital, CEGUI::Key::Comma, CEGUI::Key::Convert, CEGUI::Key::D, CEGUI::Key::Decimal, CEGUI::Key::Delete, CEGUI::Key::Divide, CEGUI::Key::E, CEGUI::Key::Eight, CEGUI::Key::End, CEGUI::Key::Escape, CEGUI::Key::F, CEGUI::Key::F1, CEGUI::Key::F10, CEGUI::Key::F11, CEGUI::Key::F12, CEGUI::Key::F13, CEGUI::Key::F14, CEGUI::Key::F15, CEGUI::Key::F2, CEGUI::Key::F3, CEGUI::Key::F4, CEGUI::Key::F5, CEGUI::Key::F6, CEGUI::Key::F7, CEGUI::Key::F8, CEGUI::Key::F9, CEGUI::Key::Five, CEGUI::Key::Four, CEGUI::Key::G, CEGUI::Key::H, CEGUI::Key::Home, CEGUI::Key::I, CEGUI::Key::Insert, irr2ceCODE, CEGUI::Key::J, CEGUI::Key::K, CEGUI::Key::Kana, CEGUI::Key::L, CEGUI::Key::LeftAlt, CEGUI::Key::LeftControl, CEGUI::Key::LeftShift, CEGUI::Key::LeftWindows, CEGUI::Key::M, CEGUI::Key::Minus, CEGUI::Key::Multiply, CEGUI::Key::N, CEGUI::Key::Nine, CEGUI::Key::NoConvert, CEGUI::Key::NumLock, CEGUI::Key::Numpad0, CEGUI::Key::Numpad1, CEGUI::Key::Numpad2, CEGUI::Key::Numpad3, CEGUI::Key::Numpad4, CEGUI::Key::Numpad5, CEGUI::Key::Numpad6, CEGUI::Key::Numpad7, CEGUI::Key::Numpad8, CEGUI::Key::Numpad9, CEGUI::Key::O, CEGUI::Key::One, CEGUI::Key::P, CEGUI::Key::PageDown, CEGUI::Key::PageUp, CEGUI::Key::Pause, CEGUI::Key::Period, CEGUI::Key::Q, CEGUI::Key::R, CEGUI::Key::Return, CEGUI::Key::RightAlt, CEGUI::Key::RightControl, CEGUI::Key::RightShift, CEGUI::Key::RightWindow, CEGUI::Key::S, CEGUI::Key::ScrollLock, CEGUI::Key::Seven, CEGUI::Key::Six, CEGUI::Key::Sleep, CEGUI::Key::Space, CEGUI::Key::Subtract, CEGUI::Key::SysRq, CEGUI::Key::T, CEGUI::Key::Tab, CEGUI::Key::Three, CEGUI::Key::Two, CEGUI::Key::U, CEGUI::Key::V, CEGUI::Key::W, CEGUI::Key::X, CEGUI::Key::Y, CEGUI::Key::Z, and CEGUI::Key::Zero.

Referenced by EventPusher().

bool CEGUI::EventPusher::OnEvent SEvent &  event  )  [inline]
 

Definition at line 55 of file IrrlichtEventPusher.h.

References OnKeyDown(), OnKeyUp(), and OnMouse().

Referenced by CEGUI::IrrlichtRenderer::OnEvent().

bool CEGUI::EventPusher::OnKeyDown EKEY_CODE  key,
wchar_t  wch,
bool  ctrl,
bool  shift
[inline]
 

Definition at line 76 of file IrrlichtEventPusher.h.

References getKeyCode(), CEGUI::System::getSingleton(), CEGUI::System::injectChar(), and CEGUI::System::injectKeyDown().

Referenced by OnEvent().

bool CEGUI::EventPusher::OnKeyUp EKEY_CODE  key,
wchar_t  wch,
bool  ctrl,
bool  shift
[inline]
 

Definition at line 85 of file IrrlichtEventPusher.h.

References getKeyCode(), CEGUI::System::getSingleton(), and CEGUI::System::injectKeyUp().

Referenced by OnEvent().

bool CEGUI::EventPusher::OnMouse s32  x,
s32  y,
f32  w,
EMOUSE_INPUT_EVENT  e
[inline]
 

Left mouse button was pressed down.

Right mouse button was pressed down.

Middle mouse button was pressed down.

Left mouse button was left up.

Right mouse button was left up.

Middle mouse button was left up.

The mouse cursor changed its position.

The mouse wheel was moved. Use Wheel value in event data to find out in what direction and how fast.

Definition at line 93 of file IrrlichtEventPusher.h.

References CEGUI::MouseCursor::getSingleton(), CEGUI::System::getSingleton(), CEGUI::System::injectMouseButtonDown(), CEGUI::System::injectMouseButtonUp(), CEGUI::System::injectMouseMove(), CEGUI::System::injectMouseWheelChange(), CEGUI::LeftButton, CEGUI::MiddleButton, CEGUI::RightButton, and CEGUI::MouseCursor::setPosition().

Referenced by OnEvent().


Member Data Documentation

unsigned char CEGUI::EventPusher::irr2ceCODE[irr::KEY_KEY_CODES_COUNT] [protected]
 

Definition at line 148 of file IrrlichtEventPusher.h.

Referenced by getKeyCode(), and initCodes().


The documentation for this class was generated from the following file:
Generated on Wed Sep 7 10:10:32 2005 for Crazy Eddies GUI System by  doxygen 1.4.3