Question on switching /enter and /exit
#2

you can use this
Код:
IsKeyJustDown(key, newkeys, oldkeys)
{
	if((newkeys & key) && !(oldkeys & key)) return 1;
	return 0;
}
then you would be able to detect if player is pressing their KEY_ENTER so use
Код:
if(IsKeyJustDown(KEY_ENTER, newkeys, oldkeys)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)