Re: [AD] [WIN] Patch to fix input with external windows

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


> Keyboard input works perfectly now in my custom-window program :)

Great!

Are you ok with the following addition to the docs ?

--- cvsroot/allegro/docs/src/allegro._tx Thu Apr 25 13:27:42 2002
+++ allegro/docs/src/allegro._tx Sat Apr 27 00:22:46 2002
@@ -7832,7 +7832,9 @@
    window; in particular, you are responsible for processing the events as
    usual (Allegro will automatically monitor a few of them, but will not
    filter out any of them). You can then use every component of the library
-   (graphics, mouse, keyboard, sound, timers and so on).
+   (graphics, mouse, keyboard, sound, timers and so on), bearing in mind
+   that some Allegro functions are blocking (e.g readkey() if the key buffer
+   is empty) and thus must be carefully manipulated by the window thread.

 @@void @win_set_wnd_create_proc(HWND (*proc)(WNDPROC));
    Registers an user-defined procedure to be used by Allegro for creating


--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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