delorie.com/archives/browse.cgi | search |
From: | "Miron the Master" <linxman AT polbox DOT com> |
To: | "DJGPP Mailing list" <djgpp AT delorie DOT com> |
Subject: | WinAllegro and keyboard |
Date: | Tue, 3 Feb 1998 20:45:40 +0100 |
Message-ID: | <01bd30dc$4f0c81c0$LocalHost@ppp> |
MIME-Version: | 1.0 |
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 <WinAlleg.h> #include <Template.h> 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. // ... }
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |