Public Member Functions | Protected Member Functions | Protected Attributes

CEGUI::IrrlichtEventPusher Class Reference

List of all members.

Public Member Functions

 IrrlichtEventPusher (irr::gui::ICursorControl *ctrl)
bool OnEvent (const SEvent &event)
bool OnKeyDown (EKEY_CODE key, wchar_t wch, bool, bool)
bool OnKeyUp (EKEY_CODE key, wchar_t, bool, bool)
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]

Member Function Documentation

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

translate the irrlicht keycode to cegui keycode

Parameters:
kc the irrlicht keycode
Returns:
the cegui keycode
bool CEGUI::IrrlichtEventPusher::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.