OnPlayerKeyStateChange
#1

a question ...
What is the difference between:
Код:
# define PRESSED (%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
//where %0 is KEY_FIRE.
and:

Код:
if ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
Sorry but I find the difference, I want to learn it =).
Sorry for my bad English.
Edit...
Reply


Messages In This Thread
OnPlayerKeyStateChange - by Zoutdaxv - 11.12.2009, 22:44
Re: OnPlayerKeyStateChange - by Backwardsman97 - 11.12.2009, 23:10
Re: OnPlayerKeyStateChange - by LarzI - 11.12.2009, 23:12
Re: OnPlayerKeyStateChange - by Correlli - 11.12.2009, 23:18
Re: OnPlayerKeyStateChange - by Malice - 11.12.2009, 23:31
Re: OnPlayerKeyStateChange - by Zoutdaxv - 11.12.2009, 23:33
Re: OnPlayerKeyStateChange - by Malice - 11.12.2009, 23:38
Re: OnPlayerKeyStateChange - by Zoutdaxv - 12.12.2009, 00:05
Re: OnPlayerKeyStateChange - by LarzI - 12.12.2009, 00:22
Re: OnPlayerKeyStateChange - by Malice - 12.12.2009, 02:10

Forum Jump:


Users browsing this thread: 1 Guest(s)