Changeset 28405 in vbox for trunk/src/VBox/Frontends/VBoxSDL
- Timestamp:
- Apr 16, 2010 10:37:39 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 60167
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r28205 r28405 2364 2364 : HKEYSTATE_NOT_IT; 2365 2365 ProcessKey(&EvHKeyDown1.key); 2366 /* ugly hack: Some guests (e.g. mstsc.exe on Windows XP) 2367 * expect a small delay between two key events. 5ms work 2368 * reliable here so use 10ms to be on the safe side. A 2369 * better but more complicated fix would be to introduce 2370 * a new state and don't wait here. */ 2371 RTThreadSleep(10); 2366 2372 ProcessKey(&event.key); 2367 2373 break; … … 2405 2411 enmHKeyState = HKEYSTATE_NOT_IT; 2406 2412 ProcessKey(&EvHKeyDown1.key); 2413 /* see the comment for the 2-key case above */ 2414 RTThreadSleep(10); 2407 2415 if (gHostKeySym2 != SDLK_UNKNOWN) 2416 { 2408 2417 ProcessKey(&EvHKeyDown2.key); 2418 /* see the comment for the 2-key case above */ 2419 RTThreadSleep(10); 2420 } 2409 2421 ProcessKey(&event.key); 2410 2422 break;
Note:
See TracChangeset
for help on using the changeset viewer.