View Single Post
  #553 (permalink)  
Old 29th Apr 2010, 10:49 am
knob's Avatar
knob knob is offline
Senior Member
Valued Member
 
Join Date: May 2007
Posts: 1,285
Default

That great! thanks.
I have been trying to emulate the conio.h functions like clrscr(), gotoxy() getch()to make game porting easier.

I was having problems making a while loop work for a getch() to emulate an operation like "press any key" I'll give it another try.

tried this instead of while:-

int KeyVal;
KeyVal=(*GetKeyVal)();
KeyVal=KeyVal&0x1FFF;

for ( ; ; )
{
if (KeyVal==KEY_VAL_PLAY)
break;
}
player just locks up, got something to do with detecting the keypress.
__________________
-----------------------------------------------------------------------------------------------------------

Last edited by knob; 29th Apr 2010 at 1:11 pm.
Reply With Quote