From e55b757aad28845d3038718eb54b45ea1120d546 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 1 Nov 2010 21:04:50 -0300 Subject: [PATCH] Fix windows keyboard handling when ToUnicode fails. Introduced in the cumbersome commit 27ba60479762c2582868bd41a135b00cb18bc2e7. --- src/allegro/src/win/wkeybd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/allegro/src/win/wkeybd.c b/src/allegro/src/win/wkeybd.c index 90fd25535..8b814059c 100644 --- a/src/allegro/src/win/wkeybd.c +++ b/src/allegro/src/win/wkeybd.c @@ -132,9 +132,6 @@ void _al_win_kbd_handle_key_press(int scode, int vcode, BOOL repeated) if (!GetKeyboardState(&ks[0])) ccode = 0; /* shound't really happen */ else if (ToUnicode(vcode, scode, ks, buf, 8, 0) == 1) - if (ToUnicode(vcode, scode, ks, buf, 8, 0) == 1) - - if (ToUnicode(vcode, scode, ks, buf, 8, 0) == 1) ccode = buf[0]; else ccode = 0;