Detecting keys
#1

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if((newkeys & KEY_RIGHT) && !(oldkeys & KEY_RIGHT))
	{
	    SendDebug(playerid, "Key Right Detected!");
	}

	if((newkeys == KEY_RIGHT))
	{
	    SendDebug(playerid, "Key Right Detected! (Check 2)");
	}
        return 1;
}
Can someone test it cos when i connect to server and press right key or D (Walk to right) it does not detect it at all but it detects it when i press space or right aim key...(On foot and in vehicle)
I know the second way is not how we detect keys i just added it to be sure its not my fault

Im only one or someone may confirm these as a 0.3x bug?
Thx
Reply


Messages In This Thread
Detecting keys - by DRIFT_HUNTER - 09.08.2013, 01:35
Re: Detecting keys - by [D]ry[D]esert - 09.08.2013, 02:01
Re: Detecting keys - by DRIFT_HUNTER - 09.08.2013, 13:46
AW: Detecting keys - by Nero_3D - 09.08.2013, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)