Do not repeat keys for WinCE (problems with GAPI and virtual keyboard)
svn-id: r5251
This commit is contained in:
parent
3c2a409b11
commit
c585fe7a37
2 changed files with 11 additions and 0 deletions
|
@ -197,8 +197,15 @@ bool ListWidget::handleKeyDown(char key, int modifiers)
|
||||||
_scrollBar->draw();
|
_scrollBar->draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _WIN32_WCE
|
||||||
|
|
||||||
|
// not done on WinCE because keyboard is emulated and
|
||||||
|
// keyup is not generated
|
||||||
|
|
||||||
_currentKeyDown = key;
|
_currentKeyDown = key;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
return handled;
|
return handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,10 +134,14 @@ void NewGui::runLoop()
|
||||||
case OSystem::EVENT_KEYDOWN:
|
case OSystem::EVENT_KEYDOWN:
|
||||||
activeDialog->handleKeyDown((byte)event.kbd.ascii, event.kbd.flags);
|
activeDialog->handleKeyDown((byte)event.kbd.ascii, event.kbd.flags);
|
||||||
|
|
||||||
|
#ifndef _WIN32_WCE
|
||||||
// init continuous event stream
|
// init continuous event stream
|
||||||
|
// not done on WinCE because keyboard is emulated and
|
||||||
|
// keyup is not generated
|
||||||
_currentKeyDown = event.kbd.ascii;
|
_currentKeyDown = event.kbd.ascii;
|
||||||
_currentKeyDownFlags = event.kbd.flags;
|
_currentKeyDownFlags = event.kbd.flags;
|
||||||
_keyRepeatTime = time + kKeyRepeatInitialDelay;
|
_keyRepeatTime = time + kKeyRepeatInitialDelay;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case OSystem::EVENT_KEYUP:
|
case OSystem::EVENT_KEYUP:
|
||||||
activeDialog->handleKeyUp((byte)event.kbd.ascii, event.kbd.flags);
|
activeDialog->handleKeyUp((byte)event.kbd.ascii, event.kbd.flags);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue