Original Post
...I decided to remove the WM_KEY functions from my game loop, and add DirectInput...so I looked in one of LaMothe''s books, the book claimed to use DX7 (the version I use).. when I looked at the code, it seemed more like DX5 code... well anyway I started to implement the stuff into my code, and everything worked fine until I came to this:
typedef _DIKEYSTATE UCHAR[256];
_DIKEYSTATE keystate[256];
well... what is that thing.... first of all it dosn''t compile and it looks realy complicated.... I changed it into this:
char keystate[256];
and the code compiled and everything worked fine...
...Another thing, as I now have DirectInput up and running, do I really need the WindProc anymore?.. is it possible to create
a window without it? I tried this: (in the creation of the main window)...
wc2.lpfnWndProc = NULL; //(WNDPROC) WindowProc;
as expected it didn''t work..(got an error).. but is it possible
to remove it? how?...
lurkie...