Commit-ID: 153bc1ab5a4a30259cb0bb186ad3b4548e29c7fb Gitweb: http://git.kernel.org/tip/153bc1ab5a4a30259cb0bb186ad3b4548e29c7fb Author: Liming Wang <walimisdev@xxxxxxxxx> AuthorDate: Thu, 11 Aug 2011 13:07:47 +0800 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Thu, 11 Aug 2011 16:34:24 +0300 kvm tools: enable keyboard press repeat for sdl Set keyboard repeat rate to enable keyboard press repeat. It means that don't repeat the key value every 50 milliseconds until 200 milliseconds later when the key is pressed. Signed-off-by: Liming Wang <walimisdev@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/ui/sdl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/kvm/ui/sdl.c b/tools/kvm/ui/sdl.c index 088cd29b..6320ce7 100644 --- a/tools/kvm/ui/sdl.c +++ b/tools/kvm/ui/sdl.c @@ -99,6 +99,8 @@ static void *sdl__thread(void *p) if (!screen) die("Unable to set SDL video mode"); + SDL_EnableKeyRepeat(200, 50); + for (;;) { SDL_BlitSurface(guest_screen, NULL, screen, NULL); SDL_Flip(screen); -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |