Comparing key masks.
#2

Well I really didn't understand what you actually meant to say, your poor choice of words I guess.
But here's the thing, if you need to check if player is holding 2 keys combined, you can first combine them using |, then check it with &
PHP код:
if(newkeys & (keymask2|keymask3)) 
so you could check which key is being held with keymask2 so you could do different binds.


If thats not what you want please elaborate more or even put your current loop here so we could help you.
Reply


Messages In This Thread
Comparing key masks. - by [WSF]ThA_Devil - 31.08.2016, 12:38
Re: Comparing key masks. - by PrO.GameR - 31.08.2016, 13:23
Re: Comparing key masks. - by [WSF]ThA_Devil - 31.08.2016, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)