Original Post
ok I am going to hang myself soon if I dont get this simple procedure correct, PLEASE HELP
All I want me program to do is PAUSE until a user presses the enter key. I am using DX7 and Direct INPUT . I set the cooperative level, and acquire the keyboard... then my code goes somewhat like this:
unsigned long ITemData;
ItemData = 64;
DIDEVICEOBJECTDATA Sarray[64];
Keyboard->GetDeviceData(sizeof(DIDEVICEOBJECTDATA), sArray, &ItemData);
While (!(bob == 1)){
for(int i = 0; i > 64; i++){
if( Sarray.OFs = DIKS_RETURN){
bob = 1;
}
}// end for loop
}
I have tried sticking the Keyboard->GetDeviceData line in the while loop. what happens either way is that the program just hangs and accepts no input... I guess I dont have a clue how this works... can someoen show me some source for making the damn program pause until a key is pressed??????? thanks
p.s. I tried getch()... doesnt work for some reason....
thanks all
to Code, or Not To Code