In my event reciever class [user-input] I do something like this:
Code: Select all
switch(event.EventType)
{
case EET_MOUSE_INPUT_EVENT :
switch(event.MouseInput.Event)
{
case EMIE_RMOUSE_PRESSED_DOWN :
{
testint+=1;
blocks[0].setVal(1);
}
}
}
However - when i print these values through draw like this:
Code: Select all
font3->draw(core::stringw(testint).c_str(), core::rect<s32>(144,24,300,550), video::SColor(255,0,0,0));
//OR
font3->draw(core::stringw(blocks[i].getVal()).c_str(), core::rect<s32>(blocks[i].GetCenterX(),blocks[i].GetCenterY(),300,550), video::SColor(255,0,0,0));
It is a very very simple class - i can post it if anyone thinks that might be the source of the problem.
I appreicate your time,
rob