fix realese crash on win32

This commit is contained in:
Eduardo Bart
2012-01-17 21:07:22 -02:00
parent a1cee1e855
commit dddfdbc0d5
2 changed files with 19 additions and 35 deletions

View File

@@ -124,8 +124,7 @@ void PlatformWindow::fireKeysPress()
ticks_t firstKeyPress = m_firstKeysPress[keyCode];
if(g_clock.ticksElapsed(lastPressTicks) >= KEY_PRESS_REPEAT_INTERVAL) {
if(m_onInputEvent) {
m_inputEvent.reset();
m_inputEvent.type = Fw::KeyPressInputEvent;
m_inputEvent.reset(Fw::KeyPressInputEvent);
m_inputEvent.keyCode = keyCode;
m_inputEvent.wouldFilter = g_clock.ticksElapsed(firstKeyPress) < KEY_PRESS_REPEAT_DELAY;
m_onInputEvent(m_inputEvent);