zcout
01-03-2010 12:38:16
Hey all,
I've got a problem, my key listener in MyGUI acts like a cycle, im setting it up like this:
Input is injected from a buffered OIS input event callback.. but that OIS callback code is done only once for a pressed key (I've ensured myself about that using logging), while this MyGUI event callback keeps repeating. Any ideas why?
MyGUI 3.0.1
Ogre 1.7
Thanks for any help!
I've got a problem, my key listener in MyGUI acts like a cycle, im setting it up like this:
...
myWidget->eventKeyButtonPressed = MyGUI::newDelegate(this, &ThisClass::myWidget_keyPressed);
}
void ThisClass::myWidget_keyPressed(MyGUI::Widget* _sender, MyGUI::KeyCode _key, MyGUI::Char _char)
{
// once I press some key, this code starts repeating forever, why? :/
}
Input is injected from a buffered OIS input event callback.. but that OIS callback code is done only once for a pressed key (I've ensured myself about that using logging), while this MyGUI event callback keeps repeating. Any ideas why?
MyGUI 3.0.1
Ogre 1.7
Thanks for any help!