[AD] char event on windows

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


See http://www.allegro.cc/forums/thread/605801/896890#target.

Is the attached patch (untested) needed?

--
Matthew Leverton

Index: wkeyboard.c
===================================================================
--- wkeyboard.c	(revision 14233)
+++ wkeyboard.c	(working copy)
@@ -317,7 +317,7 @@
       _al_event_source_emit_event(&the_keyboard.es, &event);
    }

-   {
+   if (ccode != 0) {
       event.keyboard.type = ALLEGRO_EVENT_KEY_CHAR;
       event.keyboard.unichar = ccode;
       event.keyboard.modifiers = modifiers;




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/