
I'm having trouble setting the autorepeat rate for a button - no matter what value I give to setAutoRepeatRate(), it doesn't seem to be having any effect. I'm injecting a time pulse into CEGUI with each frame update as follows:
Code: Select all
CEGUI::System::getSingleton().injectTimePulse(evt.timeSinceLastFrame);
And setting the autorepeat on my CEGUI::PushButton* like so:
Code: Select all
btnVolumeUp->subscribeEvent(CEGUI::Window::EventMouseButtonDown, CEGUI::Event::Subscriber(&UserInterface::btnVolumeUpClick, this));
btnVolumeUp->setMouseAutoRepeatEnabled( true );
btnVolumeUp->setAutoRepeatDelay(1.0f);
btnVolumeUp->setAutoRepeatRate(1.0f);
The autorepeat works just fine - but it is ridiculously fast, no matter what value I put into setAutoRepeatRate. Am I missing something here?