Keys aren't working...
#9

Quote:
Originally Posted by BigETI
Посмотреть сообщение
Up down left right buttons doesn't actually call OnPlayerKeyStateChange.
You have to check it with GetPlayerKeys in OnPlayerUpdate.

Btw your PRESSED and RELEASED makros does check it bitwise and recheck if it is really this key.
Mine does only check it faster anyhow..

pawn Код:
#define PRESSED(%0)     (newkeys&(%0))&&!(oldkeys&(%0))
#define RELEASED(%0)    (oldkeys&(%0))&&!(newkeys&(%0))
So are you saying I need to check the UD and LR keys under OnPlayerUpdate?
Reply


Messages In This Thread
Keys aren't working... - by Scenario - 15.01.2012, 06:14
Re: Keys aren't working... - by jamesbond007 - 15.01.2012, 06:34
Re: Keys aren't working... - by Scenario - 15.01.2012, 06:47
Re: Keys aren't working... - by jamesbond007 - 15.01.2012, 06:54
Re: Keys aren't working... - by Scenario - 15.01.2012, 07:17
Re: Keys aren't working... - by wildcookie007 - 15.01.2012, 07:18
Re: Keys aren't working... - by Scenario - 15.01.2012, 12:35
AW: Keys aren't working... - by BigETI - 15.01.2012, 12:44
Re: AW: Keys aren't working... - by Scenario - 15.01.2012, 12:46
Re: Keys aren't working... - by playbox12 - 15.01.2012, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)