From: "Miron the Master" To: "DJGPP Mailing list" Subject: WinAllegro and keyboard Date: Tue, 3 Feb 1998 20:45:40 +0100 Message-ID: <01bd30dc$4f0c81c0$LocalHost@ppp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Precedence: bulk Hi, I've been working on a simple game which uses WinAllegro and I can't get the keyboard working. Has anyone managed to get it working! My code looks something like this: #include #include bla, bla... BOOL user_callback(...) switch(...) { UM_START: if(allegro_init(theInst, theHwnd)==0) if(install_keyboard()==0) set_gfx_mode(...); // init app return TRUE; UM_LOOP: // ... if(key[KEY_SPACE]) // do sth. // ... }