Code: Select all
/*************************************************************************
Method that moves the camera horizontally
*************************************************************************/
bool CEGUIOgre_FrameListener::horzMoveHandler(const CEGUI::EventArgs& e)
{
using namespace CEGUI;
static float lastPos = 0;
Scrollbar* sb = (Scrollbar*)((const WindowEventArgs&)e).window;
mRotY = 0;
mRotX = sb->getScrollPosition() - lastPos;
lastPos = sb->getScrollPosition();
moveCamera();
return true;
}
but dont run I dont undertand how asociatte event to scroller, slicer, etc... Could somebody help me?